aboutsummaryrefslogtreecommitdiff
path: root/cpp/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/main.cpp')
-rw-r--r--cpp/main.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/cpp/main.cpp b/cpp/main.cpp
new file mode 100644
index 0000000..db7ef9d
--- /dev/null
+++ b/cpp/main.cpp
@@ -0,0 +1,18 @@
+#include <QtGui/QApplication>
+#include "mainwindow.h"
+
+int main(int argc, char *argv[])
+{
+ QApplication a(argc, argv);
+ MainWindow w;
+
+ if (argc > 1)
+ for (int i = 1; i < argc; i++)
+ w.findFiles(argv[i]);
+ else
+ w.findFiles("/home/pashev/tmp");
+
+ w.show();
+
+ return a.exec();
+}