vcl/inc/qt5/QtInstanceTreeView.hxx | 3 +++ vcl/qt5/QtInstanceBuilder.cxx | 1 + vcl/qt5/QtInstanceTreeView.cxx | 8 ++++++++ 3 files changed, 12 insertions(+)
New commits: commit 0513dbac40d276526ce7a2a183d72cc02ce78eed Author: Michael Weghorn <m.wegh...@posteo.de> AuthorDate: Sat Nov 30 01:36:47 2024 +0100 Commit: Michael Weghorn <m.wegh...@posteo.de> CommitDate: Sat Nov 30 09:40:37 2024 +0100 tdf#130857 qt weld: Call tree view row activation handler Change-Id: Ib95cc7d4c2b60d3b426b76573ff06917637d838e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177572 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.wegh...@posteo.de> diff --git a/vcl/inc/qt5/QtInstanceTreeView.hxx b/vcl/inc/qt5/QtInstanceTreeView.hxx index 5c3fe21418a3..0b9608724005 100644 --- a/vcl/inc/qt5/QtInstanceTreeView.hxx +++ b/vcl/inc/qt5/QtInstanceTreeView.hxx @@ -185,6 +185,9 @@ public: private: static QAbstractItemView::SelectionMode mapSelectionMode(SelectionMode eMode); + +private Q_SLOTS: + void handleActivated(); }; /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/vcl/qt5/QtInstanceTreeView.cxx b/vcl/qt5/QtInstanceTreeView.cxx index c829788148c9..aaf230163879 100644 --- a/vcl/qt5/QtInstanceTreeView.cxx +++ b/vcl/qt5/QtInstanceTreeView.cxx @@ -23,6 +23,8 @@ QtInstanceTreeView::QtInstanceTreeView(QTreeView* pTreeView) m_pModel = qobject_cast<QStandardItemModel*>(m_pTreeView->model()); assert(m_pModel && "tree view doesn't have expected item model set"); + + connect(m_pTreeView, &QTreeView::activated, this, &QtInstanceTreeView::handleActivated); } void QtInstanceTreeView::insert(const weld::TreeIter* pParent, int pos, const OUString* pStr, @@ -712,4 +714,10 @@ QAbstractItemView::SelectionMode QtInstanceTreeView::mapSelectionMode(SelectionM } } +void QtInstanceTreeView::handleActivated() +{ + SolarMutexGuard g; + signal_row_activated(); +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ commit f96959a3779cc589381662604c3b927a24f6e205 Author: Michael Weghorn <m.wegh...@posteo.de> AuthorDate: Sat Nov 30 01:13:35 2024 +0100 Commit: Michael Weghorn <m.wegh...@posteo.de> CommitDate: Sat Nov 30 09:40:28 2024 +0100 tdf#130857 qt weld: Support "Paste Special" dialog Declare support for the "Paste Special" dialog that appears when copying something using Ctrl+Shift+V. This means that native Qt widgets are used for that dialog now when using the qt5 or qt6 VCL plugin and starting LO with environment variable SAL_VCL_QT_USE_WELDED_WIDGETS=1 set. At least copying text from a browser gives the expected result when copying as either HTML or plain text in a quick test. Change-Id: I967f5edd00b19e7ee70f1f7ef4d55240ae700e2f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177570 Reviewed-by: Michael Weghorn <m.wegh...@posteo.de> Tested-by: Jenkins diff --git a/vcl/qt5/QtInstanceBuilder.cxx b/vcl/qt5/QtInstanceBuilder.cxx index c4c5caa375eb..938b61a780a0 100644 --- a/vcl/qt5/QtInstanceBuilder.cxx +++ b/vcl/qt5/QtInstanceBuilder.cxx @@ -52,6 +52,7 @@ bool QtInstanceBuilder::IsUIFileSupported(const OUString& rUIFile) u"cui/ui/insertrowcolumn.ui"_ustr, u"cui/ui/optnewdictionarydialog.ui"_ustr, u"cui/ui/password.ui"_ustr, + u"cui/ui/pastespecial.ui"_ustr, u"cui/ui/querysetinsmodedialog.ui"_ustr, u"cui/ui/securityoptionsdialog.ui"_ustr, u"cui/ui/tipofthedaydialog.ui"_ustr,