| 96 | } |
| 97 | |
| 98 | void EditorChatButton::mouseReleaseEvent(QMouseEvent *event) |
| 99 | { |
| 100 | if (event->button() == Qt::LeftButton && m_isPressed) { |
| 101 | m_isPressed = false; |
| 102 | update(); |
| 103 | if (rect().contains(event->pos())) { |
| 104 | emit clicked(); |
| 105 | } |
| 106 | } |
| 107 | QWidget::mouseReleaseEvent(event); |
| 108 | } |
| 109 | |
| 110 | void EditorChatButton::enterEvent(QEnterEvent *event) |
| 111 | { |
nothing calls this directly
no outgoing calls
no test coverage detected