MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / insertActionAfter

Method insertActionAfter

launcher/ui/widgets/WideBar.cpp:100–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100void WideBar::insertActionAfter(QAction* after, QAction* action){
101 auto iter = getMatching(after);
102 if(iter == m_entries.end())
103 return;
104
105 auto entry = new BarEntry();
106 entry->qAction = insertWidget((*(iter+1))->qAction, new ActionButton(action, this));
107 entry->wideAction = action;
108 entry->type = BarEntry::Action;
109 m_entries.insert(iter + 1, entry);
110}
111
112void WideBar::insertSpacer(QAction* action)
113{

Callers 1

ModFolderPageMethod · 0.80

Calls 2

endMethod · 0.80
insertMethod · 0.80

Tested by

no test coverage detected