aboutsummaryrefslogtreecommitdiff
path: root/clipboardAdapter.cpp
diff options
context:
space:
mode:
authormarcin <z.krzysztoff7@gmail.com>2014-07-16 14:40:09 +0200
committermarcin <z.krzysztoff7@gmail.com>2014-07-16 14:40:09 +0200
commit2eddebe1c2c41f8a9be56862f355251d5d34f18f (patch)
tree4a34053a6d1db2718596b18c262a2b0ab4bf30e1 /clipboardAdapter.cpp
parent855d5736c509363dd47e091210f2f3fe64ad9117 (diff)
downloadmonzero-gui-2eddebe1c2c41f8a9be56862f355251d5d34f18f.tar.gz
monzero-gui-2eddebe1c2c41f8a9be56862f355251d5d34f18f.tar.xz
monzero-gui-2eddebe1c2c41f8a9be56862f355251d5d34f18f.zip
https://trello.com/c/LXEnXYLF/42-fix-monero-logo
https://trello.com/c/VpuuPT5L/27-per-transaction-descriptions-should-be-removed-from-dashboard-history-as-discussed https://trello.com/c/wy3nFH3g/30-please-add-ctrl-tab-ctrl-shift-tab-shortcut-keys-to-rotate-between-tabs https://trello.com/c/6Y6kOXsU/44-add-monero-title-to-the-main-window
Diffstat (limited to 'clipboardAdapter.cpp')
-rw-r--r--clipboardAdapter.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/clipboardAdapter.cpp b/clipboardAdapter.cpp
new file mode 100644
index 00000000..1d5d2d71
--- /dev/null
+++ b/clipboardAdapter.cpp
@@ -0,0 +1,12 @@
+#include "clipboardAdapter.h"
+
+clipboardAdapter::clipboardAdapter(QObject *parent) :
+ QObject(parent)
+{
+ m_pClipboard = QGuiApplication::clipboard();
+}
+
+void clipboardAdapter::setText(const QString &text) {
+ m_pClipboard->setText(text, QClipboard::Clipboard);
+ m_pClipboard->setText(text, QClipboard::Selection);
+}