Fixed toggle switch painting, part I
This commit is contained in:
@@ -168,6 +168,7 @@ Qt::ItemFlags BCValueModel::flags(const QModelIndex& index) const
|
||||
if( row>-1 && row<_valueList.size() )
|
||||
{
|
||||
const BCValue& bcValue = *_valueList[row].get();
|
||||
//qDebug() << " --- flags: " << bcValue.label() << " Ro: " << bcValue.isReadOnly() << " Bool: " << bcValue.isBoolean();
|
||||
flag = bcValue.isReadOnly() ? flag : flag|Qt::ItemIsEditable|Qt::ItemIsEnabled;
|
||||
}
|
||||
return flag;
|
||||
|
||||
Reference in New Issue
Block a user