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 @@ +/* + * Copyright (C) 2017 Michael Bohlender, + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + +import QtQuick 2.7 +import QtQuick.Layouts 1.2 +import org.kube.framework 1.0 as Kube +import Qt.labs.calendar 1.0 + +Kube.ComboBox { + id: root + + Layout.preferredWidth: Kube.Units.gridUnit * 4 + + 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"] +}