Changeset View
Changeset View
Standalone View
Standalone View
effects/desktopgrid/main.qml
Show All 12 Lines | |||||
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
15 | GNU General Public License for more details. | 15 | GNU General Public License for more details. | ||
16 | 16 | | |||
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 org.kde.plasma.components 2.0 as Plasma | 21 | import QtQuick.Layouts 1.2 | ||
22 | import org.kde.plasma.components 3.0 as Plasma | ||||
22 | 23 | | |||
23 | Item { | 24 | RowLayout { | ||
24 | width: childrenRect.width | | |||
25 | height: childrenRect.height | | |||
26 | Plasma.ButtonRow { | | |||
27 | exclusive: false | | |||
28 | width: childrenRect.width | | |||
29 | height: childrenRect.height | | |||
30 | Plasma.Button { | 25 | Plasma.Button { | ||
31 | id: removeButton | | |||
32 | objectName: "removeButton" | 26 | objectName: "removeButton" | ||
33 | enabled: remove | 27 | enabled: effects.desktops > 1 | ||
34 | width: height | 28 | icon.name: "list-remove" | ||
35 | font.bold: true | 29 | onClicked: effects.desktops-- | ||
36 | font.pointSize: 20 | | |||
37 | text: "-" | | |||
38 | } | 30 | } | ||
39 | Plasma.Button { | 31 | Plasma.Button { | ||
40 | id: addButton | | |||
41 | objectName: "addButton" | 32 | objectName: "addButton" | ||
42 | enabled: add | 33 | enabled: effects.desktops < 20 | ||
43 | font.bold: true | 34 | icon.name: "list-add" | ||
44 | font.pointSize: 20 | 35 | onClicked: effects.desktops++ | ||
45 | width: height | | |||
46 | text: "+" | | |||
47 | } | | |||
48 | } | 36 | } | ||
49 | } | 37 | } |