diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/desktop/screenshot/screenshot.cpp | 2 | ||||
-rw-r--r-- | examples/dialogs/classwizard/classwizard.cpp | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/examples/desktop/screenshot/screenshot.cpp b/examples/desktop/screenshot/screenshot.cpp index 66467d439f..c9310c9e2f 100644 --- a/examples/desktop/screenshot/screenshot.cpp +++ b/examples/desktop/screenshot/screenshot.cpp @@ -102,7 +102,7 @@ void Screenshot::saveScreenshot() .arg(format.toUpper()) .arg(format)); if (!fileName.isEmpty()) - originalPixmap.save(fileName, format.toAscii().constData()); + originalPixmap.save(fileName, format.toLatin1().constData()); } //! [3] diff --git a/examples/dialogs/classwizard/classwizard.cpp b/examples/dialogs/classwizard/classwizard.cpp index 211a76488d..eeb1fab55b 100644 --- a/examples/dialogs/classwizard/classwizard.cpp +++ b/examples/dialogs/classwizard/classwizard.cpp @@ -79,7 +79,7 @@ void ClassWizard::accept() if (field("comment").toBool()) { block += "/*\n"; - block += " " + header.toAscii() + "\n"; + block += " " + header.toLatin1() + "\n"; block += "*/\n"; block += "\n"; } @@ -141,11 +141,11 @@ void ClassWizard::accept() if (field("comment").toBool()) { block += "/*\n"; - block += " " + implementation.toAscii() + "\n"; + block += " " + implementation.toLatin1() + "\n"; block += "*/\n"; block += "\n"; } - block += "#include \"" + header.toAscii() + "\"\n"; + block += "#include \"" + header.toLatin1() + "\"\n"; block += "\n"; if (field("qobjectCtor").toBool()) { |