Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
Kalendar
Commits
f1123841
Commit
f1123841
authored
Oct 28, 2021
by
Claudio Cambra
Browse files
Fixed date misalignment in date picker
parent
83302300
Pipeline
#91991
passed with stage
in 5 minutes and 6 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/monthmodel.cpp
View file @
f1123841
...
...
@@ -155,7 +155,8 @@ QVariant MonthModel::data(const QModelIndex &index, int role) const
// Previous month
year
=
d
->
month
>
0
?
d
->
year
:
d
->
year
-
1
;
month
=
d
->
month
>
0
?
d
->
month
-
1
:
d
->
calendar
.
monthsInYear
(
year
)
-
1
;
day
=
daysInMonth
-
prefix
+
row
+
1
;
int
daysInPreviousMonth
=
d
->
calendar
.
daysInMonth
(
month
,
year
);
day
=
daysInPreviousMonth
-
prefix
+
row
+
1
;
}
if
(
role
==
DayNumber
||
role
==
Qt
::
DisplayRole
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment