diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2023-03-21 15:35:44 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2023-04-21 17:18:09 +0200 |
commit | 00ff2b06a17e90921d79831a62e95eecf8c6954a (patch) | |
tree | 40877b8e595eda601252c995f57d1dd3166c8cd3 /src/designer/src/components/propertyeditor/propertyeditor.cpp | |
parent | 6b7f6990aa1abed20c260a2eb2869f39ce59f8f7 (diff) | |
download | qttools-00ff2b06a17e90921d79831a62e95eecf8c6954a.tar.gz |
Qt Designer: Replace QLatin1Char by modern literals
Pick-to: 6.5
Change-Id: Ied11784e840d03542a5db281590729838ed625c3
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'src/designer/src/components/propertyeditor/propertyeditor.cpp')
-rw-r--r-- | src/designer/src/components/propertyeditor/propertyeditor.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/designer/src/components/propertyeditor/propertyeditor.cpp b/src/designer/src/components/propertyeditor/propertyeditor.cpp index c7bfd2861..294357196 100644 --- a/src/designer/src/components/propertyeditor/propertyeditor.cpp +++ b/src/designer/src/components/propertyeditor/propertyeditor.cpp @@ -407,16 +407,13 @@ bool PropertyEditor::isItemVisible(QtBrowserItem *item) const void PropertyEditor::storePropertiesExpansionState(const QList<QtBrowserItem *> &items) { - const QChar bar = QLatin1Char('|'); for (QtBrowserItem *propertyItem : items) { if (!propertyItem->children().isEmpty()) { QtProperty *property = propertyItem->property(); const QString propertyName = property->propertyName(); const QMap<QtProperty *, QString>::const_iterator itGroup = m_propertyToGroup.constFind(property); if (itGroup != m_propertyToGroup.constEnd()) { - QString key = itGroup.value(); - key += bar; - key += propertyName; + const QString key = itGroup.value() + u'|' + propertyName; m_expansionState[key] = isExpanded(propertyItem); } } @@ -450,16 +447,13 @@ void PropertyEditor::collapseAll() void PropertyEditor::applyPropertiesExpansionState(const QList<QtBrowserItem *> &items) { - const QChar bar = QLatin1Char('|'); for (QtBrowserItem *propertyItem : items) { const QMap<QString, bool>::const_iterator excend = m_expansionState.constEnd(); QtProperty *property = propertyItem->property(); const QString propertyName = property->propertyName(); const QMap<QtProperty *, QString>::const_iterator itGroup = m_propertyToGroup.constFind(property); if (itGroup != m_propertyToGroup.constEnd()) { - QString key = itGroup.value(); - key += bar; - key += propertyName; + const QString key = itGroup.value() + u'|' + propertyName; const QMap<QString, bool>::const_iterator pit = m_expansionState.constFind(key); if (pit != excend) setExpanded(propertyItem, pit.value()); |