Skip to content

fix: add wrap support for datetime spinboxes #2283

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 21, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/plugin-datetime/qml/DateTimeSettingDialog.qml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ D.DialogWindow {
locale: Qt.locale("C")
from: 1990
to: 2090
wrap: true
value: currentDate.getFullYear()
onValueChanged: ddialog.updateDateMax()
Component.onCompleted: {
Expand All @@ -60,6 +61,7 @@ D.DialogWindow {
unitText: qsTr("Month")
from: 1
to: 12
wrap: true
value: currentDate.getMonth() + 1 // // January gives 0
onValueChanged: ddialog.updateDateMax()
}
Expand All @@ -68,6 +70,7 @@ D.DialogWindow {
unitText: qsTr("Day")
from: 1
to: 31
wrap: true
value: currentDate.getDate()
}
}
Expand All @@ -82,12 +85,14 @@ D.DialogWindow {
id: spHour
from: 0
to: 23
wrap: true
value: currentDate.getHours()
}
SpinboxEx {
id: spMin
from: 0
to: 59
wrap: true
value: currentDate.getMinutes()
}
}
Expand Down