Fixed installation and nasty exit bug
[pierogi] / main.cpp
1 #include "mainwindow.h"
2 #include <QtGui/QApplication>
3
4 int main(int argc, char *argv[])
5 {
6   QApplication app(argc, argv);
7
8   MainWindow mainWindow;
9   mainWindow.setOrientation(MainWindow::ScreenOrientationLockLandscape);
10   mainWindow.showExpanded();
11
12   // A connection to perform any final cleanup work:
13   app.connect(
14     &app,
15     SIGNAL(aboutToQuit()),
16     &mainWindow,
17     SLOT(finalCleanup()),
18     Qt::DirectConnection);
19
20   return app.exec();
21 }