Changeset View
Changeset View
Standalone View
Standalone View
applets/systemtray/package/contents/ui/ConfigEntries.qml
1 | /* | 1 | /* | ||
---|---|---|---|---|---|
2 | * Copyright 2013 Sebastian Kügler <sebas@kde.org> | 2 | * Copyright 2013 Sebastian Kügler <sebas@kde.org> | ||
3 | * Copyright 2014 Marco Martin <mart@kde.org> | 3 | * Copyright 2014 Marco Martin <mart@kde.org> | ||
4 | * Copyright 2019 ivan tkachenko <ratijastk@kde.org> | ||||
4 | * | 5 | * | ||
5 | * This program is free software; you can redistribute it and/or modify | 6 | * This program is free software; you can redistribute it and/or modify | ||
6 | * it under the terms of the GNU General Public License as published by | 7 | * it under the terms of the GNU General Public License as published by | ||
7 | * the Free Software Foundation; either version 2 of the License, or | 8 | * the Free Software Foundation; either version 2 of the License, or | ||
8 | * (at your option) any later version. | 9 | * (at your option) any later version. | ||
9 | * | 10 | * | ||
10 | * This program is distributed in the hope that it will be useful, | 11 | * This program is distributed in the hope that it will be useful, | ||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
Show All 27 Lines | 33 | ColumnLayout { | |||
39 | property alias cfg_showAllItems: showAllCheckBox.checked | 40 | property alias cfg_showAllItems: showAllCheckBox.checked | ||
40 | 41 | | |||
41 | function saveConfig () { | 42 | function saveConfig () { | ||
42 | for (var i in tableView.model) { | 43 | for (var i in tableView.model) { | ||
43 | //tableView.model[i].applet.globalShortcut = tableView.model[i].shortcut | 44 | //tableView.model[i].applet.globalShortcut = tableView.model[i].shortcut | ||
44 | } | 45 | } | ||
45 | } | 46 | } | ||
46 | 47 | | |||
47 | PlasmaCore.DataSource { | 48 | StatusNotifierItemModel { | ||
48 | id: statusNotifierSource | | |||
49 | engine: "statusnotifieritem" | | |||
50 | interval: 0 | | |||
51 | onSourceAdded: { | | |||
52 | connectSource(source) | | |||
53 | } | | |||
54 | Component.onCompleted: { | | |||
55 | connectedSources = sources | | |||
56 | } | | |||
57 | } | | |||
58 | | ||||
59 | PlasmaCore.SortFilterModel { | | |||
60 | id: statusNotifierModel | 49 | id: statusNotifierModel | ||
61 | sourceModel: PlasmaCore.DataModel { | | |||
62 | dataSource: statusNotifierSource | | |||
63 | } | | |||
64 | } | 50 | } | ||
65 | 51 | | |||
66 | 52 | | |||
67 | Kirigami.FormLayout { | 53 | Kirigami.FormLayout { | ||
68 | 54 | | |||
69 | QQC2.CheckBox { | 55 | QQC2.CheckBox { | ||
70 | id: showAllCheckBox | 56 | id: showAllCheckBox | ||
71 | text: i18n("Always show all entries") | 57 | text: i18n("Always show all entries") | ||
▲ Show 20 Lines • Show All 195 Lines • Show Last 20 Lines |