Replace obsolete typedefs

This commit is contained in:
Martin T. H. Sandsmark 2016-07-11 23:24:47 +02:00
parent 9ac9027467
commit 638fedb2ea
2 changed files with 2 additions and 2 deletions

View file

@ -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 );
}

View file

@ -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 )