summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Bohlender <michael.bohlender@kdemail.net>2017-06-27 14:49:33 +0200
committerMichael Bohlender <michael.bohlender@kdemail.net>2017-06-27 14:49:33 +0200
commit30bb56cddfce3ce7aefa9cf00a3d6a81fb7b5acc (patch)
tree71e165d46d0cc74f6a6a2cc927f6d1aaef486e7d
parent322d0276cb88c1d9fc5f1de82b25e8a11a5724ae (diff)
downloadkube-30bb56cddfce3ce7aefa9cf00a3d6a81fb7b5acc.tar.gz
kube-30bb56cddfce3ce7aefa9cf00a3d6a81fb7b5acc.zip
remove kirigami dependency
-rw-r--r--components/accounts/contents/ui/AccountWizard.qml4
-rw-r--r--components/accounts/contents/ui/AccountWizardPage.qml4
-rw-r--r--dist/kube.spec1
-rw-r--r--framework/qml/AutocompleteLineEdit.qml21
-rw-r--r--framework/qml/EditAccount.qml4
-rw-r--r--framework/qml/MailViewer.qml5
-rw-r--r--framework/qml/People.qml3
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 @@
19import QtQuick 2.7 19import QtQuick 2.7
20import QtQuick.Layouts 1.1 20import QtQuick.Layouts 1.1
21import QtQuick.Controls 2.0 as Controls2 21import QtQuick.Controls 2.0 as Controls2
22import org.kde.kirigami 1.0 as Kirigami
23import org.kube.framework 1.0 as Kube 22import org.kube.framework 1.0 as Kube
24 23
25Kube.Popup { 24Kube.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
21import QtQuick.Layouts 1.1 21import QtQuick.Layouts 1.1
22import QtQuick.Controls 1.4 as Controls 22import QtQuick.Controls 1.4 as Controls
23import QtQuick.Controls 2.0 as Controls2 23import QtQuick.Controls 2.0 as Controls2
24import org.kde.kirigami 1.0 as Kirigami
25import org.kube.framework 1.0 as Kube 24import 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
31Requires: qt5-qtquickcontrols 31Requires: qt5-qtquickcontrols
32Requires: qt5-qtquickcontrols2-devel 32Requires: qt5-qtquickcontrols2-devel
33Requires: sink >= 0.3 33Requires: sink >= 0.3
34Requires: kirigami
35Requires: google-noto-sans-fonts 34Requires: 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
20import QtQuick.Controls 2.0 as Controls2 20import QtQuick.Controls 2.0 as Controls2
21import QtQuick.Layouts 1.1 21import QtQuick.Layouts 1.1
22 22
23import org.kde.kirigami 1.0 as Kirigami
24import org.kube.framework 1.0 as Kube 23import org.kube.framework 1.0 as Kube
25 24
26Kube.TextField { 25Kube.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
20import QtQuick 2.7 20import QtQuick 2.7
21import QtQuick.Layouts 1.1 21import QtQuick.Layouts 1.1
22import org.kde.kirigami 1.0 as Kirigami
23import org.kube.framework 1.0 as Kube 22import 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
25import org.kube.components.mailviewer 1.0 as MV 25import org.kube.components.mailviewer 1.0 as MV
26import org.kube.framework 1.0 as Kube 26import org.kube.framework 1.0 as Kube
27 27
28import org.kde.kirigami 1.0 as Kirigami
29
30Rectangle { 28Rectangle {
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
22import QtQuick.Controls 1.4 as Controls 22import QtQuick.Controls 1.4 as Controls
23import QtQuick.Layouts 1.1 23import QtQuick.Layouts 1.1
24 24
25import org.kde.kirigami 1.0 as Kirigami
26import org.kube.framework 1.0 as Kube 25import 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 {