diff options
author | Ken Moore <ken@ixsystems.com> | 2017-05-01 10:28:29 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-05-01 10:28:29 -0400 |
commit | 77ada9cd9de7a6a6826ddd8d6ec451882f424e1e (patch) | |
tree | 04f09ff9971cf67249f0407e5981c848a94d67f7 /src-qt5/core/lumina-open/main.cpp | |
parent | Quick sync of all the translation files with the sources. (diff) | |
download | lumina-77ada9cd9de7a6a6826ddd8d6ec451882f424e1e.tar.gz lumina-77ada9cd9de7a6a6826ddd8d6ec451882f424e1e.tar.bz2 lumina-77ada9cd9de7a6a6826ddd8d6ec451882f424e1e.zip |
Ensure that all Lumina tools/utilities are setup with high-DPI icons.
Diffstat (limited to 'src-qt5/core/lumina-open/main.cpp')
-rw-r--r-- | src-qt5/core/lumina-open/main.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src-qt5/core/lumina-open/main.cpp b/src-qt5/core/lumina-open/main.cpp index 7434b6c2..d421b5b6 100644 --- a/src-qt5/core/lumina-open/main.cpp +++ b/src-qt5/core/lumina-open/main.cpp @@ -47,6 +47,7 @@ void printUsageInfo(){ void ShowErrorDialog(int argc, char **argv, QString message){ //Setup the application QApplication App(argc, argv); + App.setAttribute(Qt::AA_UseHighDpiPixmaps); LuminaThemeEngine theme(&App); LUtils::LoadTranslation(&App,"lumina-open"); QMessageBox dlg(QMessageBox::Critical, QObject::tr("File Error"), message ); @@ -58,7 +59,7 @@ void showOSD(int argc, char **argv, QString message){ //Setup the application QApplication App(argc, argv); LUtils::LoadTranslation(&App,"lumina-open"); - + App.setAttribute(Qt::AA_UseHighDpiPixmaps); //Display the OSD QPixmap pix(":/icons/OSD.png"); QLabel splash(0, Qt::Window | Qt::WindowStaysOnTopHint | Qt::X11BypassWindowManagerHint); @@ -137,6 +138,7 @@ QString cmdFromUser(int argc, char **argv, QString inFile, QString extension, QS //No default set -- Start up the application selection dialog LTHEME::LoadCustomEnvSettings(); QApplication App(argc, argv); + App.setAttribute(Qt::AA_UseHighDpiPixmaps); LuminaThemeEngine theme(&App); LUtils::LoadTranslation(&App,"lumina-open"); @@ -412,6 +414,7 @@ int main(int argc, char **argv){ qDebug() << "[lumina-open] Application Error:" << retcode; //Setup the application QApplication App(argc, argv); + App.setAttribute(Qt::AA_UseHighDpiPixmaps); LuminaThemeEngine theme(&App); LUtils::LoadTranslation(&App,"lumina-open"); //App.setApplicationName("LuminaOpen"); |