src/gui/widgets/qmenubar.cpp
changeset 37 758a864f9613
parent 33 3e2da88830cd
equal deleted inserted replaced
36:ef0373b55136 37:758a864f9613
   100 void QMenuBarExtension::paintEvent(QPaintEvent *)
   100 void QMenuBarExtension::paintEvent(QPaintEvent *)
   101 {
   101 {
   102     QStylePainter p(this);
   102     QStylePainter p(this);
   103     QStyleOptionToolButton opt;
   103     QStyleOptionToolButton opt;
   104     initStyleOption(&opt);
   104     initStyleOption(&opt);
   105     // We do not need to draw both extention arrows
   105     // We do not need to draw both extension arrows
   106     opt.features &= ~QStyleOptionToolButton::HasMenu;
   106     opt.features &= ~QStyleOptionToolButton::HasMenu;
   107     p.drawComplexControl(QStyle::CC_ToolButton, opt);
   107     p.drawComplexControl(QStyle::CC_ToolButton, opt);
   108 }
   108 }
   109 
   109 
   110 
   110