| 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(); |