MCPcopy Create free account
hub / github.com/KDE/labplot / insertTab

Method insertTab

src/3rdparty/Qt-Advanced-Docking-System/src/AutoHideSideBar.cpp:195–209  ·  view source on GitHub ↗

============================================================================

Source from the content-addressed store, hash-verified

193
194//============================================================================
195void CAutoHideSideBar::insertTab(int Index, CAutoHideTab* SideTab)
196{
197 SideTab->setSideBar(this);
198 SideTab->installEventFilter(this);
199 // Default insertion is append
200 if (Index < 0)
201 {
202 d->TabsLayout->insertWidget(d->TabsLayout->count() - 1, SideTab);
203 }
204 else
205 {
206 d->TabsLayout->insertWidget(Index, SideTab);
207 }
208 show();
209}
210
211
212//============================================================================

Callers

nothing calls this directly

Calls 4

showFunction · 0.85
setSideBarMethod · 0.80
insertWidgetMethod · 0.45
countMethod · 0.45

Tested by

no test coverage detected