Added boolean value update

This commit is contained in:
Christoph Holzheuer
2026-04-01 16:11:28 +02:00
parent 075aadc665
commit b9f515950a
10 changed files with 1213 additions and 101 deletions

View File

@@ -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() );