===========================================================================
| 290 | |
| 291 | //=========================================================================== |
| 292 | CDockWidgetTab* 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 | //=========================================================================== |
no test coverage detected