Changeset View
Changeset View
Standalone View
Standalone View
tests/components/button.qml
1 | import QtQuick 2.0 | 1 | import QtQuick 2.0 | ||
---|---|---|---|---|---|
2 | 2 | | |||
3 | import org.kde.plasma.components 2.0 as PlasmaComponents | 3 | import org.kde.plasma.components 2.0 as PlasmaComponents | ||
4 | import QtQuick.Controls 1.2 | 4 | import QtQuick.Controls 1.2 | ||
5 | import QtQuick.Layouts 1.2 | 5 | import QtQuick.Layouts 1.2 | ||
6 | 6 | | |||
7 | Rectangle | 7 | ComponentBase { | ||
8 | { | | |||
9 | width: 500 | | |||
10 | height: 500 | | |||
11 | color: "white" | | |||
12 | | ||||
13 | Grid { | 8 | Grid { | ||
14 | anchors.fill: parent | 9 | anchors.fill: parent | ||
15 | anchors.margins: 20 | 10 | anchors.margins: 20 | ||
16 | spacing: 20 | 11 | spacing: 20 | ||
17 | columns: 2 | 12 | columns: 2 | ||
18 | 13 | | |||
19 | Label { | 14 | Label { | ||
20 | text: "icon + text" | 15 | text: "icon + text" | ||
▲ Show 20 Lines • Show All 107 Lines • Show Last 20 Lines |