Missed one file
[pierogi] / main.cpp
1 #include "mainwindow.h"
2 #include "pirapplication.h"
3 #include <QtGui/QApplication>
4
5 int main(int argc, char *argv[])
6 {
7 //  QApplication app(argc, argv);
8   PIRApplication app(argc, argv);
9
10   MainWindow mainWindow;
11   mainWindow.setOrientation(MainWindow::ScreenOrientationLockLandscape);
12 //  mainWindow.setOrientation(MainWindow::ScreenOrientationAuto);
13
14   // Take control over the volume rocker switch:
15   app.setupRockerSwitch(&mainWindow);
16
17   mainWindow.showExpanded();
18
19   app.connect(
20     &app,
21     SIGNAL(decreaseRockerPressed()),
22     &mainWindow,
23     SLOT(selectPrevFavKeyset()));
24
25   app.connect(
26     &app,
27     SIGNAL(increaseRockerPressed()),
28     &mainWindow,
29     SLOT(selectNextFavKeyset()));
30
31   // A connection to perform any final cleanup work:
32   app.connect(
33     &app,
34     SIGNAL(aboutToQuit()),
35     &mainWindow,
36     SLOT(finalCleanup()),
37     Qt::DirectConnection);
38
39   return app.exec();
40 }