| 591 | } |
| 592 | |
| 593 | void Controller::setDockHeaderList(const QString &dockName, const QList<QAction *> &actions) |
| 594 | { |
| 595 | if (!d->allWidgets.contains(dockName)) { |
| 596 | qWarning() << "No widget named: " << dockName; |
| 597 | return; |
| 598 | } |
| 599 | |
| 600 | auto &info = d->allWidgets[dockName]; |
| 601 | info.headerName = ""; |
| 602 | info.headerList = actions; |
| 603 | |
| 604 | if (info.created) |
| 605 | d->mainWindow->setDockHeaderList(dockName, actions); |
| 606 | } |
| 607 | |
| 608 | void Controller::addNavigationItem(AbstractAction *action, quint8 priority) |
| 609 | { |
no test coverage detected