aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-textedit/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src-qt5/desktop-utils/lumina-textedit/main.cpp')
-rw-r--r--src-qt5/desktop-utils/lumina-textedit/main.cpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/src-qt5/desktop-utils/lumina-textedit/main.cpp b/src-qt5/desktop-utils/lumina-textedit/main.cpp
new file mode 100644
index 00000000..17fbc6e1
--- /dev/null
+++ b/src-qt5/desktop-utils/lumina-textedit/main.cpp
@@ -0,0 +1,31 @@
+//===========================================
+// Lumina-DE source code
+// Copyright (c) 2015, Ken Moore
+// Available under the 3-clause BSD license
+// See the LICENSE file for full details
+//===========================================
+#include <QApplication>
+#include <QDebug>
+
+#include <LuminaThemes.h>
+#include <LuminaUtils.h>
+
+#include "MainUI.h"
+
+int main(int argc, char *argv[]) {
+ LTHEME::LoadCustomEnvSettings();
+ QApplication a(argc, argv);
+ LUtils::LoadTranslation(&a, "lumina-textedit");
+ //Now go ahead and setup the app
+ LuminaThemeEngine theme(&a);
+ QStringList args;
+ for(int i=1; i<argc; i++){
+ args << QString(argv[i]);
+ }
+ //Now start the window
+ MainUI W;
+ QObject::connect(&theme, SIGNAL(updateIcons()), &W, SLOT(updateIcons()) );
+ W.LoadArguments(args);
+ W.show();
+ return a.exec();
+}
bgstack15