Skip to content

Commit

Permalink
Merge integration refs/builds/qtci/dev/1618592683
Browse files Browse the repository at this point in the history
  • Loading branch information
Qt CI Bot committed Apr 16, 2021
2 parents 5839dee + b9d0fd3 commit 09d99a8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/widgets/widgets/imageviewer/imageviewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ bool ImageViewer::saveFile(const QString &fileName)
if (!writer.write(image)) {
QMessageBox::information(this, QGuiApplication::applicationDisplayName(),
tr("Cannot write %1: %2")
.arg(QDir::toNativeSeparators(fileName)), writer.errorString());
.arg(QDir::toNativeSeparators(fileName), writer.errorString()));
return false;
}
const QString message = tr("Wrote \"%1\"").arg(QDir::toNativeSeparators(fileName));
Expand Down
2 changes: 1 addition & 1 deletion src/corelib/kernel/qmetatype.h
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ class Q_CORE_EXPORT QMetaType {

bool isValid() const;
bool isRegistered() const;
#if defined(QT_QMETATYPE_BC_COMPAT)
#if defined(QT_QMETATYPE_BC_COMPAT) || defined(Q_QDOC)
int id() const;
#else
// ### Qt 7: Remove traces of out of line version
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ void tst_QCborStreamWriter::nonAsciiStrings_data()
QTest::addColumn<QString>("input");
QTest::addColumn<bool>("isLatin1");

QByteArray latin1 = u8"Résumé";
QByteArray latin1 = "Résumé";
QTest::newRow("shortlatin1")
<< ("\x68" + latin1) << QString::fromUtf8(latin1) << true;

Expand All @@ -202,7 +202,7 @@ void tst_QCborStreamWriter::nonAsciiStrings_data()
QTest::newRow("longlatin1")
<< ("\x78\x28" + latin1) << QString::fromUtf8(latin1) << true;

QByteArray nonlatin1 = u8"Χαίρετε";
QByteArray nonlatin1 = "Χαίρετε";
QTest::newRow("shortnonlatin1")
<< ("\x6e" + nonlatin1) << QString::fromUtf8(nonlatin1) << false;

Expand Down

0 comments on commit 09d99a8

Please sign in to comment.