summaryrefslogtreecommitdiffstats
path: root/examples/xmlpatterns/filetree
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-09-01 15:25:00 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-09-01 15:27:14 (GMT)
commit8bc0dce2c74c28acd36daa73e84f7c9d79760e4a (patch)
tree30e71af7768f3a4718459ea0acadb2c94790999b /examples/xmlpatterns/filetree
parentabcfda3554ef2d1c1ab994a5215a9aa6b107c64a (diff)
downloadQt-8bc0dce2c74c28acd36daa73e84f7c9d79760e4a.zip
Qt-8bc0dce2c74c28acd36daa73e84f7c9d79760e4a.tar.gz
Qt-8bc0dce2c74c28acd36daa73e84f7c9d79760e4a.tar.bz2
QString usage cleanups
- tr() already returns a QString, duh - use multi-arg arg() (heh)
Diffstat (limited to 'examples/xmlpatterns/filetree')
-rw-r--r--examples/xmlpatterns/filetree/mainwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/xmlpatterns/filetree/mainwindow.cpp b/examples/xmlpatterns/filetree/mainwindow.cpp
index 5b9b0c3..85348f3 100644
--- a/examples/xmlpatterns/filetree/mainwindow.cpp
+++ b/examples/xmlpatterns/filetree/mainwindow.cpp
@@ -140,7 +140,7 @@ void MainWindow::loadDirectory(const QString &directory)
QXmlFormatter formatter(query, &buffer);
query.evaluateTo(&formatter);
- treeInfo->setText((QString(tr("Model of %1 output as XML.")).arg(directory)));
+ treeInfo->setText(tr("Model of %1 output as XML.").arg(directory));
fileTree->setText(QString::fromLatin1(output.constData()));
evaluateResult();
//! [6]