diff options
author | Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com> | 2009-08-19 13:06:15 (GMT) |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com> | 2009-08-19 13:56:09 (GMT) |
commit | 0d9cc367b72d74d709b9a03748db6dd48e126472 (patch) | |
tree | 2cbf41b830c4e14c7454986d49fe2a73b6bb72ad /examples/xml/streambookmarks/mainwindow.cpp | |
parent | 332ca73378043970087f843036d02192e3fef50d (diff) | |
download | Qt-0d9cc367b72d74d709b9a03748db6dd48e126472.zip Qt-0d9cc367b72d74d709b9a03748db6dd48e126472.tar.gz Qt-0d9cc367b72d74d709b9a03748db6dd48e126472.tar.bz2 |
Changed the streambookmarks example to use aggregation
QXmlStreamReader and QXmlStreamWriter can be used conveniently without
subclassing, which the example now demonstrates.
Reviewed-by: mae
Reviewed-by: David Boddie
Diffstat (limited to 'examples/xml/streambookmarks/mainwindow.cpp')
-rw-r--r-- | examples/xml/streambookmarks/mainwindow.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/xml/streambookmarks/mainwindow.cpp b/examples/xml/streambookmarks/mainwindow.cpp index 183143d..5aef327 100644 --- a/examples/xml/streambookmarks/mainwindow.cpp +++ b/examples/xml/streambookmarks/mainwindow.cpp @@ -91,10 +91,8 @@ void MainWindow::open() XbelReader reader(treeWidget); if (!reader.read(&file)) { QMessageBox::warning(this, tr("QXmlStream Bookmarks"), - tr("Parse error in file %1 at line %2, column %3:\n%4") + tr("Parse error in file %1:\n\n%2") .arg(fileName) - .arg(reader.lineNumber()) - .arg(reader.columnNumber()) .arg(reader.errorString())); } else { statusBar()->showMessage(tr("File loaded"), 2000); |