mainLayout = new QVBoxLayout(this);
setLayout(mainLayout);
- imageLabel = new QLabel(this);
- mainLabel = new QLabel(infoNote, this);
+ qmlView = new QDeclarativeView;
+ qmlView->setSource(QUrl::fromLocalFile("/usr/share/mdictionary/qml/WelcomeScreenWidget.qml"));
- mainLayout->addStretch(0);
- mainLayout->addWidget(imageLabel, 0, Qt::AlignCenter);
- mainLayout->addWidget(mainLabel, 0, Qt::AlignCenter);
- mainLayout->addStretch(0);
+ mainLayout->addWidget(qmlView, 0, Qt::AlignCenter);
- QImage img(":/icons/logo/mdictionary.png");
- imageLabel->setPixmap(QPixmap::fromImage(img));
- imageLabel->resize(imageLabel->pixmap()->size());
+ //stary kod:
+ //imageLabel = new QLabel(this);
+ //mainLabel = new QLabel(infoNote, this);
+
+ //mainLayout->addStretch(0);
+ //mainLayout->addWidget(imageLabel, 0, Qt::AlignCenter);
+ //mainLayout->addWidget(mainLabel, 0, Qt::AlignCenter);
+ //mainLayout->addStretch(0);
+
+ //QImage img(":/icons/logo/mdictionary.png");
+ //imageLabel->setPixmap(QPixmap::fromImage(img));
+ //imageLabel->resize(imageLabel->pixmap()->size());
//mainLabel->setWordWrap(true);
+ //koniec kodu
#ifdef Q_WS_MAEMO_5
- mainLayout->addSpacing(20);
+ //mainLayout->addSpacing(20);
#endif
}