MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / setDockHeaderList

Method setDockHeaderList

src/plugins/core/uicontroller/mainwindow.cpp:115–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115void 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
127void MainWindow::deleteDockHeader(const QString &name)
128{

Callers

nothing calls this directly

Calls 3

setHeaderNamesMethod · 0.80
containsMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected