From 974eb5deaf2147ab05a923b6d62c8cd61012a9a2 Mon Sep 17 00:00:00 2001 From: Antoine Cellerier Date: Fri, 14 Sep 2007 20:22:53 +0000 Subject: 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 --- rbutil/rbutilqt/browsedirtree.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'rbutil/rbutilqt/browsedirtree.cpp') 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); -- cgit v1.2.3