MCPcopy Create free account
hub / github.com/KDE/kdevelop / addWidget

Method addWidget

kdevplatform/sublime/idealbuttonbarwidget.cpp:376–395  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

374}
375
376QAction* IdealButtonBarWidget::addWidget(IdealDockWidget* dock, bool initiallyVisible)
377{
378 auto dockFeatures = dock->features();
379 if (m_area == Qt::BottomDockWidgetArea || m_area == Qt::TopDockWidgetArea) {
380 dockFeatures |= QDockWidget::DockWidgetVerticalTitleBar;
381 } else {
382 dockFeatures &= ~QDockWidget::DockWidgetVerticalTitleBar;
383 }
384 dock->setFeatures(dockFeatures);
385 dock->setDockWidgetArea(m_area);
386
387 auto action = new ToolViewAction(dock, this);
388 if (initiallyVisible) {
389 action->setChecked(true);
390 m_lastCheckedActionsTracker->justChecked(action);
391 }
392 addAction(action);
393
394 return action;
395}
396
397QWidget* IdealButtonBarWidget::corner() const
398{

Callers 2

IdealButtonBarWidgetMethod · 0.45
applyOrderToLayoutMethod · 0.45

Calls 4

setDockWidgetAreaMethod · 0.80
justCheckedMethod · 0.80
featuresMethod · 0.45
setFeaturesMethod · 0.45

Tested by

no test coverage detected