Changeset View
Changeset View
Standalone View
Standalone View
src/kpastetextaction.cpp
Show All 28 Lines | |||||
29 | #include "kconfigwidgets_debug.h" | 29 | #include "kconfigwidgets_debug.h" | ||
30 | 30 | | |||
31 | #include <QApplication> | 31 | #include <QApplication> | ||
32 | #include <QClipboard> | 32 | #include <QClipboard> | ||
33 | #include <QMenu> | 33 | #include <QMenu> | ||
34 | #include <QDBusInterface> | 34 | #include <QDBusInterface> | ||
35 | #include <QDBusReply> | 35 | #include <QDBusReply> | ||
36 | 36 | | |||
37 | #ifndef KDE_NO_DEPRECATED | 37 | #if KCONFIGWIDGETS_BUILD_DEPRECATED_SINCE(5, 39) | ||
38 | | ||||
38 | class KPasteTextActionPrivate | 39 | class KPasteTextActionPrivate | ||
39 | { | 40 | { | ||
40 | public: | 41 | public: | ||
41 | KPasteTextActionPrivate(KPasteTextAction *parent) | 42 | KPasteTextActionPrivate(KPasteTextAction *parent) | ||
42 | : q(parent) | 43 | : q(parent) | ||
43 | { | 44 | { | ||
44 | } | 45 | } | ||
45 | 46 | | |||
▲ Show 20 Lines • Show All 87 Lines • ▼ Show 20 Line(s) | 133 | if (!reply.isValid()) { | |||
133 | return; | 134 | return; | ||
134 | } | 135 | } | ||
135 | QString clipboardText = reply; | 136 | QString clipboardText = reply; | ||
136 | reply = klipper.call(QStringLiteral("setClipboardContents"), clipboardText); | 137 | reply = klipper.call(QStringLiteral("setClipboardContents"), clipboardText); | ||
137 | //if (reply.isValid()) | 138 | //if (reply.isValid()) | ||
138 | // qCDebug(KCONFIG_WIDGETS_LOG) << "Clipboard: " << qApp->clipboard()->text(QClipboard::Clipboard); | 139 | // qCDebug(KCONFIG_WIDGETS_LOG) << "Clipboard: " << qApp->clipboard()->text(QClipboard::Clipboard); | ||
139 | } | 140 | } | ||
140 | } | 141 | } | ||
141 | #endif // KDE_NO_DEPRECATED | | |||
142 | 142 | | |||
143 | #include "moc_kpastetextaction.cpp" | 143 | #include "moc_kpastetextaction.cpp" | ||
144 | | ||||
145 | #endif // KCONFIGWIDGETS_BUILD_DEPRECATED_SINCE |