diff --git a/private/style.cpp b/private/style.cpp index 1e01302d1..9fff60d8a 100644 --- a/private/style.cpp +++ b/private/style.cpp @@ -314,6 +314,16 @@ QRect Style::subControlRect(ComplexControl control, const QStyleOptionComplex *o } } +int Style::styleHint(StyleHint hint, const QStyleOption *option, const QWidget *widget, QStyleHintReturn *returnData) const +{ + switch (hint) { + case SH_RequestSoftwareInputPanel: + return RSIP_OnMouseClick; + default: + return QCommonStyle::styleHint(hint, option, widget, returnData); + } +} + int Style::pixelMetric(PixelMetric metric, const QStyleOption *option, const QWidget *widget) const { if (Theme::defaultTheme()->useNativeWidgetStyle()) { diff --git a/private/style_p.h b/private/style_p.h index 7f88ec884..787cf8d76 100644 --- a/private/style_p.h +++ b/private/style_p.h @@ -45,6 +45,7 @@ public: ~Style(); void drawPrimitive(PrimitiveElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget = 0) const; + int styleHint(StyleHint hint, const QStyleOption *option=0, const QWidget *widget=0, QStyleHintReturn *returnData=0) const; protected: void drawComplexControl(ComplexControl control,