diff options
| author | Méven Car <[email protected]> | 2026-05-10 11:24:32 +0200 |
|---|---|---|
| committer | Méven Car <[email protected]> | 2026-05-10 19:25:26 +0200 |
| commit | 98c7ec7e20cfec6b4b55eaf3f06e3350710aab2d (patch) | |
| tree | e0c580c69c472a28777eede534fce575d37c1578 /src/dolphintabbar.h | |
| parent | d052906e2d3d865fca242ce3fff7cefb779f0845 (diff) | |
dolphintabbar: remove tabClosedRequested handling for middle click
Qt 6.11 added its own middle click tab closing.
Diffstat (limited to 'src/dolphintabbar.h')
| -rw-r--r-- | src/dolphintabbar.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/dolphintabbar.h b/src/dolphintabbar.h index 54eeea774..1bc8c6ff2 100644 --- a/src/dolphintabbar.h +++ b/src/dolphintabbar.h @@ -30,10 +30,13 @@ protected: void dragLeaveEvent(QDragLeaveEvent *event) override; void dragMoveEvent(QDragMoveEvent *event) override; void dropEvent(QDropEvent *event) override; - void mousePressEvent(QMouseEvent *event) override; - void mouseReleaseEvent(QMouseEvent *event) override; void mouseDoubleClickEvent(QMouseEvent *event) override; +#if QT_VERSION < QT_VERSION_CHECK(6, 11, 0) + void mouseReleaseEvent(QMouseEvent *event) override; + void mousePressEvent(QMouseEvent *event) override; +#endif + /** * Opens a context menu for the tab on the \a event position. */ @@ -53,7 +56,9 @@ private: private: QTimer *m_autoActivationTimer; int m_autoActivationIndex; - int m_tabToBeClosedOnMiddleMouseButtonRelease; +#if QT_VERSION < QT_VERSION_CHECK(6, 11, 0) + int m_tabToBeClosedOnMiddleMouseButtonRelease = -1; +#endif }; #endif // DOLPHIN_TAB_BAR_H |
