24 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);
47 setCurrentIndex(findData(QVariant::fromValue(
static_cast<void*
>(
const_cast<Face*
>(
face)))));
52 return static_cast<const Face*
>(currentData().value<
void*>());