3 // For the Pierogi IR remote control app.
5 // Copyright (C) 2012 by John Pietrzak (john@pietrzak.org)
7 // Licensed under the GNU GPL version 2.0 or later.
9 #include "mainwindow.h"
10 #include "pirapplication.h"
11 #include <QtGui/QApplication>
13 int main(int argc, char *argv[])
15 // QApplication app(argc, argv);
16 PIRApplication app(argc, argv);
18 MainWindow mainWindow;
19 mainWindow.setOrientation(MainWindow::ScreenOrientationLockLandscape);
20 // mainWindow.setOrientation(MainWindow::ScreenOrientationAuto);
22 // Take control over the volume rocker switch:
23 app.setupRockerSwitch(&mainWindow);
25 mainWindow.showExpanded();
29 SIGNAL(decreaseRockerPressed()),
31 SLOT(selectPrevFavKeyset()));
35 SIGNAL(increaseRockerPressed()),
37 SLOT(selectNextFavKeyset()));
39 // A connection to perform any final cleanup work:
42 SIGNAL(aboutToQuit()),
45 Qt::DirectConnection);