aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/clipboard/clipboard.hpp
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-02-19 18:51:38 +0800
committerobscuren <geffobscura@gmail.com>2015-02-19 18:51:38 +0800
commit0057bb4ef6d55b5d580a4e0421526a477ef93de9 (patch)
treec42682f9399bc59d9a1623a4b159231e434fa8d5 /ui/qt/clipboard/clipboard.hpp
parent03b8c6841be08f19db0f98cea6d0a6f4fd64736f (diff)
downloaddexon-0057bb4ef6d55b5d580a4e0421526a477ef93de9.tar
dexon-0057bb4ef6d55b5d580a4e0421526a477ef93de9.tar.gz
dexon-0057bb4ef6d55b5d580a4e0421526a477ef93de9.tar.bz2
dexon-0057bb4ef6d55b5d580a4e0421526a477ef93de9.tar.lz
dexon-0057bb4ef6d55b5d580a4e0421526a477ef93de9.tar.xz
dexon-0057bb4ef6d55b5d580a4e0421526a477ef93de9.tar.zst
dexon-0057bb4ef6d55b5d580a4e0421526a477ef93de9.zip
WIP QT Clipboard
Diffstat (limited to 'ui/qt/clipboard/clipboard.hpp')
-rw-r--r--ui/qt/clipboard/clipboard.hpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/ui/qt/clipboard/clipboard.hpp b/ui/qt/clipboard/clipboard.hpp
new file mode 100644
index 000000000..1aa213ceb
--- /dev/null
+++ b/ui/qt/clipboard/clipboard.hpp
@@ -0,0 +1,23 @@
+#pragma once
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+class Clipboard : public QObject
+{
+ Q_OBJECT
+ Q_PROPERTY(QString get READ get WRITE toClipboard NOTIFY clipboardChanged)
+public:
+ Clipboard();
+ virtual ~Clipboard(){}
+
+ Q_INVOKABLE void toClipboard(QString _text);
+
+signals:
+ void clipboardChanged();
+};
+
+#ifdef __cplusplus
+} // extern "C"
+#endif