forked from qt-creator/qt-creator
Use Utils::Storage instead of QVariantMap in a few places
Change-Id: I02833cf2bc3caaadc22ff93ae530e4aebe4c3868 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
@@ -70,12 +70,12 @@ void QmlMainFileAspect::addToLayout(Layouting::LayoutItem &parent)
|
||||
parent.addItems({Tr::tr("Main QML file:"), m_fileListCombo.data()});
|
||||
}
|
||||
|
||||
void QmlMainFileAspect::toMap(QVariantMap &map) const
|
||||
void QmlMainFileAspect::toMap(Storage &map) const
|
||||
{
|
||||
map.insert(Constants::QML_MAINSCRIPT_KEY, m_scriptFile);
|
||||
}
|
||||
|
||||
void QmlMainFileAspect::fromMap(const QVariantMap &map)
|
||||
void QmlMainFileAspect::fromMap(const Storage &map)
|
||||
{
|
||||
m_scriptFile = map.value(Constants::QML_MAINSCRIPT_KEY, M_CURRENT_FILE).toString();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user