removed deprecated class name, fixes warnings with later qt5
This commit is contained in:
parent
59b27dadd5
commit
fa2ca8d9e5
@ -145,7 +145,7 @@ QtPropertyEditorView::QtPropertyEditorView(QWidget *parent) :
|
|||||||
|
|
||||||
void QtPropertyEditorView::drawRow(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
|
void QtPropertyEditorView::drawRow(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
|
||||||
{
|
{
|
||||||
QStyleOptionViewItemV3 opt = option;
|
QStyleOptionViewItem opt = option;
|
||||||
bool hasValue = true;
|
bool hasValue = true;
|
||||||
if (m_editorPrivate) {
|
if (m_editorPrivate) {
|
||||||
QtProperty *property = m_editorPrivate->indexToProperty(index);
|
QtProperty *property = m_editorPrivate->indexToProperty(index);
|
||||||
@ -347,7 +347,7 @@ void QtPropertyEditorDelegate::paint(QPainter *painter, const QStyleOptionViewIt
|
|||||||
if (property)
|
if (property)
|
||||||
hasValue = property->hasValue();
|
hasValue = property->hasValue();
|
||||||
}
|
}
|
||||||
QStyleOptionViewItemV3 opt = option;
|
QStyleOptionViewItem opt = option;
|
||||||
if ((m_editorPrivate && index.column() == 0) || !hasValue) {
|
if ((m_editorPrivate && index.column() == 0) || !hasValue) {
|
||||||
QtProperty *property = m_editorPrivate->indexToProperty(index);
|
QtProperty *property = m_editorPrivate->indexToProperty(index);
|
||||||
if (property && property->isModified()) {
|
if (property && property->isModified()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user