diff options
Diffstat (limited to 'src-qt5/experimental/lumina-pdf/main.cpp')
-rw-r--r-- | src-qt5/experimental/lumina-pdf/main.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src-qt5/experimental/lumina-pdf/main.cpp b/src-qt5/experimental/lumina-pdf/main.cpp index f6bb9839..f0430fc8 100644 --- a/src-qt5/experimental/lumina-pdf/main.cpp +++ b/src-qt5/experimental/lumina-pdf/main.cpp @@ -10,20 +10,18 @@ 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"); - //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(QFile::exists(path)){ break; } //already found a valid file } MainUI w; - //QObject::connect(&theme, SIGNAL(updateIcons()), &w, SLOT(UpdateIcons()) ); if(!path.isEmpty()){ w.loadFile(path); } w.show(); int retCode = a.exec(); |