Changeset View
Changeset View
Standalone View
Standalone View
applets/clipboard/contents/ui/clipboard.qml
Show All 16 Lines | |||||
17 | You should have received a copy of the GNU General Public License | 17 | You should have received a copy of the GNU General Public License | ||
18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
19 | *********************************************************************/ | 19 | *********************************************************************/ | ||
20 | import QtQuick 2.0 | 20 | import QtQuick 2.0 | ||
21 | import QtQuick.Layouts 1.1 | 21 | import QtQuick.Layouts 1.1 | ||
22 | import org.kde.plasma.plasmoid 2.0 | 22 | import org.kde.plasma.plasmoid 2.0 | ||
23 | import org.kde.plasma.core 2.0 as PlasmaCore | 23 | import org.kde.plasma.core 2.0 as PlasmaCore | ||
24 | import org.kde.plasma.components 2.0 as PlasmaComponents | 24 | import org.kde.plasma.components 2.0 as PlasmaComponents | ||
25 | import org.kde.plasma.components 3.0 as PlasmaComponents3 | ||||
25 | import org.kde.plasma.extras 2.0 as PlasmaExtras | 26 | import org.kde.plasma.extras 2.0 as PlasmaExtras | ||
26 | 27 | | |||
27 | Item { | 28 | Item { | ||
28 | id: main | 29 | id: main | ||
29 | 30 | | |||
30 | Plasmoid.switchWidth: units.gridUnit * 5 | 31 | Plasmoid.switchWidth: units.gridUnit * 5 | ||
31 | Plasmoid.switchHeight: units.gridUnit * 5 | 32 | Plasmoid.switchHeight: units.gridUnit * 5 | ||
32 | Plasmoid.status: clipboardSource.data["clipboard"]["empty"] ? PlasmaCore.Types.PassiveStatus : PlasmaCore.Types.ActiveStatus | 33 | Plasmoid.status: clipboardSource.data["clipboard"]["empty"] ? PlasmaCore.Types.PassiveStatus : PlasmaCore.Types.ActiveStatus | ||
Show All 25 Lines | 58 | function edit(uuid) { | |||
58 | clipboardSource.editing = true; | 59 | clipboardSource.editing = true; | ||
59 | var job = clipboardSource.service(uuid, "edit"); | 60 | var job = clipboardSource.service(uuid, "edit"); | ||
60 | job.finished.connect(function() { | 61 | job.finished.connect(function() { | ||
61 | clipboardSource.editing = false; | 62 | clipboardSource.editing = false; | ||
62 | }); | 63 | }); | ||
63 | } | 64 | } | ||
64 | } | 65 | } | ||
65 | 66 | | |||
66 | Plasmoid.fullRepresentation: Item { | 67 | Plasmoid.fullRepresentation: PlasmaComponents3.Page { | ||
67 | id: dialogItem | 68 | id: dialogItem | ||
68 | Layout.minimumWidth: units.gridUnit * 5 | 69 | Layout.minimumWidth: units.gridUnit * 5 | ||
69 | Layout.minimumHeight: units.gridUnit * 5 | 70 | Layout.minimumHeight: units.gridUnit * 5 | ||
70 | 71 | | |||
71 | focus: true | 72 | focus: true | ||
72 | 73 | | |||
74 | header: stack.currentPage.header | ||||
75 | | ||||
73 | property alias listMargins: listItemSvg.margins | 76 | property alias listMargins: listItemSvg.margins | ||
74 | 77 | | |||
75 | PlasmaCore.FrameSvgItem { | 78 | PlasmaCore.FrameSvgItem { | ||
76 | id : listItemSvg | 79 | id : listItemSvg | ||
77 | imagePath: "widgets/listitem" | 80 | imagePath: "widgets/listitem" | ||
78 | prefix: "normal" | 81 | prefix: "normal" | ||
79 | visible: false | 82 | visible: false | ||
80 | } | 83 | } | ||
Show All 18 Lines |