MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / tabWidgetOrderValid

Function tabWidgetOrderValid

lib/utils/tab-helpers.cpp:88–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88static bool tabWidgetOrderValid()
89{
90 auto &tabOrder = getTabOrderVector();
91
92 if (tabNames.size() != tabOrder.size()) {
93 return false;
94 }
95
96 auto tmp = std::vector<int>(tabNames.size());
97 std::iota(tmp.begin(), tmp.end(), 0);
98
99 for (auto &p : tmp) {
100 auto it = std::find(tabOrder.begin(), tabOrder.end(), p);
101 if (it == tabOrder.end()) {
102 return false;
103 }
104 }
105 return true;
106}
107
108static void resetTabWidgetOrder()
109{

Callers 3

SaveTabOrderFunction · 0.85
LoadTabOrderFunction · 0.85
SetTabOrderFunction · 0.85

Calls 3

sizeMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected