summaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
authorMichael Bohlender <michael.bohlender@kdemail.net>2018-04-16 12:21:33 +0200
committerMichael Bohlender <michael.bohlender@kdemail.net>2018-04-19 11:36:49 +0200
commitdb1d62b2a2dfcf6f46e9bfa2c65fc9225d37c7d6 (patch)
tree64611eb37a67a66a89cbf10b9af424aa009c784e /views
parent72c155793cab3cd6f1162966b2fd228dfc9e9d7c (diff)
downloadkube-db1d62b2a2dfcf6f46e9bfa2c65fc9225d37c7d6.tar.gz
kube-db1d62b2a2dfcf6f46e9bfa2c65fc9225d37c7d6.zip
add initial timechooser
Diffstat (limited to 'views')
-rw-r--r--views/calendar/qml/TimeChooser.qml30
1 files changed, 30 insertions, 0 deletions
diff --git a/views/calendar/qml/TimeChooser.qml b/views/calendar/qml/TimeChooser.qml
new file mode 100644
index 00000000..ca239a2e
--- /dev/null
+++ b/views/calendar/qml/TimeChooser.qml
@@ -0,0 +1,30 @@
1/*
2 * Copyright (C) 2017 Michael Bohlender, <bohlender@kolabsys.com>
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 2 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 along
15 * with this program; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 */
18
19import QtQuick 2.7
20import QtQuick.Layouts 1.2
21import org.kube.framework 1.0 as Kube
22import Qt.labs.calendar 1.0
23
24Kube.ComboBox {
25 id: root
26
27 Layout.preferredWidth: Kube.Units.gridUnit * 4
28
29 model: ["00:00", "00:30", "01:00", "01:30", "02:00", "02:30", "03:00", "03:30", "04:00", "04:30", "05:00", "05:30", "06:00", "06:30", "07:00", "07:30", "08:00", "08:30", "09:00", "09:30", "10:00", "10:30","11:00", "11:30", "12:00", "12:30"]
30}