*******************************************************************************/
-//! \file WelcomeScreenWidget.cpp
-//! \author Mateusz Półrola <mateusz.polrola@comarch.pl>
+/*! \file WelcomeScreenWidget.cpp
+ \brief Implements widget that displays welcome screen to user
+
+ \author Mateusz Półrola <mateusz.polrola@comarch.pl>
+*/
#include "WelcomeScreenWidget.h"
mainLayout = new QVBoxLayout(this);
setLayout(mainLayout);
+ #ifndef Q_WS_MAEMO_5
+ qmlView = new QDeclarativeView(this);
+ qmlView->setSource(QUrl::fromLocalFile("/usr/share/mdictionary/qml/WelcomeScreenWidget.qml"));
+
+ mainLayout->addWidget(qmlView, 0, Qt::AlignCenter);
+
+ #endif
+ #ifdef Q_WS_MAEMO_5
+
imageLabel = new QLabel(this);
mainLabel = new QLabel(infoNote, this);
imageLabel->resize(imageLabel->pixmap()->size());
- //mainLabel->setWordWrap(true);
+ mainLabel->setWordWrap(true);
+ #endif
#ifdef Q_WS_MAEMO_5
- mainLayout->addSpacing(20);
+ //mainLayout->addSpacing(20);
#endif
}