summaryrefslogtreecommitdiffstats
path: root/framework/src/clipboardproxy.h
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-07-29 16:42:52 -0600
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-07-29 16:44:27 -0600
commitc092d555bd6d3e93a11625bfe76bb59b2e64e994 (patch)
tree0c899e74cafdb8878f92405d7b0e3df2b41078b5 /framework/src/clipboardproxy.h
parent51fbcca97ef9058cdb75c52ac77bdc728a296e4a (diff)
downloadkube-c092d555bd6d3e93a11625bfe76bb59b2e64e994.tar.gz
kube-c092d555bd6d3e93a11625bfe76bb59b2e64e994.zip
SelectableLabel to support copying individual labels
Diffstat (limited to 'framework/src/clipboardproxy.h')
-rw-r--r--framework/src/clipboardproxy.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/framework/src/clipboardproxy.h b/framework/src/clipboardproxy.h
new file mode 100644
index 00000000..9a965004
--- /dev/null
+++ b/framework/src/clipboardproxy.h
@@ -0,0 +1,39 @@
1/*
2 Copyright (c) 2016 Christian Mollekofp <mollekopf@kolabsys.com>
3
4 This library is free software; you can redistribute it and/or modify it
5 under the terms of the GNU Library General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or (at your
7 option) any later version.
8
9 This library is distributed in the hope that it will be useful, but WITHOUT
10 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
12 License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to the
16 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 02110-1301, USA.
18*/
19#pragma once
20
21#include <QObject>
22class ClipboardProxy : public QObject
23{
24 Q_OBJECT
25 Q_PROPERTY(QString text READ dataText WRITE setDataText NOTIFY dataChanged)
26 Q_PROPERTY(QString selectionText READ selectionText WRITE setSelectionText NOTIFY selectionChanged)
27public:
28 explicit ClipboardProxy(QObject *parent = 0);
29
30 void setDataText(const QString &text);
31 QString dataText() const;
32
33 void setSelectionText(const QString &text);
34 QString selectionText() const;
35
36signals:
37 void dataChanged();
38 void selectionChanged();
39};