From c506283534c828fa01e82405acfe2cc0de76b5e2 Mon Sep 17 00:00:00 2001 From: David Rosca Date: Tue, 6 Feb 2018 16:56:11 +0100 Subject: [PATCH] ComboTabBar: Disable tab drag bounds with RTL --- src/lib/tabwidget/combotabbar.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/tabwidget/combotabbar.cpp b/src/lib/tabwidget/combotabbar.cpp index ccea1e257..fc4404ab2 100644 --- a/src/lib/tabwidget/combotabbar.cpp +++ b/src/lib/tabwidget/combotabbar.cpp @@ -1442,6 +1442,10 @@ void TabBarHelper::mouseMoveEvent(QMouseEvent *event) // Don't allow to move tabs outside of tabbar if (m_dragInProgress && m_movingTab) { + // FIXME: This doesn't work at all with RTL... + if (isRightToLeft()) { + return; + } QRect r = tabRect(m_pressedIndex); r.moveLeft(r.x() + (event->pos().x() - m_dragStartPosition.x())); bool sendEvent = false;