Log In
New Account
  
Home My Page Project Cloud Code Snippets Project Openings Pierogi
Summary Forums Tracker Lists Tasks Docs News SCM Files
1 #include "mainwindow.h"
2 #include "pirapplication.h"
3 #include <QtGui/QApplication>
5 int main(int argc, char *argv[])
6 {
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();
19   app.connect(
20     &app,
21     SIGNAL(decreaseRockerPressed()),
22     &mainWindow,
23     SLOT(selectPrevFavKeyset()));
25   app.connect(
26     &app,
27     SIGNAL(increaseRockerPressed()),
28     &mainWindow,
29     SLOT(selectNextFavKeyset()));
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);
39   return app.exec();
40 }

Terms of Use    Privacy Policy    Contribution Guidelines    Feedback

Powered By GForge Collaborative Development Environment