22 addItem(QIcon(),
"(none)", QVariant::fromValue<void*>(
nullptr));
35 setInsertPolicy(QComboBox::NoInsert);
36 setCompleter(
new QCompleter(
names,
this));
37 completer()->setFilterMode(Qt::MatchContains);
38 completer()->setCaseSensitivity(Qt::CaseInsensitive);
42 setCurrentIndex(findData(QVariant::fromValue(
static_cast<void *
>(
const_cast<archetype *
>(
arch)))));
46 return static_cast<const archetype *
>(currentData().value<
void *>());