MCPcopy Create free account
hub / github.com/comaps/comaps / OnListItemSelected

Method OnListItemSelected

qt/create_feature_dialog.cpp:38–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38void CreateFeatureDialog::OnListItemSelected(QModelIndex const & i)
39{
40 auto const clType = i.data(Qt::DisplayRole).toString().toStdString();
41 m_selectedType = classif().GetTypeByReadableObjectName(clType);
42 ASSERT(m_selectedType != ftype::GetEmptyValue(), ());
43
44 accept();
45}

Callers

nothing calls this directly

Calls 5

ASSERTFunction · 0.85
GetEmptyValueFunction · 0.85
toStringMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected