Image viewer example: Fix broken error message formatting.
Task-number: QTBUG-48851 Change-Id: Ie86bcc498c9dc1f9754192a256a28fa467f6dbc9 Reviewed-by: Shawn Rutledge <shawn.rutledge@theqtcompany.com>
This commit is contained in:
parent
037ba8d7af
commit
6ea67f52da
@ -76,7 +76,7 @@ bool ImageViewer::loadFile(const QString &fileName)
|
|||||||
if (newImage.isNull()) {
|
if (newImage.isNull()) {
|
||||||
QMessageBox::information(this, QGuiApplication::applicationDisplayName(),
|
QMessageBox::information(this, QGuiApplication::applicationDisplayName(),
|
||||||
tr("Cannot load %1: %2")
|
tr("Cannot load %1: %2")
|
||||||
.arg(QDir::toNativeSeparators(fileName)), reader.errorString());
|
.arg(QDir::toNativeSeparators(fileName), reader.errorString()));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
//! [2]
|
//! [2]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user