aboutsummaryrefslogtreecommitdiff
path: root/cpp/main.cpp
diff options
context:
space:
mode:
authorIgor <pashev.igor@gmail.com>2010-11-18 20:09:43 +0300
committerIgor <pashev.igor@gmail.com>2010-11-18 20:09:43 +0300
commit157370c4afbeb49836e10bff0a3400e12fd34f94 (patch)
tree69cdb0e0926d4efc1b8742ca650056ce84084d98 /cpp/main.cpp
parent0ea94d3ba924eaf5b739ab4cf4d30b39631476a0 (diff)
downloadnewslack-157370c4afbeb49836e10bff0a3400e12fd34f94.tar.gz
C++
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();
+}