Changeset View
Changeset View
Standalone View
Standalone View
applets/systemtray/package/contents/ui/PlasmoidPopupsContainer.qml
Show All 14 Lines | |||||
15 | * License along with this program; if not, write to the | 15 | * License along with this program; if not, write to the | ||
16 | * Free Software Foundation, Inc., | 16 | * Free Software Foundation, Inc., | ||
17 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | 17 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
18 | */ | 18 | */ | ||
19 | 19 | | |||
20 | import QtQuick 2.4 | 20 | import QtQuick 2.4 | ||
21 | import QtQuick.Layouts 1.1 | 21 | import QtQuick.Layouts 1.1 | ||
22 | import QtQuick.Controls 1.4 | 22 | import QtQuick.Controls 1.4 | ||
23 | import org.kde.plasma.core 2.0 as PlasmaCore | | |||
24 | import org.kde.plasma.components 2.0 as PlasmaComponents | | |||
25 | 23 | | |||
26 | StackView { | 24 | StackView { | ||
27 | id: mainStack | 25 | id: mainStack | ||
28 | clip: true | 26 | clip: true | ||
29 | focus: true | 27 | focus: true | ||
30 | 28 | | |||
31 | Layout.minimumWidth: units.gridUnit * 12 | 29 | Layout.minimumWidth: units.gridUnit * 12 | ||
broulik: `units` effectively comes from `PlasmaCore` | |||||
missed that, sorry restored now: https://cgit.kde.org/plasma-workspace.git/commit/?id=9abca62be5d51310bdb5b3d036a04000bf4e203e filipf: missed that, sorry
restored now: https://cgit.kde.org/plasma-workspace.git/commit/? | |||||
32 | Layout.minimumHeight: units.gridUnit * 12 | 30 | Layout.minimumHeight: units.gridUnit * 12 | ||
33 | 31 | | |||
34 | property Item activeApplet | 32 | property Item activeApplet | ||
35 | 33 | | |||
36 | onActiveAppletChanged: { | 34 | onActiveAppletChanged: { | ||
37 | if (activeApplet != null) { | 35 | if (activeApplet != null) { | ||
38 | //reset any potential anchor | 36 | //reset any potential anchor | ||
39 | activeApplet.fullRepresentationItem.anchors.left = undefined; | 37 | activeApplet.fullRepresentationItem.anchors.left = undefined; | ||
▲ Show 20 Lines • Show All 65 Lines • Show Last 20 Lines |
units effectively comes from PlasmaCore