ComboTabBar: Disable tab drag bounds with RTL

remotes/origin/Falkon/3.0
David Rosca 8 years ago
parent 977b45505c
commit c506283534
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8
  1. 4
      src/lib/tabwidget/combotabbar.cpp

@ -1442,6 +1442,10 @@ void TabBarHelper::mouseMoveEvent(QMouseEvent *event)
// Don't allow to move tabs outside of tabbar // Don't allow to move tabs outside of tabbar
if (m_dragInProgress && m_movingTab) { if (m_dragInProgress && m_movingTab) {
// FIXME: This doesn't work at all with RTL...
if (isRightToLeft()) {
return;
}
QRect r = tabRect(m_pressedIndex); QRect r = tabRect(m_pressedIndex);
r.moveLeft(r.x() + (event->pos().x() - m_dragStartPosition.x())); r.moveLeft(r.x() + (event->pos().x() - m_dragStartPosition.x()));
bool sendEvent = false; bool sendEvent = false;

Loading…
Cancel
Save