MCPcopy Create free account
hub / github.com/OpenOrienteering/mapper / getSelectedSymbolSetPath

Method getSelectedSymbolSetPath

src/gui/map/new_map_dialog.cpp:133–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133QString NewMapDialog::getSelectedSymbolSetPath() const
134{
135 QListWidgetItem* item = symbol_set_list->currentItem();
136 if (! item || ! item->data(Qt::UserRole).isValid())
137 {
138 // FIXME: add proper error handling for release builds, or remove.
139 Q_ASSERT(false);
140 return QString{};
141 }
142
143 return item->data(Qt::UserRole).toString();
144}
145
146void NewMapDialog::accept()
147{

Callers 1

showNewMapWizardMethod · 0.80

Calls 3

isValidMethod · 0.45
dataMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected