Skip to content

Commit 193f826

Browse files
committed
feat: add wrap support for datetime spinboxes
Add wrap:true property to all SpinboxEx components in DateTimeSettingDialog for better date/time selection experience. Log: add wrap support for datetime spinboxes pms: BUG-282845
1 parent b7db235 commit 193f826

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/plugin-datetime/qml/DateTimeSettingDialog.qml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ D.DialogWindow {
4747
locale: Qt.locale("C")
4848
from: 1990
4949
to: 2090
50+
wrap: true
5051
value: currentDate.getFullYear()
5152
onValueChanged: ddialog.updateDateMax()
5253
Component.onCompleted: {
@@ -60,6 +61,7 @@ D.DialogWindow {
6061
unitText: qsTr("Month")
6162
from: 1
6263
to: 12
64+
wrap: true
6365
value: currentDate.getMonth() + 1 // // January gives 0
6466
onValueChanged: ddialog.updateDateMax()
6567
}
@@ -68,6 +70,7 @@ D.DialogWindow {
6870
unitText: qsTr("Day")
6971
from: 1
7072
to: 31
73+
wrap: true
7174
value: currentDate.getDate()
7275
}
7376
}
@@ -82,12 +85,14 @@ D.DialogWindow {
8285
id: spHour
8386
from: 0
8487
to: 23
88+
wrap: true
8589
value: currentDate.getHours()
8690
}
8791
SpinboxEx {
8892
id: spMin
8993
from: 0
9094
to: 59
95+
wrap: true
9196
value: currentDate.getMinutes()
9297
}
9398
}

0 commit comments

Comments
 (0)