1 #include <qglobal.h>
3 #if QT_VERSION < 0x050000
4 #include <QtGui/QApplication>
5 #else
6 #include <QApplication>
7 #endif
9 #include "mainwindow.h"
10 #include <iostream>
12 using std::endl;
14 extern QString dirLocation;
16 int main(int argc, char *argv[])
17 {
18 QApplication a(argc, argv);
20 if (a.arguments().count() != 2)
21 {
22 std::cerr << "You need to pass the absolute path to the directory containing the images\n" << endl;
23 return 1;
24 }
26 dirLocation = a.arguments()[1];
27 MainWindow w;
29 w.setContextMenuPolicy(Qt::NoContextMenu);
30 w.setWindowFlags(Qt::FramelessWindowHint);
31 w.showMaximized();
32 w.show();
33 return a.exec();
34 }