aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-pdf/main.cpp
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2019-01-02 09:31:52 -0500
committerGitHub <noreply@github.com>2019-01-02 09:31:52 -0500
commitcd407705124fefe2b293120c845319c369929c86 (patch)
tree635f1cea2c9a39ee7495396a43aa04957dad7f2a /src-qt5/desktop-utils/lumina-pdf/main.cpp
parentMerge pull request #644 from maxsteciuk/bugfix/lumina-fm-crash-on-startup (diff)
parentSwitches from keeping links in a QHash to a std::vector. This fixes some race... (diff)
downloadlumina-cd407705124fefe2b293120c845319c369929c86.tar.gz
lumina-cd407705124fefe2b293120c845319c369929c86.tar.bz2
lumina-cd407705124fefe2b293120c845319c369929c86.zip
Merge pull request #642 from stackyjoe/master
Some changes and fixes to LuminaPDF
Diffstat (limited to 'src-qt5/desktop-utils/lumina-pdf/main.cpp')
-rw-r--r--src-qt5/desktop-utils/lumina-pdf/main.cpp23
1 files changed, 13 insertions, 10 deletions
diff --git a/src-qt5/desktop-utils/lumina-pdf/main.cpp b/src-qt5/desktop-utils/lumina-pdf/main.cpp
index f0430fc8..5e2ed0a9 100644
--- a/src-qt5/desktop-utils/lumina-pdf/main.cpp
+++ b/src-qt5/desktop-utils/lumina-pdf/main.cpp
@@ -1,28 +1,31 @@
-#include <QTranslator>
#include <QApplication>
#include <QDebug>
#include <QFile>
+#include <QTranslator>
#include "mainUI.h"
#include <LUtils.h>
//#include <LuminaThemes.h>
-int main(int argc, char ** argv)
-{
- //LTHEME::LoadCustomEnvSettings();
- unsetenv("QT_AUTO_SCREEN_SCALE_FACTOR"); //need pixel-perfect geometries
+int main(int argc, char **argv) {
+ // LTHEME::LoadCustomEnvSettings();
+ unsetenv("QT_AUTO_SCREEN_SCALE_FACTOR"); // need pixel-perfect geometries
QApplication a(argc, argv);
LUtils::LoadTranslation(&a, "l-pdf");
- //Read the input variables
+ // 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
+ for (int i = 1; i < argc; i++) {
+ path = LUtils::PathToAbsolute(argv[i]);
+ if (QFile::exists(path)) {
+ break;
+ } // already found a valid file
}
MainUI w;
- if(!path.isEmpty()){ w.loadFile(path); }
+ if (!path.isEmpty()) {
+ w.loadFile(path);
+ }
w.show();
int retCode = a.exec();
return retCode;
bgstack15