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:
Dominik Riebeling 2010-01-05 22:39:05 +00:00
parent 9e16161832
commit f011fe2b5d

View file

@ -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);
}
}