diff options
author | Antoine Cellerier <dionoea@videolan.org> | 2007-09-14 20:22:53 +0000 |
---|---|---|
committer | Antoine Cellerier <dionoea@videolan.org> | 2007-09-14 20:22:53 +0000 |
commit | 974eb5deaf2147ab05a923b6d62c8cd61012a9a2 (patch) | |
tree | 3396fee7e358a50996838e9b7ddbba3569893256 /rbutil/rbutilqt/browsedirtree.cpp | |
parent | 4c881e2c91891fede75663db3fd005438bb7d001 (diff) |
Make it possible to change the BrowseDirtree caption (and do so for the device selection dialog).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14695 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/browsedirtree.cpp')
-rw-r--r-- | rbutil/rbutilqt/browsedirtree.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/rbutil/rbutilqt/browsedirtree.cpp b/rbutil/rbutilqt/browsedirtree.cpp index 59c4cef9f4..c2441f27cd 100644 --- a/rbutil/rbutilqt/browsedirtree.cpp +++ b/rbutil/rbutilqt/browsedirtree.cpp @@ -23,7 +23,7 @@ #include "ui_browsedirtreefrm.h" -BrowseDirtree::BrowseDirtree(QWidget *parent) : QDialog(parent) +BrowseDirtree::BrowseDirtree(QWidget *parent, const QString &caption) : QDialog(parent) { ui.setupUi(this); this->setModal(true); @@ -31,6 +31,9 @@ BrowseDirtree::BrowseDirtree(QWidget *parent) : QDialog(parent) model.setReadOnly(true); model.setSorting(QDir::Name | QDir::DirsFirst | QDir::IgnoreCase); + if(caption!="") + setWindowTitle(caption); + // disable size / date / type columns ui.tree->setColumnHidden(1, true); ui.tree->setColumnHidden(2, true); |