From f7770c60b17108fde8d4b15006a4e8347e85de7b Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Mon, 13 Feb 2017 13:20:07 +0100 Subject: Close tab on mouse release rather than on mouse press Differential Revision: https://phabricator.kde.org/D4501 --- src/dolphintabbar.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/dolphintabbar.h') diff --git a/src/dolphintabbar.h b/src/dolphintabbar.h index 6daa9a1ad..0c08031a9 100644 --- a/src/dolphintabbar.h +++ b/src/dolphintabbar.h @@ -40,6 +40,7 @@ protected: virtual void dragMoveEvent(QDragMoveEvent* event) Q_DECL_OVERRIDE; virtual void dropEvent(QDropEvent* event) Q_DECL_OVERRIDE; virtual void mousePressEvent(QMouseEvent* event) Q_DECL_OVERRIDE; + virtual void mouseReleaseEvent(QMouseEvent* event) Q_DECL_OVERRIDE; virtual void mouseDoubleClickEvent(QMouseEvent* event) Q_DECL_OVERRIDE; /** @@ -60,6 +61,7 @@ private: private: QTimer* m_autoActivationTimer; int m_autoActivationIndex; + int m_tabToBeClosedOnMiddleMouseButtonRelease; }; #endif // DOLPHIN_TAB_BAR_H -- cgit v1.3