RSIP_OnMouseClick as Oxygen style does
This commit is contained in:
parent
28ab3be499
commit
ef069ab402
@ -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
|
int Style::pixelMetric(PixelMetric metric, const QStyleOption *option, const QWidget *widget) const
|
||||||
{
|
{
|
||||||
if (Theme::defaultTheme()->useNativeWidgetStyle()) {
|
if (Theme::defaultTheme()->useNativeWidgetStyle()) {
|
||||||
|
@ -45,6 +45,7 @@ public:
|
|||||||
~Style();
|
~Style();
|
||||||
|
|
||||||
void drawPrimitive(PrimitiveElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget = 0) const;
|
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:
|
protected:
|
||||||
void drawComplexControl(ComplexControl control,
|
void drawComplexControl(ComplexControl control,
|
||||||
|
Loading…
Reference in New Issue
Block a user