From f4a8383a9a01f94262fef8049cabb4e0972f68e8 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Wed, 19 Sep 2012 14:06:11 +0200 Subject: Replace QStyleOptionViewItemV? with QStyleOptionViewItem The former are a typedef for the latter in Qt 5. This only touches internal implementation, as the API was migrated long ago. Change-Id: Ided73021ebecc00508e6325c3d988b6c6ad336cd Reviewed-by: Marc Mutz Reviewed-by: Jens Bache-Wiig Reviewed-by: Stephen Kelly --- src/widgets/styles/qgtkstyle.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/widgets/styles/qgtkstyle.cpp') diff --git a/src/widgets/styles/qgtkstyle.cpp b/src/widgets/styles/qgtkstyle.cpp index a71fd9a45b..d029a17d23 100644 --- a/src/widgets/styles/qgtkstyle.cpp +++ b/src/widgets/styles/qgtkstyle.cpp @@ -857,7 +857,7 @@ void QGtkStyle::drawPrimitive(PrimitiveElement element, } // fall through case PE_PanelItemViewItem: - if (const QStyleOptionViewItemV4 *vopt = qstyleoption_cast(option)) { + if (const QStyleOptionViewItem *vopt = qstyleoption_cast(option)) { uint resolve_mask = vopt->palette.resolve(); if (vopt->backgroundBrush.style() != Qt::NoBrush || (resolve_mask & (1 << QPalette::Base))) @@ -871,7 +871,7 @@ void QGtkStyle::drawPrimitive(PrimitiveElement element, } if (GtkWidget *gtkTreeView = d->gtkWidget("GtkTreeView")) { const char *detail = "cell_even_ruled"; - if (vopt && vopt->features & QStyleOptionViewItemV2::Alternate) + if (vopt && vopt->features & QStyleOptionViewItem::Alternate) detail = "cell_odd_ruled"; bool isActive = option->state & State_Active; QString key; -- cgit v1.2.3