| 113 | } |
| 114 | |
| 115 | void MainWindow::setDockHeaderList(const QString &dockName, const QList<QAction *> &actions) |
| 116 | { |
| 117 | if (!d->dockList.contains(dockName) || actions.isEmpty()) |
| 118 | return; |
| 119 | |
| 120 | auto dock = d->dockList[dockName]; |
| 121 | auto titleBar = qobject_cast<DockHeader *>(dock->titleBarWidget()); |
| 122 | |
| 123 | if (titleBar) |
| 124 | titleBar->setHeaderNames(actions); |
| 125 | } |
| 126 | |
| 127 | void MainWindow::deleteDockHeader(const QString &name) |
| 128 | { |
nothing calls this directly
no test coverage detected