mirror of
https://github.com/Lurkki14/tuxclocker.git
synced 2024-11-28 19:03:50 -06:00
qt: return nullptr for unhandled editors in AssignableEditorDelegate
This commit is contained in:
parent
ff20e91cb7
commit
4d14cd9852
@ -23,13 +23,13 @@ QWidget *AssignableEditorDelegate::createEditor(QWidget *parent, const QStyleOpt
|
||||
editor = new IntRangeEditor(parent);
|
||||
return editor;
|
||||
default:
|
||||
return QStyledItemDelegate::createEditor(parent, option, index);
|
||||
return nullptr;
|
||||
}
|
||||
case TC_ASSIGNABLE_ENUM:
|
||||
editor = new EnumEditor(parent);
|
||||
return editor;
|
||||
default:
|
||||
return QStyledItemDelegate::createEditor(parent, option, index);
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user