mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-12 12:54:29 +00:00
It's enabled by default in qt6
This commit is contained in:
parent
4fc25d5949
commit
6ee1e01eb0
|
@ -65,9 +65,10 @@ int main(int argc, char **argv)
|
||||||
/**
|
/**
|
||||||
* enable high dpi support
|
* enable high dpi support
|
||||||
*/
|
*/
|
||||||
|
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
|
||||||
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps, true);
|
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps, true);
|
||||||
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling, true);
|
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling, true);
|
||||||
|
#endif
|
||||||
QApplication app(argc, argv);
|
QApplication app(argc, argv);
|
||||||
app.setWindowIcon(QIcon::fromTheme(QStringLiteral("system-file-manager"), app.windowIcon()));
|
app.setWindowIcon(QIcon::fromTheme(QStringLiteral("system-file-manager"), app.windowIcon()));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue