diff options
-rw-r--r-- | components/accounts/contents/ui/AccountWizard.qml | 4 | ||||
-rw-r--r-- | components/accounts/contents/ui/AccountWizardPage.qml | 4 | ||||
-rw-r--r-- | dist/kube.spec | 1 | ||||
-rw-r--r-- | framework/qml/AutocompleteLineEdit.qml | 21 | ||||
-rw-r--r-- | framework/qml/EditAccount.qml | 4 | ||||
-rw-r--r-- | framework/qml/MailViewer.qml | 5 | ||||
-rw-r--r-- | framework/qml/People.qml | 3 |
7 files changed, 22 insertions, 20 deletions
diff --git a/components/accounts/contents/ui/AccountWizard.qml b/components/accounts/contents/ui/AccountWizard.qml index c5ec4ba3..26001162 100644 --- a/components/accounts/contents/ui/AccountWizard.qml +++ b/components/accounts/contents/ui/AccountWizard.qml | |||
@@ -19,7 +19,6 @@ | |||
19 | import QtQuick 2.7 | 19 | import QtQuick 2.7 |
20 | import QtQuick.Layouts 1.1 | 20 | import QtQuick.Layouts 1.1 |
21 | import QtQuick.Controls 2.0 as Controls2 | 21 | import QtQuick.Controls 2.0 as Controls2 |
22 | import org.kde.kirigami 1.0 as Kirigami | ||
23 | import org.kube.framework 1.0 as Kube | 22 | import org.kube.framework 1.0 as Kube |
24 | 23 | ||
25 | Kube.Popup { | 24 | Kube.Popup { |
@@ -43,7 +42,8 @@ Kube.Popup { | |||
43 | id: mainView | 42 | id: mainView |
44 | 43 | ||
45 | Item { | 44 | Item { |
46 | Kirigami.Heading { | 45 | //TODO Kube.Heading |
46 | Kube.Label { | ||
47 | id: heading | 47 | id: heading |
48 | text: "Select your new account type" | 48 | text: "Select your new account type" |
49 | color: Kube.Colors.highlightColor | 49 | color: Kube.Colors.highlightColor |
diff --git a/components/accounts/contents/ui/AccountWizardPage.qml b/components/accounts/contents/ui/AccountWizardPage.qml index e77f0cd9..12d8efd8 100644 --- a/components/accounts/contents/ui/AccountWizardPage.qml +++ b/components/accounts/contents/ui/AccountWizardPage.qml | |||
@@ -21,7 +21,6 @@ import QtQuick 2.7 | |||
21 | import QtQuick.Layouts 1.1 | 21 | import QtQuick.Layouts 1.1 |
22 | import QtQuick.Controls 1.4 as Controls | 22 | import QtQuick.Controls 1.4 as Controls |
23 | import QtQuick.Controls 2.0 as Controls2 | 23 | import QtQuick.Controls 2.0 as Controls2 |
24 | import org.kde.kirigami 1.0 as Kirigami | ||
25 | import org.kube.framework 1.0 as Kube | 24 | import org.kube.framework 1.0 as Kube |
26 | 25 | ||
27 | 26 | ||
@@ -53,7 +52,8 @@ Item { | |||
53 | bottom: parent.bottom | 52 | bottom: parent.bottom |
54 | } | 53 | } |
55 | 54 | ||
56 | Kirigami.Heading { | 55 | //TODO Kube.Heading |
56 | Kube.Label { | ||
57 | id: heading | 57 | id: heading |
58 | text: loader.item.heading | 58 | text: loader.item.heading |
59 | color: Kube.Colors.highlightColor | 59 | color: Kube.Colors.highlightColor |
diff --git a/dist/kube.spec b/dist/kube.spec index ae577aec..62829c85 100644 --- a/dist/kube.spec +++ b/dist/kube.spec | |||
@@ -31,7 +31,6 @@ Requires: qt5-qtquick1 | |||
31 | Requires: qt5-qtquickcontrols | 31 | Requires: qt5-qtquickcontrols |
32 | Requires: qt5-qtquickcontrols2-devel | 32 | Requires: qt5-qtquickcontrols2-devel |
33 | Requires: sink >= 0.3 | 33 | Requires: sink >= 0.3 |
34 | Requires: kirigami | ||
35 | Requires: google-noto-sans-fonts | 34 | Requires: google-noto-sans-fonts |
36 | 35 | ||
37 | %description | 36 | %description |
diff --git a/framework/qml/AutocompleteLineEdit.qml b/framework/qml/AutocompleteLineEdit.qml index e7518867..c5f89450 100644 --- a/framework/qml/AutocompleteLineEdit.qml +++ b/framework/qml/AutocompleteLineEdit.qml | |||
@@ -20,7 +20,6 @@ import QtQuick 2.7 | |||
20 | import QtQuick.Controls 2.0 as Controls2 | 20 | import QtQuick.Controls 2.0 as Controls2 |
21 | import QtQuick.Layouts 1.1 | 21 | import QtQuick.Layouts 1.1 |
22 | 22 | ||
23 | import org.kde.kirigami 1.0 as Kirigami | ||
24 | import org.kube.framework 1.0 as Kube | 23 | import org.kube.framework 1.0 as Kube |
25 | 24 | ||
26 | Kube.TextField { | 25 | Kube.TextField { |
@@ -109,20 +108,26 @@ Kube.TextField { | |||
109 | width: parent.width | 108 | width: parent.width |
110 | interactive: true | 109 | interactive: true |
111 | model: root.model | 110 | model: root.model |
112 | delegate: Kirigami.AbstractListItem { | 111 | //TODO abstract listItem |
112 | delegate: Rectangle { | ||
113 | id: listDelegate | 113 | id: listDelegate |
114 | property string text: model.text | 114 | property string text: model.text |
115 | 115 | ||
116 | width: listView.width | 116 | width: listView.width |
117 | height: root.height | 117 | height: root.height |
118 | 118 | ||
119 | enabled: true | 119 | //enabled: true |
120 | supportsMouseEvents: true | 120 | //supportsMouseEvents: true |
121 | 121 | ||
122 | checked: listView.currentIndex == index | 122 | //checked: listView.currentIndex == index |
123 | onClicked: { | 123 | |
124 | listView.currentIndex = model.index | 124 | MouseArea { |
125 | accept() | 125 | anchors.fill: parent |
126 | |||
127 | onClicked: { | ||
128 | listView.currentIndex = model.index | ||
129 | accept() | ||
130 | } | ||
126 | } | 131 | } |
127 | 132 | ||
128 | //Content | 133 | //Content |
diff --git a/framework/qml/EditAccount.qml b/framework/qml/EditAccount.qml index 3f8abc8b..dfda020e 100644 --- a/framework/qml/EditAccount.qml +++ b/framework/qml/EditAccount.qml | |||
@@ -19,7 +19,6 @@ | |||
19 | 19 | ||
20 | import QtQuick 2.7 | 20 | import QtQuick 2.7 |
21 | import QtQuick.Layouts 1.1 | 21 | import QtQuick.Layouts 1.1 |
22 | import org.kde.kirigami 1.0 as Kirigami | ||
23 | import org.kube.framework 1.0 as Kube | 22 | import org.kube.framework 1.0 as Kube |
24 | 23 | ||
25 | 24 | ||
@@ -39,7 +38,8 @@ Item { | |||
39 | margins: Kube.Units.largeSpacing * 2 | 38 | margins: Kube.Units.largeSpacing * 2 |
40 | } | 39 | } |
41 | 40 | ||
42 | Kirigami.Heading { | 41 | //TODO Kube.Heading |
42 | Kube.Label { | ||
43 | id: heading | 43 | id: heading |
44 | text: loader.item.heading | 44 | text: loader.item.heading |
45 | color: Kube.Colors.highlightColor | 45 | color: Kube.Colors.highlightColor |
diff --git a/framework/qml/MailViewer.qml b/framework/qml/MailViewer.qml index 9df3554c..6ad8c760 100644 --- a/framework/qml/MailViewer.qml +++ b/framework/qml/MailViewer.qml | |||
@@ -25,8 +25,6 @@ import QtQuick.Layouts 1.1 | |||
25 | import org.kube.components.mailviewer 1.0 as MV | 25 | import org.kube.components.mailviewer 1.0 as MV |
26 | import org.kube.framework 1.0 as Kube | 26 | import org.kube.framework 1.0 as Kube |
27 | 27 | ||
28 | import org.kde.kirigami 1.0 as Kirigami | ||
29 | |||
30 | Rectangle { | 28 | Rectangle { |
31 | id: root | 29 | id: root |
32 | 30 | ||
@@ -107,7 +105,8 @@ Rectangle { | |||
107 | 105 | ||
108 | text: Qt.formatDateTime(root.date, "dd MMM yyyy hh:mm") | 106 | text: Qt.formatDateTime(root.date, "dd MMM yyyy hh:mm") |
109 | 107 | ||
110 | font.pointSize: Kirigami.Theme.defaultFont.pointSize * 0.7 | 108 | //FIXME font pointsize |
109 | font.pointSize: 6 | ||
111 | opacity: 0.75 | 110 | opacity: 0.75 |
112 | } | 111 | } |
113 | 112 | ||
diff --git a/framework/qml/People.qml b/framework/qml/People.qml index fc41ceaf..e60763d9 100644 --- a/framework/qml/People.qml +++ b/framework/qml/People.qml | |||
@@ -22,7 +22,6 @@ import QtQuick.Controls 2.0 | |||
22 | import QtQuick.Controls 1.4 as Controls | 22 | import QtQuick.Controls 1.4 as Controls |
23 | import QtQuick.Layouts 1.1 | 23 | import QtQuick.Layouts 1.1 |
24 | 24 | ||
25 | import org.kde.kirigami 1.0 as Kirigami | ||
26 | import org.kube.framework 1.0 as Kube | 25 | import org.kube.framework 1.0 as Kube |
27 | 26 | ||
28 | 27 | ||
@@ -252,7 +251,7 @@ Item { | |||
252 | } | 251 | } |
253 | 252 | ||
254 | //TODO replace with Kube.Heading once it is there | 253 | //TODO replace with Kube.Heading once it is there |
255 | Kirigami.Heading { | 254 | Kube.Label { |
256 | id: nameLabel | 255 | id: nameLabel |
257 | 256 | ||
258 | anchors { | 257 | anchors { |