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

Method switchWidgetWorkspace

src/plugins/core/gui/workspacewidget.cpp:71–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71void WorkspaceWidget::switchWidgetWorkspace(const QString &title)
72{
73 auto lastTitle = currentTitle();
74 auto widget = editWorkspaceWidgets[title];
75 stackEditWorkspaceWidget->setCurrentWidget(widget);
76
77 emit expandStateChange(widget->property("canExpand").toBool());
78
79 //update toolbtn`s state at header
80 for (auto btn : getToolBtnByTitle(lastTitle)) {
81 toolBtnState[btn] = !btn->isHidden();
82 btn->setVisible(false);
83 }
84
85 for (auto btn : getToolBtnByTitle(title)) {
86 btn->setVisible(toolBtnState[btn]);
87 }
88
89 emit workSpaceWidgeSwitched(title);
90}
91
92bool WorkspaceWidget::getCurrentExpandState()
93{

Callers 3

showRightspaceMethod · 0.80
switchWorkspaceMethod · 0.80
showWorkspaceMethod · 0.80

Calls 3

isHiddenMethod · 0.80
setVisibleMethod · 0.80
propertyMethod · 0.45

Tested by

no test coverage detected