Skip to content

Commit 6bb7036

Browse files
SafaAlfulaijjustinclift
authored andcommitted
Tweak the filter header RTL code
1 parent ff302c4 commit 6bb7036

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/FilterTableHeader.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include "FilterTableHeader.h"
22
#include "FilterLineEdit.h"
33

4+
#include <QApplication>
45
#include <QTableView>
56
#include <QScrollBar>
67

@@ -76,7 +77,7 @@ void FilterTableHeader::adjustPositions()
7677
{
7778
// Get the current widget, move it and resize it
7879
QWidget* w = filterWidgets.at(i);
79-
if (layoutDirection() == Qt::RightToLeft)
80+
if (QApplication::layoutDirection() == Qt::RightToLeft)
8081
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
8182
else
8283
w->move(sectionPosition(i) - offset(), w->sizeHint().height() + 2); // The two adds some extra space between the header label and the input widget

0 commit comments

Comments
 (0)