diff options
Diffstat (limited to 'utils/regtools/qeditor/utils.cpp')
-rw-r--r-- | utils/regtools/qeditor/utils.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/utils/regtools/qeditor/utils.cpp b/utils/regtools/qeditor/utils.cpp index 748a989512..ada52fd07a 100644 --- a/utils/regtools/qeditor/utils.cpp +++ b/utils/regtools/qeditor/utils.cpp @@ -1042,7 +1042,7 @@ void YRegDisplayItemEditor::paintEvent(QPaintEvent *event) Q_UNUSED(event); QPainter painter(this); /* reuse delegate code to paint */ - QStyleOptionViewItemV4 opt = m_display->viewOptions(); + QStyleOptionViewItem opt = m_display->viewOptions(); opt.state |= QStyle::State_HasFocus | QStyle::State_Selected | QStyle::State_Active; opt.displayAlignment = Qt::AlignHCenter | Qt::AlignVCenter; opt.rect = rect(); @@ -1060,9 +1060,9 @@ YRegDisplayItemDelegate::YRegDisplayItemDelegate(QObject *parent) { } -void YRegDisplayItemDelegate::MyPaint(QPainter *painter, const QStyleOptionViewItemV4& option) const +void YRegDisplayItemDelegate::MyPaint(QPainter *painter, const QStyleOptionViewItem& option) const { - QStyleOptionViewItemV4 opt = option; + QStyleOptionViewItem opt = option; painter->save(); // draw everything rotated, requires careful manipulation of the // rects involved @@ -1077,7 +1077,7 @@ void YRegDisplayItemDelegate::MyPaint(QPainter *painter, const QStyleOptionViewI void YRegDisplayItemDelegate::paint(QPainter *painter, const QStyleOptionViewItem& option, const QModelIndex& index) const { - QStyleOptionViewItemV4 opt = option; + QStyleOptionViewItem opt = option; // default alignment is centered unless specified opt.displayAlignment = Qt::AlignHCenter | Qt::AlignVCenter; initStyleOption(&opt, index); |