From 6bb7036fa46563acb981d360a5bce2a8ce93cb2b Mon Sep 17 00:00:00 2001 From: safaalfulaij Date: Tue, 2 Aug 2016 17:49:51 +0100 Subject: [PATCH] Tweak the filter header RTL code --- src/FilterTableHeader.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/FilterTableHeader.cpp b/src/FilterTableHeader.cpp index 0997733c..0c346653 100644 --- a/src/FilterTableHeader.cpp +++ b/src/FilterTableHeader.cpp @@ -1,6 +1,7 @@ #include "FilterTableHeader.h" #include "FilterLineEdit.h" +#include #include #include @@ -76,7 +77,7 @@ void FilterTableHeader::adjustPositions() { // Get the current widget, move it and resize it QWidget* w = filterWidgets.at(i); - if (layoutDirection() == Qt::RightToLeft) + if (QApplication::layoutDirection() == Qt::RightToLeft) w->move(width() - (sectionPosition(i) + sectionSize(i) - offset()), w->sizeHint().height() + 2); // The two adds some extra space between the header label and the input widget else w->move(sectionPosition(i) - offset(), w->sizeHint().height() + 2); // The two adds some extra space between the header label and the input widget