22 addItem(QIcon(),
"(none)", QVariant::fromValue<void*>(
nullptr));
31 setInsertPolicy(QComboBox::NoInsert);
32 setCompleter(
new QCompleter(
names,
this));
33 completer()->setFilterMode(Qt::MatchContains);
34 completer()->setCaseSensitivity(Qt::CaseInsensitive);
38 setCurrentIndex(findData(QVariant::fromValue(
static_cast<void *
>(
const_cast<treasurelist *
>(
list)))));
42 return static_cast<const treasurelist *
>(currentData().value<
void *>());