diff options
Diffstat (limited to 'src-qt5/desktop-utils/lumina-pdf/main.cpp')
-rw-r--r-- | src-qt5/desktop-utils/lumina-pdf/main.cpp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src-qt5/desktop-utils/lumina-pdf/main.cpp b/src-qt5/desktop-utils/lumina-pdf/main.cpp new file mode 100644 index 00000000..ad0797d7 --- /dev/null +++ b/src-qt5/desktop-utils/lumina-pdf/main.cpp @@ -0,0 +1,31 @@ +#include <QTranslator> +#include <QApplication> +#include <QDebug> +#include <QFile> + +#include "mainUI.h" +#include <LUtils.h> +//#include <LuminaThemes.h> + +int main(int argc, char ** argv) +{ + //LTHEME::LoadCustomEnvSettings(); + QApplication a(argc, argv); + LUtils::LoadTranslation(&a, "l-pdf"); + //LuminaThemeEngine theme(&a); + + + //Read the input variables + QString path = ""; + for(int i=1; i<argc; i++){ + path = LUtils::PathToAbsolute( argv[i] ); + if(QFile::exists(path)){ break; } //already found a valid file + } +if(path.isEmpty()){ return 1; } + MainUI w; + //QObject::connect(&theme, SIGNAL(updateIcons()), &w, SLOT(UpdateIcons()) ); + w.loadFile(path); + w.show(); + int retCode = a.exec(); + return retCode; +} |