mirror of
https://github.com/YACReader/yacreader
synced 2025-07-14 02:54:46 -04:00
Port away from deprecated QFlags(Zero) constructor
This change gets rid of a few GCC's -Wdeprecated-declarations warnings.
This commit is contained in:
committed by
Felix Kauselmann
parent
4dcbb958dc
commit
8af4c01a03
@ -144,7 +144,7 @@ QVariant FolderModel::data(const QModelIndex &index, int role) const
|
||||
Qt::ItemFlags FolderModel::flags(const QModelIndex &index) const
|
||||
{
|
||||
if (!index.isValid())
|
||||
return 0;
|
||||
return {};
|
||||
|
||||
return Qt::ItemIsEnabled | Qt::ItemIsSelectable | Qt::ItemIsDropEnabled | Qt::ItemIsDragEnabled;
|
||||
}
|
||||
|
Reference in New Issue
Block a user