Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Graphics
digiKam
Commits
8bc50e72
Commit
8bc50e72
authored
Jun 16, 2021
by
Anjani Kumar
Browse files
Add QT_VERSION check for new QFlag constructor
parent
190039b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/libs/models/abstractalbummodel.cpp
View file @
8bc50e72
...
...
@@ -929,6 +929,8 @@ class Q_DECL_HIDDEN AbstractCheckableAlbumModel::Private
{
public:
#if (QT_VERSION >= QT_VERSION_CHECK(5, 15, 0))
explicit
Private
()
:
extraFlags
(),
rootIsCheckable
(
true
),
...
...
@@ -938,6 +940,19 @@ public:
{
}
#else
explicit
Private
()
:
extraFlags
(
nullptr
),
rootIsCheckable
(
true
),
addExcludeTristate
(
false
),
staticVectorContainingCheckStateRole
(
1
,
Qt
::
CheckStateRole
)
{
}
#endif
Qt
::
ItemFlags
extraFlags
;
bool
rootIsCheckable
;
bool
addExcludeTristate
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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