Replace obsolete typedefs

parent 9ac90274
......@@ -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 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment