Set the layout direction of the dir tree when setting up the widget.
Don't set the layout direction when setting the starting folder, that might not get set at all. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24190 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
9e16161832
commit
f011fe2b5d
1 changed files with 1 additions and 1 deletions
|
@ -39,6 +39,7 @@ BrowseDirtree::BrowseDirtree(QWidget *parent, const QString &caption) : QDialog(
|
|||
ui.tree->setColumnHidden(2, true);
|
||||
ui.tree->setColumnHidden(3, true);
|
||||
ui.tree->setAlternatingRowColors(true);
|
||||
ui.tree->setLayoutDirection(Qt::LeftToRight);
|
||||
}
|
||||
|
||||
|
||||
|
@ -55,7 +56,6 @@ void BrowseDirtree::setDir(const QDir &dir)
|
|||
ui.tree->expand(p);
|
||||
ui.tree->scrollTo(p);
|
||||
ui.tree->resizeColumnToContents(0);
|
||||
ui.tree->setLayoutDirection(Qt::LeftToRight);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue