MCPcopy Create free account
hub / github.com/Palm1r/QodeAssist / mouseReleaseEvent

Method mouseReleaseEvent

widgets/EditorChatButton.cpp:98–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98void 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
110void EditorChatButton::enterEvent(QEnterEvent *event)
111{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected