Changeset View
Changeset View
Standalone View
Standalone View
src/context/qml_plugin/Applet.qml
Show All 11 Lines | |||||
12 | * * | 12 | * * | ||
13 | * You should have received a copy of the GNU General Public License along with * | 13 | * You should have received a copy of the GNU General Public License along with * | ||
14 | * this program. If not, see <http://www.gnu.org/licenses/>. * | 14 | * this program. If not, see <http://www.gnu.org/licenses/>. * | ||
15 | ****************************************************************************************/ | 15 | ****************************************************************************************/ | ||
16 | 16 | | |||
17 | import QtQuick 2.4 | 17 | import QtQuick 2.4 | ||
18 | import QtQuick.Dialogs 1.2 | 18 | import QtQuick.Dialogs 1.2 | ||
19 | import org.kde.kirigami 2.0 as Kirigami | 19 | import org.kde.kirigami 2.0 as Kirigami | ||
20 | import org.kde.kirigami 2.0 as Kirigami | | |||
21 | 20 | | |||
22 | 21 | | |||
23 | Rectangle { | 22 | Rectangle { | ||
24 | id: root | 23 | id: root | ||
25 | 24 | | |||
26 | default property alias contents: content.data | 25 | default property alias contents: content.data | ||
27 | property alias title: header.title | 26 | property alias title: header.title | ||
28 | property string name: "Nameless Applet" | 27 | property string name: "Nameless Applet" | ||
29 | property string appletId | 28 | property string appletId | ||
30 | property string packagePath | | |||
31 | property url iconSource | 29 | property url iconSource | ||
32 | property bool collapsed: false | 30 | property bool collapsed: false | ||
33 | property bool configEnabled: false | 31 | property bool configEnabled: false | ||
34 | property real spacing: Kirigami.Units.smallSpacing | 32 | property real spacing: Kirigami.Units.smallSpacing | ||
35 | property real padding: spacing | 33 | property real padding: spacing | ||
36 | property real contentHeight: content.childrenRect.height | 34 | property real contentHeight: content.childrenRect.height | ||
37 | property Dialog configDialog: null | 35 | property Dialog configDialog: null | ||
38 | readonly property AppletHeader appletHeader: header | 36 | readonly property AppletHeader appletHeader: header | ||
▲ Show 20 Lines • Show All 68 Lines • Show Last 20 Lines |