1 #include <QtGui/QApplication>
3 #include "qmlapplicationviewer.h"
4 #include "qmaemo5homescreenadaptor.h"
6 #include "settingsdlg.h"
8 int main(int argc, char *argv[])
10 QApplication app(argc, argv);
12 QmlApplicationViewer viewer;
14 viewer.setStyleSheet("background:transparent");
15 viewer.setAttribute(Qt::WA_TranslucentBackground);
17 viewer.setMainQmlFile(QLatin1String("/opt/lichvietwidget/qml/lichvietwidget/main.qml"));
20 viewer.setFixedWidth(390);
21 viewer.setFixedHeight(340);
24 QMaemo5HomescreenAdaptor *adaptor = new QMaemo5HomescreenAdaptor(&viewer);
25 adaptor->setSettingsAvailable(true);
27 SettingsDlg settingsdlg;
29 QObject::connect(adaptor, SIGNAL(settingsRequested()), &settingsdlg, SLOT(showSettingsDialog()));