[GB.QT5]
* 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:
parent
f99a71e137
commit
409bc82577
1 changed files with 9 additions and 0 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue