1 #include "mainwindow.h"
2 #include "pirapplication.h"
3 #include <QtGui/QApplication>
5 int main(int argc, char *argv[])
7 // QApplication app(argc, argv);
8 PIRApplication app(argc, argv);
10 MainWindow mainWindow;
11 mainWindow.setOrientation(MainWindow::ScreenOrientationLockLandscape);
12 // mainWindow.setOrientation(MainWindow::ScreenOrientationAuto);
14 // Take control over the volume rocker switch:
15 app.setupRockerSwitch(&mainWindow);
17 mainWindow.showExpanded();
18 app.setupRockerSwitch(mainWindow.getSecondaryWindow());
22 SIGNAL(decreaseRockerPressed()),
24 SLOT(selectPrevFavKeyset()));
28 SIGNAL(increaseRockerPressed()),
30 SLOT(selectNextFavKeyset()));
32 // A connection to perform any final cleanup work:
35 SIGNAL(aboutToQuit()),
38 Qt::DirectConnection);