Cleanups.
This commit is contained in:
@@ -126,7 +126,7 @@ int BCValueModel::columnCount(const QModelIndex& parent) const
|
||||
{
|
||||
if (parent.isValid())
|
||||
return 0;
|
||||
return 3;
|
||||
return 2;
|
||||
}
|
||||
|
||||
|
||||
@@ -183,6 +183,8 @@ Qt::ItemFlags BCValueModel::flags(const QModelIndex& index) const
|
||||
|
||||
bool BCValueModel::setData(const QModelIndex& index, const QVariant& variant, int role)
|
||||
{
|
||||
qDebug() << " --- SET DATA: " << variant.toString();
|
||||
|
||||
if (index.isValid() && role == Qt::EditRole)
|
||||
{
|
||||
BCValuePtr value = _valueList[index.row()];
|
||||
|
||||
Reference in New Issue
Block a user