From 7003cb1d74aafd40fc4d3ac5ec81063b6926199a Mon Sep 17 00:00:00 2001 From: Michael Weghorn Date: Sat, 30 Nov 2024 01:51:28 +0100 Subject: 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 Tested-by: Jenkins --- vcl/inc/qt5/QtInstanceTreeView.hxx | 1 + 1 file changed, 1 insertion(+) (limited to 'vcl/inc') 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: */ -- cgit