MCPcopy Create free account
hub / github.com/Liniyous/ElaWidgetTools / getCurrentSelectionIndex

Method getCurrentSelectionIndex

ElaWidgetTools/ElaMultiSelectComboBox.cpp:156–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154 for (const auto& tag: d->_getSelectionTags())
155 {
156 if (tag.index.isValid() && tag.closeRect.contains(event->pos()))
157 {
158 d->_pressedTagIndex = tag.index;
159 setFocus(Qt::MouseFocusReason);
160 event->accept();
161 update();
162 return;
163 }
164 }
165 }
166 if (event->button() == Qt::LeftButton && isEnabled())
167 {
168 d->_isPopupPressed = true;
169 setFocus(Qt::MouseFocusReason);
170 event->accept();

Callers

nothing calls this directly

Calls 1

countMethod · 0.80

Tested by

no test coverage detected