diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2024-11-30 01:51:28 +0100 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2024-11-30 09:40:48 +0100 |
commit | 7003cb1d74aafd40fc4d3ac5ec81063b6926199a (patch) | |
tree | e59bbf5cbd18dc6e950db7a2acf477fc202a7824 /vcl/inc | |
parent | 0513dbac40d276526ce7a2a183d72cc02ce78eed (diff) |
tdf#130857 qt weld: Notify about current tree view item change
When the current (focus) item in the tree view changes,
call weld::TreeView::signal_changed to notify about this.
While QTreeView doesn't have a signal for that itself,
its QItemSelectionModel does, so connect to that one.
With this in place, SvPasteObjectDialog::SelectHdl
now gets called when switching between items in the
"Past Special" dialog when using the qt6 VCL plugin
with native Qt widgets, as is the case with the gtk3
VCL plugin.
Change-Id: I5aab68055f711480d56b043252d15621f18c4919
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177573
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
Diffstat (limited to 'vcl/inc')
-rw-r--r-- | vcl/inc/qt5/QtInstanceTreeView.hxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vcl/inc/qt5/QtInstanceTreeView.hxx b/vcl/inc/qt5/QtInstanceTreeView.hxx index 0b9608724005..b0e5aac93d0f 100644 --- a/vcl/inc/qt5/QtInstanceTreeView.hxx +++ b/vcl/inc/qt5/QtInstanceTreeView.hxx @@ -188,6 +188,7 @@ private: private Q_SLOTS: void handleActivated(); + void handleCurrentChanged(); }; /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ |