forked from qt-creator/qt-creator
QmlDesigner: Fixup compile fix
Use explicit type for local variable to have a consistent
approach. Amends 6469f99
.
Change-Id: I6b7612e1f646e497699e278e4538f9cb4ae37c64
Reviewed-by: Samuel Ghinet <samuel.ghinet@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -1147,12 +1147,12 @@ CreateSceneCommand NodeInstanceView::createCreateSceneCommand()
|
|||||||
if (stateNode.isValid() && stateNode.metaInfo().isSubclassOf("QtQuick.State", 1, 0))
|
if (stateNode.isValid() && stateNode.metaInfo().isSubclassOf("QtQuick.State", 1, 0))
|
||||||
stateInstanceId = stateNode.internalId();
|
stateInstanceId = stateNode.internalId();
|
||||||
|
|
||||||
auto value
|
QVariant value
|
||||||
#ifndef QMLDESIGNER_TEST
|
#ifndef QMLDESIGNER_TEST
|
||||||
= QmlDesigner::DesignerSettings::getValue(
|
= QmlDesigner::DesignerSettings::getValue(
|
||||||
QmlDesigner::DesignerSettingsKey::EDIT3DVIEW_BACKGROUND_COLOR);
|
QmlDesigner::DesignerSettingsKey::EDIT3DVIEW_BACKGROUND_COLOR);
|
||||||
#else
|
#else
|
||||||
= QColor();
|
= {};
|
||||||
#endif
|
#endif
|
||||||
QList<QColor> edit3dBackgroundColor;
|
QList<QColor> edit3dBackgroundColor;
|
||||||
if (value.isValid())
|
if (value.isValid())
|
||||||
|
Reference in New Issue
Block a user