summaryrefslogtreecommitdiff
path: root/src/designer/src/components/propertyeditor/propertyeditor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/designer/src/components/propertyeditor/propertyeditor.cpp')
-rw-r--r--src/designer/src/components/propertyeditor/propertyeditor.cpp10
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());