summaryrefslogtreecommitdiff
path: root/examples/xmlpatterns
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-09-01 17:25:00 +0200
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-09-01 17:27:14 +0200
commit8bc0dce2c74c28acd36daa73e84f7c9d79760e4a (patch)
tree30e71af7768f3a4718459ea0acadb2c94790999b /examples/xmlpatterns
parentabcfda3554ef2d1c1ab994a5215a9aa6b107c64a (diff)
downloadqt4-tools-8bc0dce2c74c28acd36daa73e84f7c9d79760e4a.tar.gz
QString usage cleanups
- tr() already returns a QString, duh - use multi-arg arg() (heh)
Diffstat (limited to 'examples/xmlpatterns')
-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 5b9b0c3ff0..85348f3e11 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]