summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorck <qt-info@nokia.com>2010-02-02 16:21:52 +0100
committerck <qt-info@nokia.com>2010-02-02 16:21:52 +0100
commit39233f76647e166961c97b38d16f612076eeb9c3 (patch)
tree8f322bb7a806bc2e138f7636e140ba6ee52eec26 /examples
parent1217df165cfe8447cfafffd52bd8ae60cb7ee8a2 (diff)
Assistant examples: Fix missing QLatin1String.
Diffstat (limited to 'examples')
-rw-r--r--examples/assistant/simpletextviewer/findfiledialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/assistant/simpletextviewer/findfiledialog.cpp b/examples/assistant/simpletextviewer/findfiledialog.cpp
index 0f7bbaef23..1f11f69048 100644
--- a/examples/assistant/simpletextviewer/findfiledialog.cpp
+++ b/examples/assistant/simpletextviewer/findfiledialog.cpp
@@ -102,7 +102,7 @@ void FindFileDialog::openFile(QTreeWidgetItem *item)
if (file.open(QIODevice::ReadOnly)) {
QString data(file.readAll());
- if (fileName.endsWith(".html"))
+ if (fileName.endsWith(QLatin1String(".html")))
currentEditor->setHtml(data);
else
currentEditor->setPlainText(data);