A bit more clang-format
This commit is contained in:
@@ -19,11 +19,12 @@
|
||||
#include <QComboBox>
|
||||
#include <QAbstractItemView>
|
||||
|
||||
int StyleOverride::styleHint(
|
||||
StyleHint hint,
|
||||
const QStyleOption *option,
|
||||
const QWidget *widget,
|
||||
QStyleHintReturn *returnData) const
|
||||
int
|
||||
StyleOverride::styleHint(
|
||||
StyleHint hint,
|
||||
const QStyleOption *option,
|
||||
const QWidget *widget,
|
||||
QStyleHintReturn *returnData) const
|
||||
{
|
||||
/* Disable using menu with alt key */
|
||||
if (hint == QStyle::SH_MenuBar_AltKeyNavigation)
|
||||
@@ -32,7 +33,8 @@ int StyleOverride::styleHint(
|
||||
return QProxyStyle::styleHint(hint, option, widget, returnData);
|
||||
}
|
||||
|
||||
void StyleOverride::polish(QWidget* widget)
|
||||
void
|
||||
StyleOverride::polish(QWidget *widget)
|
||||
{
|
||||
QProxyStyle::polish(widget);
|
||||
/* Disable title bar context help buttons globally as they are unused. */
|
||||
@@ -48,7 +50,7 @@ void StyleOverride::polish(QWidget* widget)
|
||||
widget->setWindowFlag(Qt::WindowContextHelpButtonHint, false);
|
||||
}
|
||||
|
||||
if (qobject_cast<QComboBox*>(widget)) {
|
||||
qobject_cast<QComboBox*>(widget)->view()->setMinimumWidth(widget->minimumSizeHint().width());
|
||||
if (qobject_cast<QComboBox *>(widget)) {
|
||||
qobject_cast<QComboBox *>(widget)->view()->setMinimumWidth(widget->minimumSizeHint().width());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user