Code: Alles auswählen
void ComboBoxItemDelegate::setEditorData(QWidget *editor, const QModelIndex &index) const {
// Signal werfen, damit Anwendung die Änderung mitprotokollieren kann..
emit systemGroupChanged(index.model()->data(index.model()->index(index.row(), 0), Qt::UserRole + 1).toInt(),
index.model()->data(index, Qt::UserRole + 1).toInt());
}
Nur warum? Ich verändere doch nichts am Objekt?? Oder versteh ich da etwas falsch??..\ItemDelegates\ComboBoxItemDelegate.cpp:54: error: passing 'const ComboBoxItemDelegate' as 'this' argument of 'void ComboBoxItemDelegate::systemGroupChanged(int, int)' discards qualifiers
lG