MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / fetchData

Method fetchData

source/frontend/StarQuestInterface.cpp:232–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230}
231
232void QuestLogInterface::fetchData() {
233 auto filter = fetchChild<ButtonGroupWidget>("filter")->checkedButton()->data().toString();
234 if (filter.equalsIgnoreCase("inProgress"))
235 showQuests(m_manager->listActiveQuests());
236 else if (filter.equalsIgnoreCase("completed"))
237 showQuests(m_manager->listCompletedQuests());
238 else
239 throw StarException(strf("Unknown quest filter '{}'", filter));
240}
241
242void QuestLogInterface::showQuests(List<QuestPtr> quests) {
243 auto mainQuestList = fetchChild<ListWidget>("scrollArea.verticalLayout.mainQuestList");

Callers

nothing calls this directly

Calls 8

StarExceptionClass · 0.85
strfFunction · 0.85
checkedButtonMethod · 0.80
listActiveQuestsMethod · 0.80
listCompletedQuestsMethod · 0.80
toStringMethod · 0.45
dataMethod · 0.45
equalsIgnoreCaseMethod · 0.45

Tested by

no test coverage detected