Commit 43f27366 authored by CABEL Tristan's avatar CABEL Tristan

menubar fixed for HighDpi

parent 5e09b545
......@@ -21,8 +21,6 @@ dtkApplication::dtkApplication(int& argc, char **argv): QApplication(argc, argv)
{
d = new dtkApplicationPrivate;
d->setApplication(this);
this->setAttribute(Qt::AA_EnableHighDpiScaling);
}
dtkApplication::~dtkApplication(void)
......@@ -49,6 +47,8 @@ bool dtkApplication::noGui(void)
dtkApplication *dtkApplication::create(int& argc, char *argv[])
{
QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
for (int i = 0; i < argc; i++)
if(!qstrcmp(argv[i], "-nw") || !qstrcmp(argv[i], "--nw") || !qstrcmp(argv[i], "-no-window") || !qstrcmp(argv[i], "--no-window") || !qstrcmp(argv[i], "-h") || !qstrcmp(argv[i], "--help") || !qstrcmp(argv[i], "--version"))
qputenv("QT_QPA_PLATFORM", QByteArrayLiteral("minimal"));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment