Added boolean value update
This commit is contained in:
@@ -160,7 +160,7 @@ QVariant BCValueModel::data(const QModelIndex& index, int role) const
|
||||
|
||||
Qt::ItemFlags BCValueModel::flags(const QModelIndex& index) const
|
||||
{
|
||||
Qt::ItemFlags flag = Qt::NoItemFlags|Qt::ItemNeverHasChildren;
|
||||
Qt::ItemFlags flag = Qt::NoItemFlags | Qt::ItemNeverHasChildren;// | Qt::ItemIsSelectable;
|
||||
// die label spalte lässt sich nicht editieren
|
||||
if (!index.isValid() || index.column() == 0 )
|
||||
return flag;
|
||||
@@ -190,7 +190,7 @@ bool BCValueModel::setData(const QModelIndex& index, const QVariant& variant, in
|
||||
{
|
||||
if( variant.toInt() == 42)
|
||||
{
|
||||
//emit makeSimonHappy();
|
||||
emit makeSimonHappy();
|
||||
}
|
||||
// QUARK!
|
||||
value->setRawValue( variant.toInt() );
|
||||
|
||||
Reference in New Issue
Block a user