- fix: macos icon size overgrown (#106)
MacOS uses high DPI pixmaps with devicePixelRatio equals 2. Setting a flag in QApplication can enforce this in pixmaps fetched from QIcons and thus make the icons look high DPI.
This commit is contained in:
parent
fdc04c0d4f
commit
da23ae64ba
|
@ -252,6 +252,10 @@ int main(int argc, char *argv[])
|
|||
// qputenv("QT_AUTO_SCREEN_SCALE_FACTOR","false");
|
||||
//#endif
|
||||
QApplication app(argc, argv);
|
||||
#ifdef Q_OS_MACOS
|
||||
// Fix macOS overgrown icon size issue
|
||||
app.setAttribute(Qt::AA_UseHighDpiPixmaps);
|
||||
#endif
|
||||
QFile tempFile(QDir::tempPath()+QDir::separator()+"RedPandaDevCppStartUp.lock");
|
||||
{
|
||||
bool firstRun;
|
||||
|
|
Loading…
Reference in New Issue