diff options
-rw-r--r-- | views/calendar/qml/TimeChooser.qml | 30 |
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 | |||
19 | import QtQuick 2.7 | ||
20 | import QtQuick.Layouts 1.2 | ||
21 | import org.kube.framework 1.0 as Kube | ||
22 | import Qt.labs.calendar 1.0 | ||
23 | |||
24 | Kube.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 | } | ||