Support high-resolution icons if present

master
Marius Kintel 2015-02-10 14:10:25 -05:00
parent 0fefd42250
commit 2cbbf66586
1 changed files with 1 additions and 0 deletions

View File

@ -642,6 +642,7 @@ int gui(vector<string> &inputFiles, const fs::path &original_path, int argc, cha
QCoreApplication::setApplicationVersion(TOSTRING(OPENSCAD_VERSION));
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
QGuiApplication::setApplicationDisplayName("OpenSCAD");
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
#else
QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8"));
#endif