X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fmdictionary%2Fgui%2FWelcomeScreenWidget.cpp;h=f2ec62cca3e334a0709871bab999fbc62cb50797;hb=5fc81a4ae588b2616381820b99a09b5f0669bc01;hp=43efb0958b1af2d5137ec81163bca28d68f82854;hpb=87ff3664f4be5564a986ae484d2cea99a08bc2b5;p=mdictionary diff --git a/src/mdictionary/gui/WelcomeScreenWidget.cpp b/src/mdictionary/gui/WelcomeScreenWidget.cpp index 43efb09..f2ec62c 100644 --- a/src/mdictionary/gui/WelcomeScreenWidget.cpp +++ b/src/mdictionary/gui/WelcomeScreenWidget.cpp @@ -37,22 +37,29 @@ WelcomeScreenWidget::WelcomeScreenWidget(QWidget *parent) : 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 }