QBrush() is not a 'use default' return value from a model, QVariant() is

This commit is contained in:
baldurk
2017-05-09 18:49:44 +01:00
parent 6c2f2c0401
commit 4fb8b22b2d
+2 -2
View File
@@ -192,7 +192,7 @@ public:
return widget->palette().brush(QPalette::Window);
// otherwise, no special background
return QBrush();
return QVariant();
}
else if(role == Qt::ForegroundRole)
{
@@ -203,7 +203,7 @@ public:
if(widget->m_currentHoverItem == item)
return widget->palette().brush(QPalette::WindowText);
return QBrush();
return QVariant();
}
else if(role == Qt::ToolTipRole)
{