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

Method setNavActionChecked

src/plugins/core/gui/navigationbar.cpp:132–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132void NavigationBar::setNavActionChecked(const QString &actionName, bool checked)
133{
134 if (!navBtns.contains(actionName) && allBtns.contains(actionName)) {
135 allBtns[actionName]->setChecked(checked);
136 return;
137 }
138
139 for (auto it = navBtns.begin(); it != navBtns.end(); it++) {
140 it.value()->setChecked(false);
141 if (it.key() == actionName) {
142 it.value()->setChecked(checked);
143 }
144 }
145}
146
147QStringList NavigationBar::getAllNavigationItemName()
148{

Callers 2

initMainWindowMethod · 0.80

Calls 6

containsMethod · 0.45
setCheckedMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
valueMethod · 0.45
keyMethod · 0.45

Tested by

no test coverage detected