===========================================================================
| 421 | |
| 422 | //=========================================================================== |
| 423 | void CDockAreaTabBar::closeTab(int Index) |
| 424 | { |
| 425 | if (Index < 0 || Index >= count()) |
| 426 | { |
| 427 | return; |
| 428 | } |
| 429 | |
| 430 | auto Tab = tab(Index); |
| 431 | if (Tab->isHidden()) |
| 432 | { |
| 433 | return; |
| 434 | } |
| 435 | Q_EMIT tabCloseRequested(Index); |
| 436 | } |
| 437 | |
| 438 | |
| 439 | //=========================================================================== |
no test coverage detected