Commit e61b291d authored by Volker Krause's avatar Volker Krause
Browse files

Integrate kirigami-addons upstream fixes

parent b069d40f
Pipeline #209133 passed with stage
in 2 minutes and 51 seconds
......@@ -24,7 +24,7 @@ Loader {
//maybe we need something more like QQC2 combox to handle user changed signals separately from the others
source: Kirigami.Settings.tabletMode ? "MobileDateInput.qml" : "DesktopDateInput.qml"
source: Kirigami.Settings.tabletMode ? Qt.resolvedUrl("MobileDateInput.qml") : Qt.resolvedUrl("DesktopDateInput.qml")
onSelectedDateChanged: {
if (item && root.selectedDate) {
......
......@@ -53,8 +53,9 @@ RowLayout {
id: daySelectComponent
SpinBox {
function daysInMonth (month, year) {
return new Date(year, month, 0).getDate();
function daysInMonth (year, month) {
// we want the days in @p month but go back one day from its start, therefore +1
return new Date(year, month + 1, 0).getDate();
}
from: 1
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment