diff options
author | Michael Bohlender <michael.bohlender@kdemail.net> | 2016-05-06 13:06:40 +0200 |
---|---|---|
committer | Michael Bohlender <michael.bohlender@kdemail.net> | 2016-05-06 13:06:40 +0200 |
commit | 963f872433ffda7421e7b5863280413465f58ae9 (patch) | |
tree | 6bd1c1a4937979e48d7eef8a7f71616c0c4162cb | |
parent | e4fba677a9755a5aee1a0ea1513b6f737429d832 (diff) | |
download | kube-963f872433ffda7421e7b5863280413465f58ae9.tar.gz kube-963f872433ffda7421e7b5863280413465f58ae9.zip |
add account switcher dummy
-rw-r--r-- | components/mail/contents/ui/main.qml | 10 | ||||
-rw-r--r-- | components/package/contents/ui/AccountSwitcher.qml | 27 | ||||
-rw-r--r-- | components/qmldir | 1 |
3 files changed, 33 insertions, 5 deletions
diff --git a/components/mail/contents/ui/main.qml b/components/mail/contents/ui/main.qml index 589faf30..4251c73f 100644 --- a/components/mail/contents/ui/main.qml +++ b/components/mail/contents/ui/main.qml | |||
@@ -92,13 +92,9 @@ ApplicationWindow { | |||
92 | width: folderListView.width | 92 | width: folderListView.width |
93 | clip: true | 93 | clip: true |
94 | 94 | ||
95 | ToolButton { | 95 | KubeComponents.AccountSwitcher { |
96 | Layout.fillHeight: true | 96 | Layout.fillHeight: true |
97 | text: "Account/Project/Activity Switch" | ||
98 | 97 | ||
99 | onClicked: { | ||
100 | //TODO | ||
101 | } | ||
102 | } | 98 | } |
103 | 99 | ||
104 | ToolButton { | 100 | ToolButton { |
@@ -111,6 +107,10 @@ ApplicationWindow { | |||
111 | syncAction.execute() | 107 | syncAction.execute() |
112 | } | 108 | } |
113 | } | 109 | } |
110 | |||
111 | Item { | ||
112 | Layout.fillWidth: true | ||
113 | } | ||
114 | } | 114 | } |
115 | 115 | ||
116 | RowLayout { | 116 | RowLayout { |
diff --git a/components/package/contents/ui/AccountSwitcher.qml b/components/package/contents/ui/AccountSwitcher.qml new file mode 100644 index 00000000..0e620854 --- /dev/null +++ b/components/package/contents/ui/AccountSwitcher.qml | |||
@@ -0,0 +1,27 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2016 Michael Bohlender <michael.bohlender@kdemail.net> | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or modify | ||
5 | * it under the terms of the GNU General Public License as published by | ||
6 | * the Free Software Foundation; either version 3 of the License, or | ||
7 | * (at your option) any later version. | ||
8 | * | ||
9 | * This program is distributed in the hope that it will be useful, | ||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | * GNU General Public License for more details. | ||
13 | * | ||
14 | * You should have received a copy of the GNU General Public License | ||
15 | * along with this program; if not, see <http://www.gnu.org/licenses/>. | ||
16 | */ | ||
17 | |||
18 | import QtQuick 2.4 | ||
19 | import QtQuick.Controls 1.3 | ||
20 | import QtQuick.Layouts 1.1 | ||
21 | |||
22 | import org.kube.framework.domain 1.0 as KubeFramework | ||
23 | |||
24 | ComboBox { | ||
25 | model: KubeFramework.AccountsModel { } | ||
26 | textRole: "name" | ||
27 | } \ No newline at end of file | ||
diff --git a/components/qmldir b/components/qmldir index e9a70bc5..c043302a 100644 --- a/components/qmldir +++ b/components/qmldir | |||
@@ -5,3 +5,4 @@ SingleMailView 1.0 SingleMailView.qml | |||
5 | FolderListView 1.0 FolderListView.qml | 5 | FolderListView 1.0 FolderListView.qml |
6 | MailListView 1.0 MailListView.qml | 6 | MailListView 1.0 MailListView.qml |
7 | Settings 1.0 Settings.qml | 7 | Settings 1.0 Settings.qml |
8 | AccountSwitcher 1.0 AccountSwitcher.qml \ No newline at end of file | ||