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

Function isFirstEntry

plugins/base/utils/transition-selection.cpp:139–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139static bool isFirstEntry(const QComboBox *l, QString name, int idx)
140{
141 for (auto i = l->count() - 1; i >= 0; i--) {
142 if (l->itemText(i) == name) {
143 return idx == i;
144 }
145 }
146
147 // If entry cannot be found we dont want the selection to be empty
148 return false;
149}
150
151TransitionSelection TransitionSelectionWidget::GetCurrentSelection() const
152{

Callers 2

Calls 1

countMethod · 0.80

Tested by

no test coverage detected