mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-23 18:32:53 +00:00
okular: no style inherits KStyle
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
a4043a10b0
commit
31acafdca3
1 changed files with 1 additions and 3 deletions
|
@ -150,9 +150,7 @@ void SidebarDelegate::paint( QPainter *painter, const QStyleOptionViewItem &opti
|
||||||
}
|
}
|
||||||
QStyle *style = QApplication::style();
|
QStyle *style = QApplication::style();
|
||||||
QStyleOptionViewItemV4 opt( option );
|
QStyleOptionViewItemV4 opt( option );
|
||||||
// KStyle provides an "hover highlight" effect for free;
|
if ( hover )
|
||||||
// but we want that for non-KStyle-based styles too
|
|
||||||
if ( !style->inherits( "KStyle" ) && hover )
|
|
||||||
{
|
{
|
||||||
Qt::BrushStyle bs = opt.backgroundBrush.style();
|
Qt::BrushStyle bs = opt.backgroundBrush.style();
|
||||||
if ( bs > Qt::NoBrush && bs < Qt::TexturePattern )
|
if ( bs > Qt::NoBrush && bs < Qt::TexturePattern )
|
||||||
|
|
Loading…
Add table
Reference in a new issue