]> Some of my projects - localmylist.git/commitdiff
Use proper enum type instead of 0.
authorAPTX <marek321@gmail.com>
Wed, 24 Apr 2013 16:17:25 +0000 (18:17 +0200)
committerAPTX <marek321@gmail.com>
Wed, 24 Apr 2013 16:17:25 +0000 (18:17 +0200)
localmylist/mylistnode.cpp

index 27993da268614f64b61d790ad5d1bfbc6613e62d..5d2b996b162339bc277e6ec7ccfeb9498fec4c45 100644 (file)
@@ -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