aboutsummaryrefslogtreecommitdiff
path: root/lumina-fileinfo/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lumina-fileinfo/main.cpp')
-rw-r--r--lumina-fileinfo/main.cpp18
1 files changed, 14 insertions, 4 deletions
diff --git a/lumina-fileinfo/main.cpp b/lumina-fileinfo/main.cpp
index deefd46f..59e86623 100644
--- a/lumina-fileinfo/main.cpp
+++ b/lumina-fileinfo/main.cpp
@@ -1,10 +1,20 @@
+#include <QTranslator>
#include <QApplication>
+#include <QDebug>
+#include <QFile>
+
#include "dialog.h"
+#include <LuminaUtils.h>
+#include <LuminaThemes.h>
-int main(int argc, char *argv[])
+int main(int argc, char ** argv)
{
QApplication a(argc, argv);
+ LUtils::LoadTranslation(&a, "lumina-fileinfo");
+ LuminaThemeEngine theme(&a);
+
Dialog w;
+ QObject::connect(&theme, SIGNAL(updateIcons()), &w, SLOT(setupIcons()) );
if (argc==2) {
w.LoadDesktopFile(QString(argv[1]).simplified());
} else if (argc==3) {
@@ -13,8 +23,8 @@ int main(int argc, char *argv[])
} else {
w.MissingInputs();
}
- a.setApplicationName("Lumina File Info");
w.show();
- return a.exec();
-}
+ int retCode = a.exec();
+ return retCode;
+} \ No newline at end of file
bgstack15