- m_longPressDetectionTimer = new QTimer(this);
- m_longPressDetectionTimer->setSingleShot(true);
- m_longPressDetectionTimer->setInterval(QGuiApplication::styleHints()->mousePressAndHoldInterval());
- connect(m_longPressDetectionTimer, &QTimer::timeout, this, [this]() {
- if (!m_selectionMode) {
- Q_EMIT selectionModeChangeRequested(true);
- }
- });
-