mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-23 10:22:52 +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();
|
||||
QStyleOptionViewItemV4 opt( option );
|
||||
// KStyle provides an "hover highlight" effect for free;
|
||||
// but we want that for non-KStyle-based styles too
|
||||
if ( !style->inherits( "KStyle" ) && hover )
|
||||
if ( hover )
|
||||
{
|
||||
Qt::BrushStyle bs = opt.backgroundBrush.style();
|
||||
if ( bs > Qt::NoBrush && bs < Qt::TexturePattern )
|
||||
|
|
Loading…
Add table
Reference in a new issue