forked from qt-creator/qt-creator
CppEditor: Fix compile with Qt5.14
Amends ef30831213
.
Change-Id: I3c8a962c558114bd64e8e07d7212e4f14ecffa90
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -92,8 +92,11 @@ void CppCodeStylePreferences::slotCurrentValueChanged(const QVariant &value)
|
|||||||
QVariantMap CppCodeStylePreferences::toMap() const
|
QVariantMap CppCodeStylePreferences::toMap() const
|
||||||
{
|
{
|
||||||
QVariantMap map = ICodeStylePreferences::toMap();
|
QVariantMap map = ICodeStylePreferences::toMap();
|
||||||
if (!currentDelegate())
|
if (!currentDelegate()) {
|
||||||
map.insert(m_data.toMap());
|
const QVariantMap dataMap = m_data.toMap();
|
||||||
|
for (auto it = dataMap.begin(), end = dataMap.end(); it != end; ++it)
|
||||||
|
map.insert(it.key(), it.value());
|
||||||
|
}
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user