kstyles: remove check for non-existing QWebView class

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2023-08-14 19:54:31 +03:00
parent 91c7dd2e70
commit 786373a1cb
2 changed files with 1 additions and 13 deletions

View file

@ -955,6 +955,7 @@ namespace Oxygen
// register primitives for which nothing is done
case PE_FrameStatusBar: fcn = &Style::emptyPrimitive; break;
case PE_PanelScrollAreaCorner: fcn = &Style::emptyPrimitive; break;
case PE_Frame: fcn = &Style::drawFramePrimitive; break;
@ -986,7 +987,6 @@ namespace Oxygen
case PE_PanelItemViewItem: fcn = &Style::drawPanelItemViewItemPrimitive; break;
case PE_PanelLineEdit: fcn = &Style::drawPanelLineEditPrimitive; break;
case PE_PanelMenu: fcn = &Style::drawPanelMenuPrimitive; break;
case PE_PanelScrollAreaCorner: fcn = &Style::drawPanelScrollAreaCornerPrimitive; break;
case PE_PanelTipLabel: fcn = &Style::drawPanelTipLabelPrimitive; break;
case PE_IndicatorMenuCheckMark: fcn = &Style::drawIndicatorMenuCheckMarkPrimitive; break;
@ -3252,17 +3252,6 @@ namespace Oxygen
}
//___________________________________________________________________________________
bool Style::drawPanelScrollAreaCornerPrimitive( const QStyleOption*, QPainter*, const QWidget* widget ) const
{
// disable painting of PE_PanelScrollAreaCorner
// the default implementation fills the rect with the window background color
// which does not work for windows that have gradients.
// unfortunately, this does not work when scrollbars are children of QWebView,
// in which case, false is returned, in order to fall back to the parent style implementation
return !( widget && widget->inherits( "QWebView" ) );
}
//___________________________________________________________________________________
bool Style::drawPanelTipLabelPrimitive( const QStyleOption* option, QPainter* painter, const QWidget* widget ) const
{

View file

@ -486,7 +486,6 @@ namespace Oxygen
bool drawPanelButtonCommandPrimitive( const QStyleOption*, QPainter*, const QWidget* ) const;
bool drawPanelMenuPrimitive( const QStyleOption*, QPainter*, const QWidget* ) const;
bool drawPanelButtonToolPrimitive( const QStyleOption*, QPainter*, const QWidget* ) const;
bool drawPanelScrollAreaCornerPrimitive( const QStyleOption*, QPainter*, const QWidget* ) const;
bool drawPanelTipLabelPrimitive( const QStyleOption*, QPainter*, const QWidget* ) const;
bool drawPanelItemViewItemPrimitive( const QStyleOption*, QPainter*, const QWidget* ) const;
bool drawPanelLineEditPrimitive( const QStyleOption*, QPainter*, const QWidget* ) const;