summaryrefslogtreecommitdiffstats
path: root/rbutil
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2010-01-05 22:39:05 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2010-01-05 22:39:05 +0000
commitf011fe2b5dfb21f6ec06c46eb979f3166a700e54 (patch)
tree9ed78a171272d41823f83f523553e87de12e91ba /rbutil
parent9e1616183230aa37093cfd805ceb9ff3ebea5984 (diff)
downloadrockbox-f011fe2b5dfb21f6ec06c46eb979f3166a700e54.tar.gz
rockbox-f011fe2b5dfb21f6ec06c46eb979f3166a700e54.tar.bz2
rockbox-f011fe2b5dfb21f6ec06c46eb979f3166a700e54.zip
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
Diffstat (limited to 'rbutil')
-rw-r--r--rbutil/rbutilqt/browsedirtree.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/rbutil/rbutilqt/browsedirtree.cpp b/rbutil/rbutilqt/browsedirtree.cpp
index dd05ab7f70..6c7beb9aa9 100644
--- a/rbutil/rbutilqt/browsedirtree.cpp
+++ b/rbutil/rbutilqt/browsedirtree.cpp
@@ -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);
}
}