mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 02:50:46 -06:00
Fix Filter Input in RTL Locales
This commit is contained in:
@@ -76,7 +76,10 @@ void FilterTableHeader::adjustPositions()
|
||||
{
|
||||
// Get the current widget, move it and resize it
|
||||
QWidget* w = filterWidgets.at(i);
|
||||
w->move(sectionPosition(i) - offset(), w->sizeHint().height() + 2); // The two adds some extra space between the header label and the input widget
|
||||
if (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
|
||||
w->resize(sectionSize(i), w->sizeHint().height());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user