X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fmdictionary%2Fgui%2FWordListModel.h;h=2db6e3b5fbc8989d8714f58a1bff19d8526ce74b;hb=81211b66843c093170d0ea7b00aae3e3ecb3db9c;hp=a01d9ee389fa15c3d67a11354a57934a207c1072;hpb=179ec6d69ba84409283a71d44894a56f657abb39;p=mdictionary diff --git a/src/mdictionary/gui/WordListModel.h b/src/mdictionary/gui/WordListModel.h index a01d9ee..2db6e3b 100644 --- a/src/mdictionary/gui/WordListModel.h +++ b/src/mdictionary/gui/WordListModel.h @@ -17,7 +17,7 @@ public: NumberRole }; - explicit WordListModel(/*QHash > translations, QHash wordsInBookmarks, */QObject *parent = 0); + explicit WordListModel(QObject *parent = 0); int rowCount(const QModelIndex & parent = QModelIndex()) const; @@ -34,13 +34,9 @@ public: //! Clear model data and refresh UI void clear(); -signals: + void sort(int column, Qt::SortOrder order = Qt::AscendingOrder); -// //! Set index of current selected word -// /*! -// \param index word position in data list -// */ -// void itemSelected(int index); +signals: void addToBookmarks(QString word); @@ -64,6 +60,9 @@ private: QHash _wordInBookmarks; QList _wordList; + void ascendingQuickSort(int left, int right); + void descendingQuickSort(int left, int right); + }; #endif // WORDLISTMODEL_H