diff --git a/views/calendar/qml/DayChooser.qml b/views/calendar/qml/DayChooser.qml deleted file mode 100644 index e43bdb10..00000000 --- a/views/calendar/qml/DayChooser.qml +++ /dev/null @@ -1,62 +0,0 @@ -/* - * 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 - -Item { - id: root - - height: button.height - width: button.width - - Kube.Button { - id: button - - text: selector.selectedDate.toLocaleDateString() //"Choose Date" - - onClicked: { - popup.open() - } - - Kube.Popup { - id: popup - - property var year: 2018 - property var month: Calendar.April - - x: button.x - y: button.y + button.height - width: selector.implicitWidth + Kube.Units.largeSpacing * 2 - height: selector.implicitHeight + Kube.Units.largeSpacing * 2 - modal: true - focus: true - - DateSelector { - id: selector - anchors.fill: parent - selectedDate: new Date() - backgroundColor: Kube.Colors.backgroundColor - textColor: Kube.Colors.textColor - invertIcons: false - } - } - } -} diff --git a/views/calendar/qml/TimeChooser.qml b/views/calendar/qml/TimeChooser.qml deleted file mode 100644 index 544935be..00000000 --- a/views/calendar/qml/TimeChooser.qml +++ /dev/null @@ -1,30 +0,0 @@ -/* - * 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", "13:00", "13:30", "14:00", "14:30", "15:00", "15:30", "16:00", "16:30", "17:00", "17:30", "18:00", "18:30", "19:00", "19:30", "20:00", "20:30", "21:00", "21:30", "22:00", "22:30", "23:00", "23:30"] -}