summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin T. H. Sandsmark <martin.sandsmark@kde.org>2016-07-11 21:24:47 (GMT)
committerMartin T. H. Sandsmark <martin.sandsmark@kde.org>2016-07-11 21:24:47 (GMT)
commit638fedb2eac6c573ce36952f5c4b1b28b5e0f519 (patch)
treef633b2fe1d93635c430cdacc28270b14e8d403db
parent9ac90274674300e61646e1a526d804f58735545a (diff)
Replace obsolete typedefs
-rw-r--r--ui/pageitemdelegate.cpp2
-rw-r--r--ui/sidebar.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/ui/pageitemdelegate.cpp b/ui/pageitemdelegate.cpp
index 069ac6c..44191a4 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 1c23c41..8586b1f 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 )