From 39b1bcfe6bf70e56bbbc0a56c62f58c22da0a24f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Tinkl?= Date: Mon, 8 Aug 2022 23:20:41 +0200 Subject: [PATCH] hotfix(StatusDatePicker): fix some UI issues - make selectedDate read/write for preselecting the date - minor toolbar spacing/sizing fixes --- src/StatusQ/Components/StatusDatePicker.qml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/StatusQ/Components/StatusDatePicker.qml b/src/StatusQ/Components/StatusDatePicker.qml index 3a2016b9..b5552eac 100644 --- a/src/StatusQ/Components/StatusDatePicker.qml +++ b/src/StatusQ/Components/StatusDatePicker.qml @@ -38,7 +38,7 @@ StatusComboBox { This property holds the currently selected date. \sa QtQml.Date */ - readonly property alias selectedDate: d.selectedDate + property alias selectedDate: d.selectedDate QtObject { id: d @@ -64,7 +64,10 @@ StatusComboBox { RowLayout { Layout.fillWidth: true Layout.columnSpan: 2 + spacing: 0 StatusFlatButton { + leftPadding: 8 + rightPadding: 8 text: "<<" onClicked: grid.year = grid.year - 1 StatusToolTip { @@ -73,6 +76,8 @@ StatusComboBox { } } StatusFlatButton { + leftPadding: 8 + rightPadding: 8 text: "<" onClicked: { // switch to previous month (and optionally prev year in January) @@ -102,6 +107,8 @@ StatusComboBox { } } StatusFlatButton { + leftPadding: 8 + rightPadding: 8 text: ">" onClicked: { // switch to next month (and optionally next year in December) @@ -116,6 +123,8 @@ StatusComboBox { } } StatusFlatButton { + leftPadding: 8 + rightPadding: 8 text: ">>" onClicked: grid.year = grid.year + 1 StatusToolTip {