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
3777dffb
Commit
3777dffb
authored
Dec 13, 2021
by
Claudio Cambra
Browse files
Fix mangling of dates for datepicker when converting from C++ to QML
parent
f957cabb
Pipeline
#109270
passed with stage
in 6 minutes and 49 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/monthmodel.cpp
View file @
3777dffb
...
...
@@ -161,7 +161,8 @@ QVariant MonthModel::data(const QModelIndex &index, int role) const
}
const
QDate
date
(
year
,
month
,
day
);
if
(
role
==
Date
)
{
return
date
;
return
date
.
startOfDay
();
// Ensure the date doesn't get mangled into a different date by QML date conversion
}
if
(
role
==
IsSelected
)
{
...
...
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