Commit 8bc50e72 authored by Anjani Kumar's avatar Anjani Kumar
Browse files

Add QT_VERSION check for new QFlag constructor

parent 190039b8
......@@ -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;
......
Markdown is supported
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