qt: disable window context help buttons
This commit is contained in:
@@ -11,4 +11,11 @@ int StyleOverride::styleHint(
|
||||
return 0;
|
||||
|
||||
return QProxyStyle::styleHint(hint, option, widget, returnData);
|
||||
}
|
||||
|
||||
void StyleOverride::polish(QWidget* widget)
|
||||
{
|
||||
/* Disable title bar context help buttons globally as they are unused. */
|
||||
if (widget->isWindow())
|
||||
widget->setWindowFlag(Qt::WindowContextHelpButtonHint, false);
|
||||
}
|
||||
Reference in New Issue
Block a user