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

Method currentTab

src/3rdparty/Qt-Advanced-Docking-System/src/DockAreaTabBar.cpp:292–302  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

290
291//===========================================================================
292CDockWidgetTab* CDockAreaTabBar::currentTab() const
293{
294 if (d->CurrentIndex < 0 || d->CurrentIndex >= d->TabsLayout->count())
295 {
296 return nullptr;
297 }
298 else
299 {
300 return qobject_cast<CDockWidgetTab*>(d->TabsLayout->itemAt(d->CurrentIndex)->widget());
301 }
302}
303
304
305//===========================================================================

Callers 2

mousePressEventMethod · 0.80

Calls 2

countMethod · 0.45
widgetMethod · 0.45

Tested by

no test coverage detected