diff options
author | Marco Martin <notmart@gmail.com> | 2016-03-08 21:26:54 +0100 |
---|---|---|
committer | Marco Martin <notmart@gmail.com> | 2016-03-08 21:26:54 +0100 |
commit | c780cfd7ce483c5e3e870c9c92c06a4f1995cbed (patch) | |
tree | 80e1e3ae9d2c1342f2bfba1397637452f98efc28 /qt-mobile/qml/CloudCredentials.qml | |
parent | c6c3967dd99f198131f3f3e170a6d20d0dc77deb (diff) | |
download | subsurface-c780cfd7ce483c5e3e870c9c92c06a4f1995cbed.tar.gz |
port to Kirigami imports and new api
first quick and dirty port of the imports to Kirigami 1.0
(using system installed for now) adapt to api changes and
try out some of the proposed ui changes from the HIG
Signed-off-by: Marco Martin <notmart@gmail.com>
Diffstat (limited to 'qt-mobile/qml/CloudCredentials.qml')
-rw-r--r-- | qt-mobile/qml/CloudCredentials.qml | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/qt-mobile/qml/CloudCredentials.qml b/qt-mobile/qml/CloudCredentials.qml index 73722d3a0..3eeeb16b4 100644 --- a/qt-mobile/qml/CloudCredentials.qml +++ b/qt-mobile/qml/CloudCredentials.qml @@ -3,12 +3,12 @@ import QtQuick.Controls 1.2 import QtQuick.Window 2.2 import QtQuick.Dialogs 1.2 import QtQuick.Layouts 1.1 -import org.kde.plasma.mobilecomponents 0.2 as MobileComponents +import org.kde.kirigami 1.0 as Kirigami import org.subsurfacedivelog.mobile 1.0 Item { id: loginWindow - height: outerLayout.height + 2 * MobileComponents.Units.gridUnit + height: outerLayout.height + 2 * Kirigami.Units.gridUnit property string username: login.text; property string password: password.text; @@ -23,14 +23,14 @@ Item { ColumnLayout { id: outerLayout - width: subsurfaceTheme.columnWidth - 2 * MobileComponents.Units.gridUnit - MobileComponents.Heading { + width: subsurfaceTheme.columnWidth - 2 * Kirigami.Units.gridUnit + Kirigami.Heading { text: "Cloud credentials" level: headingLevel - Layout.bottomMargin: MobileComponents.Units.largeSpacing / 2 + Layout.bottomMargin: Kirigami.Units.largeSpacing / 2 } - MobileComponents.Label { + Kirigami.Label { text: "Email" } @@ -42,7 +42,7 @@ Item { Qt.ImhNoAutoUppercase } - MobileComponents.Label { + Kirigami.Label { text: "Password" } @@ -65,7 +65,7 @@ Item { password.echoMode = checked ? TextInput.Normal : TextInput.Password } } - MobileComponents.Label { + Kirigami.Label { text: "Show password" } @@ -73,10 +73,10 @@ Item { checked: manager.saveCloudPassword id: savePassword } - MobileComponents.Label { + Kirigami.Label { text: "Remember" } } - Item { width: MobileComponents.Units.gridUnit; height: width } + Item { width: Kirigami.Units.gridUnit; height: width } } } |