Fix bug with app crash on exit. Add keyboard support in wordList, DictTypeSelectDialo...
[mdictionary] / src / mdictionary / gui / WordListModel.h
index 38771d3..67ec197 100644 (file)
@@ -35,6 +35,8 @@ public:
     //! Clear model data and refresh UI
     void clear();
 
+    QString wordOnPosition(int index);
+
     void sort(int column, Qt::SortOrder order = Qt::AscendingOrder);
 
 signals:
@@ -53,6 +55,13 @@ public slots:
       */
     void setModelProperty(int index, const QVariant value, QString role);
 
+    //! Reverse value at role in index row of data.
+    /*!
+      \param index word position in data list
+      \param role role name
+      */
+    void setModelPropertyByIndex(int index, QString role);
+
 private:
     int setDataPriv(int index, const QVariant &value, int role);
     void addWord(QString word, QList<Translation*> translations, bool isBookmarked);