From ff4875e83b461510e7210b9c7ebf24b0729ceb68 Mon Sep 17 00:00:00 2001 From: Jozef Mlich Date: Sun, 14 Jan 2024 15:33:57 +0100 Subject: [PATCH] Use DatePicker { mode: Hours --- .../platform.uuitk/TimePickerDialogPL.qml | 44 ++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) mode change 120000 => 100644 ui/qml/components/platform.uuitk/TimePickerDialogPL.qml diff --git a/ui/qml/components/platform.uuitk/TimePickerDialogPL.qml b/ui/qml/components/platform.uuitk/TimePickerDialogPL.qml deleted file mode 120000 index 843d57d0..00000000 --- a/ui/qml/components/platform.uuitk/TimePickerDialogPL.qml +++ /dev/null @@ -1 +0,0 @@ -../platform.qtcontrols/TimePickerDialogPL.qml \ No newline at end of file diff --git a/ui/qml/components/platform.uuitk/TimePickerDialogPL.qml b/ui/qml/components/platform.uuitk/TimePickerDialogPL.qml new file mode 100644 index 00000000..1db26d6d --- /dev/null +++ b/ui/qml/components/platform.uuitk/TimePickerDialogPL.qml @@ -0,0 +1,43 @@ +/* -*- coding: utf-8-unix -*- + * + * Copyright (C) 2019 Rinigus, 2019 Purism SPC + * + * 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 3 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, see . + */ + +import QtQuick 2.9 +import QtQuick.Controls 2.2 +import Lomiri.Components 1.3 +import Lomiri.Components.Pickers 1.3 +import "." + +DialogPL { + id: dialog + + property alias time: datePicker.date + + Item { + height: childrenRect.height + width: parent.width + + DatePicker { + id: datePicker + anchors.horizontalCenter: parent.horizontalCenter + mode: "Hours|Minutes" + width: Math.min(parent.width - 2*styler.themeHorizontalPageMargin, implicitWidth) + } + + } + +}