@@ -1271,9 +1271,6 @@ void Style::drawControl(ControlElement element, const QStyleOption *option, QPai
12711271 case CE_MenuBarItem:
12721272 fcn = &Style::drawMenuBarItemControl;
12731273 break ;
1274- case CE_MenuEmptyArea:
1275- fcn = &Style::drawMenuEmptyAreaControl;
1276- break ;
12771274 case CE_MenuItem:
12781275 fcn = &Style::drawMenuItemControl;
12791276 break ;
@@ -4854,21 +4851,6 @@ bool Style::drawMenuBarItemControl(const QStyleOption *option, QPainter *painter
48544851 return true ;
48554852}
48564853
4857- bool Style::drawMenuEmptyAreaControl (const QStyleOption *option, QPainter *painter, const QWidget *widget) const
4858- {
4859- if (_isGNOME)
4860- painter->setPen (Qt::transparent);
4861- else
4862- painter->setPen (option->palette .window ().color ().darker (150 ));
4863-
4864- painter->setBrush (option->palette .base ().color ());
4865- if (_isGNOME)
4866- painter->drawRect (option->rect );
4867- else
4868- painter->drawRect (option->rect .adjusted (0 , 0 , -1 , -1 ));
4869- return true ;
4870- }
4871-
48724854// ___________________________________________________________________________________
48734855bool Style::drawMenuItemControl (const QStyleOption *option, QPainter *painter, const QWidget *widget) const
48744856{
@@ -4882,11 +4864,6 @@ bool Style::drawMenuItemControl(const QStyleOption *option, QPainter *painter, c
48824864 // copy rect and palette
48834865 const QRect &rect (option->rect );
48844866 const QPalette &palette (option->palette );
4885- const QColor &background (palette.color (QPalette::Active, QPalette::Base));
4886-
4887- painter->setPen (Qt::NoPen);
4888- painter->setBrush (background);
4889- painter->drawRect (rect);
48904867
48914868 // deal with separators
48924869 if (menuItemOption->menuItemType == QStyleOptionMenuItem::Separator) {
0 commit comments