PlasmaExtraComponents
Go to the documentation of this file.
21 import org.kde.plasma.core 0.1 as PlasmaCore
22 import org.kde.plasma.components 0.1 as PlasmaComponents
66 property alias navigation: navigationItem.children
72 property alias content: contentItem.children
78 property alias tools: topBar.tools
80 property alias contentArea: contentBackground
81 property int space: 20
82 property int navigationWidth: 340
83 property int contentWidth: app.width - navigationWidth - space*2
85 PlasmaCore.Theme {
id: theme }
87 PlasmaComponents.ToolBar {
89 height: visible ? 48 : 0
91 anchors { top: parent.top; left: parent.left; right: parent.right; }
96 height = (tools && tools.childrenRect.width > 20) ? tools.childrenRect.height + space : 0
101 id: contentBackground
102 anchors { left: navigationBackground.right; right: parent.right; top: topBar.bottom; bottom: parent.bottom; }
103 source:
"image://appbackgrounds/standard"
111 anchors { left: parent.left; margins: space; top: parent.top; bottom: parent.bottom; right: parent.right; }
116 id: navigationBackground
117 anchors { left: parent.left; top: topBar.bottom; bottom: parent.bottom; }
118 source:
"image://appbackgrounds/contextarea"
122 width: navigationWidth + space
124 NumberAnimation { duration: 250; easing.type: Easing.InOutExpo; }
134 source:
"image://appbackgrounds/shadow-left"
137 right: navigationBackground.right
139 bottom: parent.bottom
145 source:
"image://appbackgrounds/shadow-bottom"
148 right: navigationBackground.right
149 left: navigationBackground.left
157 print(
"content changed to ");
163 onNavigationWidthChanged: {
164 navigationBackground.width = navigationWidth;
165 navigationItem.width = navigationWidth;
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:02:50 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.