aboutsummaryrefslogtreecommitdiff
path: root/cpp/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/main.cpp')
-rw-r--r--cpp/main.cpp23
1 files changed, 11 insertions, 12 deletions
diff --git a/cpp/main.cpp b/cpp/main.cpp
index db7ef9d..1ffb56b 100644
--- a/cpp/main.cpp
+++ b/cpp/main.cpp
@@ -1,18 +1,17 @@
-#include <QtGui/QApplication>
#include "mainwindow.h"
+#include <QtWidgets/QApplication>
-int main(int argc, char *argv[])
-{
- QApplication a(argc, argv);
- MainWindow w;
+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");
+ if (argc > 1)
+ for (int i = 1; i < argc; i++)
+ w.findFiles(argv[i]);
+ else
+ w.findFiles("/etc");
- w.show();
+ w.show();
- return a.exec();
+ return a.exec();
}