| 425 | } |
| 426 | |
| 427 | void PanadapterStack::removeAll() |
| 428 | { |
| 429 | // Close floating windows first |
| 430 | for (auto* fw : m_floatingWindows) { |
| 431 | fw->takeApplet(); |
| 432 | delete fw; |
| 433 | } |
| 434 | m_floatingWindows.clear(); |
| 435 | |
| 436 | qDeleteAll(m_pans); |
| 437 | m_pans.clear(); |
| 438 | m_activePanId.clear(); |
| 439 | |
| 440 | // Delete the old splitter and create a fresh one |
| 441 | delete m_splitter; |
| 442 | m_splitter = new QSplitter(Qt::Vertical, this); |
| 443 | m_splitter->setHandleWidth(3); |
| 444 | m_splitter->setChildrenCollapsible(false); |
| 445 | layout()->addWidget(m_splitter); |
| 446 | } |
| 447 | |
| 448 | void PanadapterStack::rebuildDockedSplitter() |
| 449 | { |
no test coverage detected