diff options
author | Stephen Kelly <stephen.kelly@kdab.com> | 2012-09-19 14:06:11 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-09-21 02:44:22 +0200 |
commit | f4a8383a9a01f94262fef8049cabb4e0972f68e8 (patch) | |
tree | 5a535b3e08db9ce68206284019e1e6f48f241514 /src/widgets/styles/qgtkstyle.cpp | |
parent | 5ad378859a185c681cdea39a21c850b46e1369bb (diff) |
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 <marc.mutz@kdab.com>
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
Diffstat (limited to 'src/widgets/styles/qgtkstyle.cpp')
-rw-r--r-- | src/widgets/styles/qgtkstyle.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<const QStyleOptionViewItemV4 *>(option)) { + if (const QStyleOptionViewItem *vopt = qstyleoption_cast<const QStyleOptionViewItem *>(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; |