#ifndef Q_WS_MAEMO_5
qmlView = new QDeclarativeView(this);
- qmlView->setSource(QUrl::fromLocalFile("/usr/share/mdictionary/qml/DictManagerWidget.qml"));
+
ctxt = qmlView->rootContext();
refreshDictsList();
ctxt->setContextProperty("dictModel", &(*model));
+ qmlView->setSource(QUrl::fromLocalFile("/usr/share/mdictionary/qml/DictManagerWidget.qml"));
QGraphicsObject *rootObject = qmlView->rootObject();
- //connect(rootObject, SIGNAL(selectedRow(int)),
- // this, SLOT(pluginSelected(int)));
qmlView->setResizeMode(QDeclarativeView::SizeRootObjectToView);
verticalLayout->addWidget(qmlView);
- //connecty zwrotne
#endif
#ifdef Q_WS_MAEMO_5
connect(rootObject, SIGNAL(itemActivated(int)),
this, SLOT(saveChanges()));
connect(rootObject, SIGNAL(itemActivated(int)),
- settingsButton, SIGNAL(clicked()));
+ this, SLOT(settingsButtonClicked()));
// connect(dictList, SIGNAL(itemActivated(QListWidgetItem*)),
// this, SLOT(saveChanges()));
#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->setContextProperty("dictTypeModel", &model);
+ qmlView->setSource(QUrl::fromLocalFile("/usr/share/mdictionary/qml/DictTypeSelectDialog.qml"));
_selectedPlugin = 0;
var aspectRatio = sourceSize.height / sourceSize.width
return logo.width * aspectRatio
}
- anchors.left: checkbox.right
anchors.leftMargin: 5
anchors.verticalCenter: parent.verticalCenter
width: nameText.height + 4
Text {
id: nameText
text: name
- anchors.left: logo.right
anchors.leftMargin: 5
anchors.verticalCenter: parent.verticalCenter
}