Changeset View
Changeset View
Standalone View
Standalone View
src/variableeditor/variablelistview.cpp
Show First 20 Lines • Show All 123 Lines • ▼ Show 20 Line(s) | 123 | } else if (m_variables.contains(item->variable())) { | |||
---|---|---|---|---|---|
124 | m_variables.remove(item->variable()); | 124 | m_variables.remove(item->variable()); | ||
125 | } | 125 | } | ||
126 | } | 126 | } | ||
127 | 127 | | |||
128 | QString line; | 128 | QString line; | ||
129 | QMap<QString, QString>::const_iterator it = m_variables.constBegin(); | 129 | QMap<QString, QString>::const_iterator it = m_variables.constBegin(); | ||
130 | while (it != m_variables.constEnd()) { | 130 | while (it != m_variables.constEnd()) { | ||
131 | if (!line.isEmpty()) { | 131 | if (!line.isEmpty()) { | ||
132 | line += QLatin1String(" "); | 132 | line += QLatin1Char(' '); | ||
133 | } | 133 | } | ||
134 | line += it.key() + QLatin1Char(' ') + it.value() + QLatin1Char(';'); | 134 | line += it.key() + QLatin1Char(' ') + it.value() + QLatin1Char(';'); | ||
135 | 135 | | |||
136 | ++it; | 136 | ++it; | ||
137 | } | 137 | } | ||
138 | 138 | | |||
139 | line.prepend(QLatin1String("kate: ")); | 139 | line.prepend(QLatin1String("kate: ")); | ||
140 | 140 | | |||
141 | return line; | 141 | return line; | ||
142 | } | 142 | } |