Asynchronous updating for remote info in SettingsDlg
[irwi] / src / main.cpp
1 #include "qmaemo5homescreenadaptor.h"
2 #include "mainwidget.h"
3
4 #include <QtGui>
5
6 int main(int argc, char *argv[])
7 {
8     // enforce native graphics system for now due to a bug in transparency handling
9     // you can remove this line if you only target PR 1.2
10     QApplication::setGraphicsSystem("native");
11
12     QApplication app(argc, argv);
13     app.setOrganizationName("irwi");
14     app.setOrganizationDomain("mercury.wipsl.com");
15     app.setApplicationName("irwi");
16
17     MainWidget w;
18     QMaemo5HomescreenAdaptor *adaptor = new QMaemo5HomescreenAdaptor(&w);
19     adaptor->setSettingsAvailable(true);
20     QObject::connect(adaptor, SIGNAL(settingsRequested()),
21             &w, SLOT(showSettingsDialog()));
22     w.show();
23
24     return app.exec();
25 }
26