Reworked data types, part II
This commit is contained in:
@@ -99,9 +99,9 @@ void BCItemDelegate::setEditorData(QWidget *editor, const QModelIndex &index) co
|
||||
QLabel *lblUnit = editor->findChild<QLabel*>("lblUnit");
|
||||
|
||||
if (slider && lblUnit) {
|
||||
bool oldState = slider->blockSignals(true);
|
||||
bool olDriverState = slider->blockSignals(true);
|
||||
slider->setValue(bc.value.toInt());
|
||||
slider->blockSignals(oldState);
|
||||
slider->blockSignals(olDriverState);
|
||||
|
||||
lblUnit->setText(QString("%1 %2").arg(bc.value.toInt()).arg( "mm3"));
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user