From: APTX Date: Wed, 24 Apr 2013 16:17:25 +0000 (+0200) Subject: Use proper enum type instead of 0. X-Git-Url: https://gitweb.tyo.aptx.org/?a=commitdiff_plain;h=86a406032a4a04db716cc8b42947d2e1845750bc;p=localmylist.git Use proper enum type instead of 0. --- diff --git a/localmylist/mylistnode.cpp b/localmylist/mylistnode.cpp index 27993da..5d2b996 100644 --- a/localmylist/mylistnode.cpp +++ b/localmylist/mylistnode.cpp @@ -355,7 +355,7 @@ MyListAnimeNode::~MyListAnimeNode() Qt::ItemFlags MyListAnimeNode::flags(const QModelIndex &index) const { - return MyListNode::flags(index) | (index.column() == 3 ? Qt::ItemIsEditable : 0); + return MyListNode::flags(index) | (index.column() == 3 ? Qt::ItemIsEditable : Qt::NoItemFlags); } QVariant MyListAnimeNode::data(int column, int role) const @@ -596,7 +596,7 @@ MyListEpisodeNode::~MyListEpisodeNode() Qt::ItemFlags MyListEpisodeNode::flags(const QModelIndex &index) const { - return MyListNode::flags(index) | (index.column() == 3 ? Qt::ItemIsEditable : 0); + return MyListNode::flags(index) | (index.column() == 3 ? Qt::ItemIsEditable : Qt::NoItemFlags); } QVariant MyListEpisodeNode::data(int column, int role) const