summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2024-08-06 18:19:31 +0200
committerMichael Weghorn <m.weghorn@posteo.de>2024-08-07 07:12:31 +0200
commit458b803e4cd5a6e074970c3c4cdeb0762c89df36 (patch)
treeb2bff2d3ed4c5de90dd78f7063b588a89dce2164 /vcl
parent3f66d9a0b715e2f45e3ebb30d6f65dcf762fbef4 (diff)
tdf#130857 qt weld: Implement QtInstanceWidget::get_clipboard
Like the gtk3 implementation, simply return the system clipboard. Change-Id: I643b31163954f2648b3bbee74397fc23c616ddef Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171561 Reviewed-by: Michael Weghorn <m.weghorn@posteo.de> Tested-by: Jenkins
Diffstat (limited to 'vcl')
-rw-r--r--vcl/qt5/QtInstanceWidget.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/vcl/qt5/QtInstanceWidget.cxx b/vcl/qt5/QtInstanceWidget.cxx
index 9fead2b3408f..c3a5009659b3 100644
--- a/vcl/qt5/QtInstanceWidget.cxx
+++ b/vcl/qt5/QtInstanceWidget.cxx
@@ -9,6 +9,8 @@
#include <QtInstanceWidget.hxx>
+#include <vcl/transfer.hxx>
+
QtInstanceWidget::QtInstanceWidget(QWidget* pWidget)
: m_pWidget(pWidget)
{
@@ -237,7 +239,7 @@ css::uno::Reference<css::datatransfer::dnd::XDropTarget> QtInstanceWidget::get_d
css::uno::Reference<css::datatransfer::clipboard::XClipboard>
QtInstanceWidget::get_clipboard() const
{
- return css::uno::Reference<css::datatransfer::clipboard::XClipboard>();
+ return GetSystemClipboard();
}
void QtInstanceWidget::connect_get_property_tree(const Link<tools::JsonWriter&, void>&) {}