diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-11-26 09:30:15 +0100 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-11-26 18:19:07 +0000 |
| commit | fac5b084a90e96af96283c8d13aa053bce2b809f (patch) | |
| tree | 653d6db3fe04327f829b0f7699f059e7012a505d /src/tools/uic/python/pythonwriteimports.cpp | |
| parent | 271ea6cd3ee8a3df281ce52e2160ad016ea2e86b (diff) | |
uic: Refactor CustomWidgetsInfo::extends() to use QAnyStringView
Task-number: PYSIDE-1720
Pick-to: 6.2
Change-Id: I2db4ee9586a87c70db08298e311d692e20a93af0
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'src/tools/uic/python/pythonwriteimports.cpp')
| -rw-r--r-- | src/tools/uic/python/pythonwriteimports.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tools/uic/python/pythonwriteimports.cpp b/src/tools/uic/python/pythonwriteimports.cpp index afa5c55da72..ec4968da2ff 100644 --- a/src/tools/uic/python/pythonwriteimports.cpp +++ b/src/tools/uic/python/pythonwriteimports.cpp @@ -179,11 +179,11 @@ void WriteImports::writeImport(const QString &module) void WriteImports::doAdd(const QString &className, const DomCustomWidget *dcw) { const CustomWidgetsInfo *cwi = uic()->customWidgetsInfo(); - if (cwi->extends(className, QLatin1String("QListWidget"))) + if (cwi->extends(className, "QListWidget")) add(QStringLiteral("QListWidgetItem")); - else if (cwi->extends(className, QLatin1String("QTreeWidget"))) + else if (cwi->extends(className, "QTreeWidget")) add(QStringLiteral("QTreeWidgetItem")); - else if (cwi->extends(className, QLatin1String("QTableWidget"))) + else if (cwi->extends(className, "QTableWidget")) add(QStringLiteral("QTableWidgetItem")); if (dcw != nullptr) { |
