Fix random error when remove word from bookmark. Fix show all bookmark feature.
[mdictionary] / src / mdictionary / gui / WordListModel.h
index abb128d..11e8439 100644 (file)
@@ -20,6 +20,7 @@ public:
     explicit WordListModel(QObject *parent = 0);
 
     int rowCount(const QModelIndex & parent = QModelIndex()) const;
+    void setBookmarkModeActive(bool mode);
 
     QVariant data(const QModelIndex & index, int role = Qt::DisplayRole) const;
     bool setData(const QModelIndex &index, const QVariant &value, int role);
@@ -60,6 +61,8 @@ private:
     QHash<QString, bool > _wordInBookmarks;
     QList<QString> _wordList;
 
+    bool isBookmarkModeActive;
+
 };
 
 #endif // WORDLISTMODEL_H