mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 21:14:33 -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
@ -317,7 +317,7 @@ QVariant ComicModel::data(const QModelIndex &index, int role) const
|
||||
Qt::ItemFlags ComicModel::flags(const QModelIndex &index) const
|
||||
{
|
||||
if (!index.isValid())
|
||||
return 0;
|
||||
return {};
|
||||
if (index.column() == ComicModel::Rating)
|
||||
return Qt::ItemIsEnabled | Qt::ItemIsSelectable | Qt::ItemIsEditable;
|
||||
return Qt::ItemIsEnabled | Qt::ItemIsSelectable | Qt::ItemIsDragEnabled;
|
||||
|
Reference in New Issue
Block a user