summaryrefslogtreecommitdiff
path: root/fpicker
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2024-12-06 09:48:44 +0100
committerMichael Weghorn <m.weghorn@posteo.de>2024-12-07 11:15:03 +0100
commit57d532057b4dcc248b9332835df2d6b7f61dfd92 (patch)
tree7db12ecf16654394f88014810a87cd0dd63bd6d5 /fpicker
parent4b9bf0a2b9c0f2bcba1f4f8a7ba45f1e7672d77a (diff)
weld: Rename weld::Treeview selection signal/connect
Rename weld::TreeView member + methods to clarify that these are about selection changes: * m_aChangeHdl to m_aSelectionChangedHdl, * signal_changed to signal_selection_changed * connect_changed to connect_selection_changed In GtkInstanceTreeview, also rename the related methods calling signal_selection_changed accordingly for consistency. Change-Id: I299d7930484677395a0bdd0ff105df18688f2e04 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178023 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'fpicker')
-rw-r--r--fpicker/source/office/PlacesListBox.cxx2
-rw-r--r--fpicker/source/office/fileview.cxx5
-rw-r--r--fpicker/source/office/foldertree.hxx5
3 files changed, 9 insertions, 3 deletions
diff --git a/fpicker/source/office/PlacesListBox.cxx b/fpicker/source/office/PlacesListBox.cxx
index 86bd505179a3..c8e815969879 100644
--- a/fpicker/source/office/PlacesListBox.cxx
+++ b/fpicker/source/office/PlacesListBox.cxx
@@ -27,7 +27,7 @@ PlacesListBox::PlacesListBox(std::unique_ptr<weld::TreeView> xControl,
mxImpl->get_height_rows(9));
mxImpl->set_size_request(aSize.Width(), aSize.Height());
- mxImpl->connect_changed( LINK( this, PlacesListBox, Selection ) );
+ mxImpl->connect_selection_changed(LINK(this, PlacesListBox, Selection));
mxImpl->connect_row_activated( LINK( this, PlacesListBox, DoubleClick ) ) ;
mxImpl->connect_query_tooltip(LINK(this, PlacesListBox, QueryTooltipHdl));
}
diff --git a/fpicker/source/office/fileview.cxx b/fpicker/source/office/fileview.cxx
index b7eb966e2b58..a5756f5d28d4 100644
--- a/fpicker/source/office/fileview.cxx
+++ b/fpicker/source/office/fileview.cxx
@@ -176,7 +176,10 @@ public:
OUString get_id(const weld::TreeIter& rIter) { return mxTreeView->get_id(rIter); }
void connect_row_activated(const Link<weld::TreeView&, bool>& rLink) { mxTreeView->connect_row_activated(rLink); }
- void connect_changed(const Link<weld::TreeView&, void>& rLink) { mxTreeView->connect_changed(rLink); }
+ void connect_changed(const Link<weld::TreeView&, void>& rLink)
+ {
+ mxTreeView->connect_selection_changed(rLink);
+ }
int n_children() const { return mxTreeView->n_children(); }
diff --git a/fpicker/source/office/foldertree.hxx b/fpicker/source/office/foldertree.hxx
index 5ee3f794e4f7..9af03f79ff42 100644
--- a/fpicker/source/office/foldertree.hxx
+++ b/fpicker/source/office/foldertree.hxx
@@ -37,7 +37,10 @@ public:
void clear() { m_xTreeView->clear(); }
- void connect_changed(const Link<weld::TreeView&, void>& rLink) { m_xTreeView->connect_changed(rLink); }
+ void connect_changed(const Link<weld::TreeView&, void>& rLink)
+ {
+ m_xTreeView->connect_selection_changed(rLink);
+ }
void InsertRootEntry(const OUString& rId, const OUString& rRootLabel);
void FillTreeEntry(const weld::TreeIter& rEntry);