Add copying and licence information
[evehomescreen] / src / main.cpp
1 // Copyright (C) 2010 Jaakko Kyro <jkyro@korjaussarja.net>
2 // This file is licenced under GPL, see COPYING
3 // for full licence information
4 #include <QtGui/QApplication>
5 #include "widget.h"
6 #include "qmaemo5homescreenadaptor.h"
7 #include "mainwindow.h"
8
9 int main(int argc, char *argv[])
10 {
11     QApplication::setGraphicsSystem("native");
12     QApplication a(argc, argv);
13     //MainWindow w;
14     Widget w;
15     QMaemo5HomescreenAdaptor *adaptor = new QMaemo5HomescreenAdaptor(&w);
16     adaptor->setSettingsAvailable(true);
17     QObject::connect(adaptor,SIGNAL(settingsRequested()),&w,SLOT(showSettingsDialog()));
18 #if defined(Q_WS_S60)
19     w.showMaximized();
20 #else
21     w.show();
22 #endif
23     return a.exec();
24 }