add history widget
[mdictionary] / src / mdictionary / gui / DictTypeSelectDialog.cpp
index 8e26c14..bf61dd2 100644 (file)
@@ -39,12 +39,12 @@ DictTypeSelectDialog::DictTypeSelectDialog(QList<CommonDictInterface *> plugins,
 
 #ifndef Q_WS_MAEMO_5
     qmlView = new QDeclarativeView(this);
-    qmlView->setSource(QUrl::fromLocalFile("/usr/share/mdictionary/qml/DictTypeSelectDialog.qml"));
-    ctxt = qmlView->rootContext();
 
-//    model = new DictTypeModel(plugins, this);
+    ctxt = qmlView->rootContext();
     ctxt->setContextProperty("dictTypeModel", &model);
 
+    qmlView->setSource(QUrl::fromLocalFile("/usr/share/mdictionary/qml/DictTypeSelectDialog.qml"));
+
     _selectedPlugin = 0;
 
     QGraphicsObject *rootObject = qmlView->rootObject();