complete WordListWidget with model.
[mdictionary] / src / mdictionary / gui / WordListWidget.cpp
index b52f55f..135e4ae 100644 (file)
@@ -60,7 +60,6 @@ WordListWidget::WordListWidget(QWidget *parent):
 
     ctxt = qmlView->rootContext();
 
-//    refreshDictsList();
     ctxt->setContextProperty("wordModel", &(*listModel));
     ctxt->setContextProperty("CheckedPath", "qrc:/icons/16x16/staron.png");
     ctxt->setContextProperty("UncheckedPath", "qrc:/icons/16x16/staroff.png");
@@ -189,7 +188,6 @@ void WordListWidget::showSearchResults(
         listModel = new WordListModel(this);
     }
     listModel->setTranslations(result, wordsInBookmarks);
-    //todo: sort words
 
 #endif
 
@@ -321,7 +319,7 @@ void WordListWidget::unlockList() {
 #ifdef Q_WS_MAEMO_5
     setEnabled(true);
 #else
-    Q_EMIT setWordListState(false);
+    Q_EMIT setWordListState(true);
 #endif
 }