MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / mousePressEvent

Method mousePressEvent

app/src/Platform/CSD.cpp:647–659  ·  view source on GitHub ↗

* @brief Handles mouse press events. */

Source from the content-addressed store, hash-verified

645 * @brief Handles mouse press events.
646 */
647void Titlebar::mousePressEvent(QMouseEvent* event)
648{
649 m_pressedButton = buttonAt(event->position());
650
651 if (m_pressedButton != Button::None) {
652 update();
653 event->accept();
654 return;
655 }
656
657 m_dragging = true;
658 event->accept();
659}
660
661/**
662 * @brief Handles mouse release events.

Callers

nothing calls this directly

Calls 2

updateFunction · 0.85
acceptMethod · 0.80

Tested by

no test coverage detected