PropertyEditor: Fix tab toggling bool (#26955)
This commit is contained in:
@@ -202,12 +202,14 @@ bool PropertyItemDelegate::eventFilter(QObject* o, QEvent* ev)
|
||||
if (checkBox) {
|
||||
auto parentEditor = qobject_cast<PropertyEditor*>(this->parent());
|
||||
if (parentEditor && parentEditor->activeEditor == checkBox) {
|
||||
if (this->pressed) {
|
||||
checkBox->toggle();
|
||||
// Delay valueChanged to ensure proper recomputation
|
||||
QTimer::singleShot(0, this, [this]() { valueChanged(); });
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (ev->type() == QEvent::FocusOut) {
|
||||
if (auto button = qobject_cast<Gui::ColorButton*>(o)) {
|
||||
// Ignore the event if the ColorButton's modal dialog is active.
|
||||
|
||||
Reference in New Issue
Block a user