forked from qt-creator/qt-creator
Fixes: Fix line edit focus on MacStyle
Task: 242757 RevBy: twschulz Details: Mac style reimplements QStyle::event, hence we need to pass it on.
This commit is contained in:
@@ -1054,3 +1054,11 @@ void ManhattanStyle::drawComplexControl(ComplexControl control, const QStyleOpti
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Mac style reimplements this to control the
|
||||||
|
// focus widget among other things
|
||||||
|
bool ManhattanStyle::event(QEvent *e)
|
||||||
|
{
|
||||||
|
Q_ASSERT(d->style);
|
||||||
|
return d->style->event(e);
|
||||||
|
}
|
||||||
|
|||||||
@@ -78,6 +78,9 @@ public:
|
|||||||
void unpolish(QWidget *widget);
|
void unpolish(QWidget *widget);
|
||||||
void unpolish(QApplication *app);
|
void unpolish(QApplication *app);
|
||||||
|
|
||||||
|
protected:
|
||||||
|
bool event(QEvent *e);
|
||||||
|
|
||||||
protected Q_SLOTS:
|
protected Q_SLOTS:
|
||||||
QIcon standardIconImplementation(StandardPixmap standardIcon, const QStyleOption *option, const QWidget *widget) const;
|
QIcon standardIconImplementation(StandardPixmap standardIcon, const QStyleOption *option, const QWidget *widget) const;
|
||||||
int layoutSpacingImplementation(QSizePolicy::ControlType control1,
|
int layoutSpacingImplementation(QSizePolicy::ControlType control1,
|
||||||
|
|||||||
Reference in New Issue
Block a user