removed deprecated class name, fixes warnings with later qt5

This commit is contained in:
Miodrag Milanovic 2018-07-07 10:45:40 +02:00
parent 59b27dadd5
commit fa2ca8d9e5

View File

@ -145,7 +145,7 @@ QtPropertyEditorView::QtPropertyEditorView(QWidget *parent) :
void QtPropertyEditorView::drawRow(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
{
QStyleOptionViewItemV3 opt = option;
QStyleOptionViewItem opt = option;
bool hasValue = true;
if (m_editorPrivate) {
QtProperty *property = m_editorPrivate->indexToProperty(index);
@ -347,7 +347,7 @@ void QtPropertyEditorDelegate::paint(QPainter *painter, const QStyleOptionViewIt
if (property)
hasValue = property->hasValue();
}
QStyleOptionViewItemV3 opt = option;
QStyleOptionViewItem opt = option;
if ((m_editorPrivate && index.column() == 0) || !hasValue) {
QtProperty *property = m_editorPrivate->indexToProperty(index);
if (property && property->isModified()) {