mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 18:32:50 +00:00
kstyles: remove check for non-existing QWebView class
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
91c7dd2e70
commit
786373a1cb
2 changed files with 1 additions and 13 deletions
|
@ -955,6 +955,7 @@ namespace Oxygen
|
||||||
|
|
||||||
// register primitives for which nothing is done
|
// register primitives for which nothing is done
|
||||||
case PE_FrameStatusBar: fcn = &Style::emptyPrimitive; break;
|
case PE_FrameStatusBar: fcn = &Style::emptyPrimitive; break;
|
||||||
|
case PE_PanelScrollAreaCorner: fcn = &Style::emptyPrimitive; break;
|
||||||
|
|
||||||
case PE_Frame: fcn = &Style::drawFramePrimitive; break;
|
case PE_Frame: fcn = &Style::drawFramePrimitive; break;
|
||||||
|
|
||||||
|
@ -986,7 +987,6 @@ namespace Oxygen
|
||||||
case PE_PanelItemViewItem: fcn = &Style::drawPanelItemViewItemPrimitive; break;
|
case PE_PanelItemViewItem: fcn = &Style::drawPanelItemViewItemPrimitive; break;
|
||||||
case PE_PanelLineEdit: fcn = &Style::drawPanelLineEditPrimitive; break;
|
case PE_PanelLineEdit: fcn = &Style::drawPanelLineEditPrimitive; break;
|
||||||
case PE_PanelMenu: fcn = &Style::drawPanelMenuPrimitive; break;
|
case PE_PanelMenu: fcn = &Style::drawPanelMenuPrimitive; break;
|
||||||
case PE_PanelScrollAreaCorner: fcn = &Style::drawPanelScrollAreaCornerPrimitive; break;
|
|
||||||
case PE_PanelTipLabel: fcn = &Style::drawPanelTipLabelPrimitive; break;
|
case PE_PanelTipLabel: fcn = &Style::drawPanelTipLabelPrimitive; break;
|
||||||
|
|
||||||
case PE_IndicatorMenuCheckMark: fcn = &Style::drawIndicatorMenuCheckMarkPrimitive; 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
|
bool Style::drawPanelTipLabelPrimitive( const QStyleOption* option, QPainter* painter, const QWidget* widget ) const
|
||||||
{
|
{
|
||||||
|
|
|
@ -486,7 +486,6 @@ namespace Oxygen
|
||||||
bool drawPanelButtonCommandPrimitive( const QStyleOption*, QPainter*, const QWidget* ) const;
|
bool drawPanelButtonCommandPrimitive( const QStyleOption*, QPainter*, const QWidget* ) const;
|
||||||
bool drawPanelMenuPrimitive( const QStyleOption*, QPainter*, const QWidget* ) const;
|
bool drawPanelMenuPrimitive( const QStyleOption*, QPainter*, const QWidget* ) const;
|
||||||
bool drawPanelButtonToolPrimitive( 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 drawPanelTipLabelPrimitive( const QStyleOption*, QPainter*, const QWidget* ) const;
|
||||||
bool drawPanelItemViewItemPrimitive( const QStyleOption*, QPainter*, const QWidget* ) const;
|
bool drawPanelItemViewItemPrimitive( const QStyleOption*, QPainter*, const QWidget* ) const;
|
||||||
bool drawPanelLineEditPrimitive( const QStyleOption*, QPainter*, const QWidget* ) const;
|
bool drawPanelLineEditPrimitive( const QStyleOption*, QPainter*, const QWidget* ) const;
|
||||||
|
|
Loading…
Add table
Reference in a new issue