diff --git a/ui/pageitemdelegate.cpp b/ui/pageitemdelegate.cpp index 069ac6cb8..44191a45b 100644 --- a/ui/pageitemdelegate.cpp +++ b/ui/pageitemdelegate.cpp @@ -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 ); } diff --git a/ui/sidebar.cpp b/ui/sidebar.cpp index 1c23c4102..8586b1fe8 100644 --- a/ui/sidebar.cpp +++ b/ui/sidebar.cpp @@ -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 )