diff options
Diffstat (limited to 'src/tools/uic/python/pythonwriteimports.cpp')
| -rw-r--r-- | src/tools/uic/python/pythonwriteimports.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/uic/python/pythonwriteimports.cpp b/src/tools/uic/python/pythonwriteimports.cpp index 0d295b483d5..cceb0693143 100644 --- a/src/tools/uic/python/pythonwriteimports.cpp +++ b/src/tools/uic/python/pythonwriteimports.cpp @@ -81,7 +81,7 @@ static WriteImports::ClassesPerModule defaultClasses() // module name "foo_rc" according to project conventions. static QString pythonResource(QString resource) { - const int lastSlash = resource.lastIndexOf(QLatin1Char('/')); + const qsizetype lastSlash = resource.lastIndexOf(u'/'); if (lastSlash != -1) resource.remove(0, lastSlash + 1); if (resource.endsWith(QLatin1String(".qrc"))) { @@ -223,7 +223,7 @@ void WriteImports::addPythonCustomWidget(const QString &className, const DomCust } else { // When we do have elementHeader, we know it's a relative import. QString modulePath = node->elementHeader()->text(); // Replace the '/' by '.' - modulePath.replace(QLatin1Char('/'), QLatin1Char('.')); + modulePath.replace(u'/', u'.'); // '.h' is added by default on headers for <customwidget> if (modulePath.endsWith(QLatin1String(".h"))) modulePath.chop(2); |
