Changeset View
Changeset View
Standalone View
Standalone View
applets/systemtray/package/contents/ui/ExpandedRepresentation.qml
1 | /* | 1 | /* | ||
---|---|---|---|---|---|
2 | * Copyright 2016 Marco Martin <mart@kde.org> | 2 | * Copyright 2016 Marco Martin <mart@kde.org> | ||
3 | * Copyright 2019 ivan tkachenko <ratijastk@kde.org> | ||||
3 | * | 4 | * | ||
4 | * This program is free software; you can redistribute it and/or modify | 5 | * This program is free software; you can redistribute it and/or modify | ||
5 | * it under the terms of the GNU Library General Public License as | 6 | * it under the terms of the GNU Library General Public License as | ||
6 | * published by the Free Software Foundation; either version 2, or | 7 | * published by the Free Software Foundation; either version 2, or | ||
7 | * (at your option) any later version. | 8 | * (at your option) any later version. | ||
8 | * | 9 | * | ||
9 | * This program is distributed in the hope that it will be useful, | 10 | * This program is distributed in the hope that it will be useful, | ||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
Show All 10 Lines | |||||
21 | import QtQuick.Layouts 1.1 | 22 | import QtQuick.Layouts 1.1 | ||
22 | import org.kde.plasma.core 2.0 as PlasmaCore | 23 | import org.kde.plasma.core 2.0 as PlasmaCore | ||
23 | import org.kde.plasma.components 2.0 as PlasmaComponents | 24 | import org.kde.plasma.components 2.0 as PlasmaComponents | ||
24 | import org.kde.plasma.extras 2.0 as PlasmaExtras | 25 | import org.kde.plasma.extras 2.0 as PlasmaExtras | ||
25 | 26 | | |||
26 | Item { | 27 | Item { | ||
27 | id: expandedRepresentation | 28 | id: expandedRepresentation | ||
28 | 29 | | |||
29 | //set width/height to avoid an useless Dialog resize | | |||
30 | width: Layout.minimumWidth | | |||
31 | height: Layout.minimumHeight | | |||
32 | Layout.minimumWidth: units.gridUnit * 24 | 30 | Layout.minimumWidth: units.gridUnit * 24 | ||
33 | Layout.minimumHeight: units.gridUnit * 21 | 31 | Layout.minimumHeight: units.gridUnit * 21 | ||
34 | Layout.preferredWidth: Layout.minimumWidth | 32 | Layout.preferredWidth: Layout.minimumWidth | ||
35 | Layout.preferredHeight: Layout.minimumHeight * 1.5 | 33 | Layout.preferredHeight: Layout.minimumHeight * 1.5 | ||
36 | 34 | | |||
37 | property alias activeApplet: container.activeApplet | 35 | property alias activeApplet: container.activeApplet | ||
38 | property alias hiddenLayout: hiddenItemsView.layout | 36 | property alias hiddenLayout: hiddenItemsView.layout | ||
39 | 37 | | |||
▲ Show 20 Lines • Show All 105 Lines • Show Last 20 Lines |