mirror of
https://invent.kde.org/graphics/okular
synced 2024-08-24 18:35:37 +00:00
Replace obsolete typedefs
This commit is contained in:
parent
9ac9027467
commit
638fedb2ea
|
@ -71,7 +71,7 @@ void PageItemDelegate::drawDisplay( QPainter *painter, const QStyleOptionViewIte
|
|||
else
|
||||
pageRect.translate( newRect.width() + PAGEITEMDELEGATE_INTERNALMARGIN - 2 * margindelta, 0 );
|
||||
QItemDelegate::drawDisplay( painter, option, newRect, text );
|
||||
QStyleOptionViewItemV2 newoption( option );
|
||||
QStyleOptionViewItem newoption( option );
|
||||
newoption.displayAlignment = ( option.displayAlignment & ~Qt::AlignHorizontal_Mask ) | Qt::AlignRight;
|
||||
QItemDelegate::drawDisplay( painter, newoption, pageRect, page );
|
||||
}
|
||||
|
|
|
@ -151,7 +151,7 @@ void SidebarDelegate::paint( QPainter *painter, const QStyleOptionViewItem &opti
|
|||
foreColor = m_windowForeground->brush(option.palette).color();
|
||||
}
|
||||
QStyle *style = QApplication::style();
|
||||
QStyleOptionViewItemV4 opt( option );
|
||||
QStyleOptionViewItem 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 )
|
||||
|
|
Loading…
Reference in a new issue