Removed debug messages.

This commit is contained in:
Christoph Holzheuer
2026-01-12 09:01:06 +01:00
parent 9b1a1233f9
commit c0ce6a81e3
6 changed files with 0 additions and 20 deletions

View File

@@ -58,8 +58,6 @@ QWidget* BCValueDelegate::createEditor(QWidget *parent, const QStyleOptionViewIt
{
const BCValue& bcValue = *(_valueList[ index.row()].get());
qDebug() << " --- Create EDITOR: " << index.row() << " parent: " << parent->objectName();
Q_UNUSED(option)
Q_UNUSED(index)
@@ -68,7 +66,6 @@ QWidget* BCValueDelegate::createEditor(QWidget *parent, const QStyleOptionViewIt
// Signal für sofortige Updates
connect(valueEditor, &BCValueEditor::valueChanged, this, [this, valueEditor](int newValue)
{
qDebug() << "---val changed: " << newValue;
// Commit data sofort bei Änderung
emit const_cast<BCValueDelegate*>(this)->commitData(valueEditor);
});
@@ -87,14 +84,12 @@ void BCValueDelegate::setEditorData(QWidget *editor, const QModelIndex& index) c
void BCValueDelegate::setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex& index) const
{
qDebug() << " hier 2!";
if( index.column() == 1)
{
// Daten vom Editor zurück ins Model speichern (Beim Schließen)
BCValueEditor* slider = qobject_cast<BCValueEditor*>(editor);
if (slider)
{
qDebug() << " --- ok";
int value = slider->getValue();
model->setData(index, value, Qt::EditRole);
}