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

Method insertActionBefore

launcher/ui/widgets/WideBar.cpp:88–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88void WideBar::insertActionBefore(QAction* before, QAction* action){
89 auto iter = getMatching(before);
90 if(iter == m_entries.end())
91 return;
92
93 auto entry = new BarEntry();
94 entry->qAction = insertWidget((*iter)->qAction, new ActionButton(action, this));
95 entry->wideAction = action;
96 entry->type = BarEntry::Action;
97 m_entries.insert(iter, entry);
98}
99
100void WideBar::insertActionAfter(QAction* after, QAction* action){
101 auto iter = getMatching(after);

Callers 1

ModFolderPageMethod · 0.80

Calls 2

endMethod · 0.80
insertMethod · 0.80

Tested by

no test coverage detected