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

Method insertSpacer

launcher/ui/widgets/WideBar.cpp:112–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112void WideBar::insertSpacer(QAction* action)
113{
114 auto iter = getMatching(action);
115 if(iter == m_entries.end())
116 return;
117
118 QWidget* spacer = new QWidget();
119 spacer->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
120
121 auto entry = new BarEntry();
122 entry->qAction = insertWidget((*iter)->qAction, spacer);
123 entry->type = BarEntry::Spacer;
124 m_entries.insert(iter, entry);
125}
126
127void WideBar::insertSeparator(QAction* before)
128{

Callers 4

ScreenshotsPageMethod · 0.80
VersionPageMethod · 0.80
ExternalResourcesPageMethod · 0.80
WorldListPageMethod · 0.80

Calls 2

endMethod · 0.80
insertMethod · 0.80

Tested by

no test coverage detected