draft of spinbox
[mdictionary] / src / mdictionary / gui / AboutWidget.cpp
index b422a39..aeea848 100644 (file)
@@ -33,14 +33,16 @@ AboutWidget::AboutWidget(GUIInterface *parent): QDialog(parent)
 
 #ifndef Q_WS_MAEMO_5
     resize(380,450);
-    mainLayout = new QVBoxLayout;
+
     view= new QDeclarativeView();
-    mainLayout->addWidget(view);
-    view->setSource(QUrl("src/mdictionary/qml/AboutWidget.qml"));
+    view->setSource(QUrl::fromLocalFile("/usr/share/mdictionary/qml/AboutWidget.qml"));
     view->setResizeMode(QDeclarativeView::SizeRootObjectToView);
     view->setAlignment(Qt::AlignCenter);
     view->show();
 
+    mainLayout = new QVBoxLayout;
+    mainLayout->addWidget(view);
+
     QGraphicsObject *rootObject = view->rootObject();
     connect(rootObject, SIGNAL(linkClicked(QString)), this, SLOT(openUrl(QString)));
     this->setLayout(mainLayout);