* BUG: Quickly apply the Breeze style workarounds to the Oxygen style. Some work is still needed on small buttons. And other places for sure!


git-svn-id: svn://localhost/gambas/trunk@7728 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
Benoît Minisini 2016-04-07 09:10:28 +00:00
parent f99a71e137
commit 409bc82577

View file

@ -897,6 +897,15 @@ static void QT_Init(void)
qApp->setStyle(new FixBreezeStyle);
}
}
else if (::strcmp(qApp->style()->metaObject()->className(), "Oxygen::Style") == 0)
{
char *env = getenv("GB_QT_NO_OXYGEN_FIX");
if (!env || atoi(env) == 0)
{
CSTYLE_fix_breeze = TRUE;
qApp->setStyle(new FixBreezeStyle);
}
}
MAIN_update_scale(qApp->desktop()->font());