diff --git a/gb.qt4/src/fix_breeze.cpp b/gb.qt4/src/fix_breeze.cpp index 44cc5e286..01b850dd7 100644 --- a/gb.qt4/src/fix_breeze.cpp +++ b/gb.qt4/src/fix_breeze.cpp @@ -205,3 +205,17 @@ void FixBreezeStyle::drawComplexControl(ComplexControl element, const QStyleOpti QProxyStyle::drawComplexControl(element, option, painter, widget); } + +void FixBreezeStyle::drawControl(ControlElement element, const QStyleOption * option, QPainter * painter, const QWidget * widget) const +{ + QStyleOptionButton newOption; + + if (element == CE_PushButtonBevel) + { + newOption = *(QStyleOptionButton *)option; + newOption.iconSize = QSize(0, 0); + option = &newOption; + } + + QProxyStyle::drawControl(element, option, painter, widget); +} diff --git a/gb.qt4/src/fix_breeze.h b/gb.qt4/src/fix_breeze.h index eb36cca59..4172941f4 100644 --- a/gb.qt4/src/fix_breeze.h +++ b/gb.qt4/src/fix_breeze.h @@ -36,6 +36,7 @@ public: void drawComplexControl(ComplexControl, const QStyleOptionComplex*, QPainter*, const QWidget*) const; void drawPrimitive(PrimitiveElement, const QStyleOption*, QPainter*, const QWidget*) const; + void drawControl(ControlElement, const QStyleOption *, QPainter *, const QWidget *) const; QRect visualRect(const QStyleOption* opt, const QRect& subRect) const { return QProxyStyle::visualRect(opt->direction, opt->rect, subRect); }