]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - matrix-gui-v2/image-gallery.git/blob - main.cpp
Makefile.build: Call qmake instead of qmake2
[matrix-gui-v2/image-gallery.git] / main.cpp
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 extern QString dirLocation;
14 int main(int argc, char *argv[])
15 {
16     QApplication a(argc, argv);
18     if (a.arguments().count() != 2)
19     {
20       std::cerr << "You need to pass the absolute path to the directory containing the images\n" << endl;
21       return 1;
22     }
24     dirLocation = a.arguments()[1];
25     MainWindow w;
27     w.setContextMenuPolicy(Qt::NoContextMenu);
28     w.setWindowFlags(Qt::FramelessWindowHint);
29     w.showMaximized();
30     w.show();
31     return a.exec();
32 }