Removed debug messages.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user