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

Method bindWidgetToNavigation

src/plugins/core/uicontroller/controller.cpp:660–674  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

658}
659
660void Controller::bindWidgetToNavigation(const QString &dockName, AbstractAction *abstractAction)
661{
662 auto action = abstractAction->qAction();
663 if (!action || d->widgetBindToNavigation.values().contains(action)) {
664 qWarning() << action->text() << " Navigation has already bind to a widget or action invalid";
665 return;
666 }
667
668 if (!d->allWidgets.contains(dockName)) {
669 qWarning() << "no widget named: " << dockName;
670 return;
671 }
672
673 d->widgetBindToNavigation.insert(dockName, action);
674}
675
676void Controller::registerWidgetToDockHeader(const QString &dockName, QWidget *widget)
677{

Callers 3

startMethod · 0.80
initializeMethod · 0.80
registerToSidebarMethod · 0.80

Calls 5

qActionMethod · 0.80
valuesMethod · 0.80
insertMethod · 0.80
containsMethod · 0.45
textMethod · 0.45

Tested by

no test coverage detected