Changeset View
Changeset View
Standalone View
Standalone View
applets/batterymonitor/package/contents/ui/ConfigGeneral.qml
Show All 11 Lines | |||||
12 | * GNU General Public License for more details. | 12 | * GNU General Public License for more details. | ||
13 | * | 13 | * | ||
14 | * You should have received a copy of the GNU General Public License | 14 | * You should have received a copy of the GNU General Public License | ||
15 | * along with this program; if not, write to the Free Software | 15 | * along with this program; if not, write to the Free Software | ||
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 2.010-1301, USA. | 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 2.010-1301, USA. | ||
17 | */ | 17 | */ | ||
18 | 18 | | |||
19 | import QtQuick 2.0 | 19 | import QtQuick 2.0 | ||
20 | import QtQuick.Controls 1.0 as QtControls | 20 | import QtQuick.Controls 2.5 | ||
21 | import QtQuick.Layouts 1.0 as QtLayouts | 21 | import org.kde.kirigami 2.4 as Kirigami | ||
22 | | ||||
23 | import org.kde.plasma.core 2.0 as PlasmaCore | | |||
24 | 22 | | |||
25 | Item { | 23 | Item { | ||
26 | id: root | 24 | id: root | ||
27 | 25 | | |||
28 | implicitWidth: pageColumn.implicitWidth | 26 | width: pageColumn.width | ||
29 | implicitHeight: pageColumn.implicitHeight | 27 | height: pageColumn.height | ||
30 | 28 | | |||
31 | property alias cfg_showPercentage: showPercentage.checked | 29 | property alias cfg_showPercentage: showPercentage.checked | ||
32 | 30 | | |||
33 | QtLayouts.ColumnLayout { | 31 | Kirigami.FormLayout { | ||
34 | id: pageColumn | 32 | id: pageColumn | ||
35 | anchors.left: parent.left | 33 | anchors.left: parent.left | ||
34 | anchors.right: parent.right | ||||
36 | 35 | | |||
37 | QtControls.CheckBox { | 36 | CheckBox { | ||
38 | id: showPercentage | 37 | id: showPercentage | ||
39 | text: i18n("Show percentage") | 38 | text: i18n("Show percentage") | ||
40 | } | 39 | } | ||
41 | } | 40 | } | ||
42 | } | 41 | } |