forked from qt-creator/qt-creator
QmlDesigner.propertyEditor: avoid warnings
This commit is contained in:
@@ -67,7 +67,7 @@ GroupBox {
|
|||||||
SliderWidget {
|
SliderWidget {
|
||||||
id: scaleSlider;
|
id: scaleSlider;
|
||||||
backendValue: backendValues.scale;
|
backendValue: backendValues.scale;
|
||||||
property var pureValue: backendValues.scale.value;
|
property variant pureValue: backendValues.scale.value;
|
||||||
onPureValueChanged: {
|
onPureValueChanged: {
|
||||||
if (value != pureValue * 100)
|
if (value != pureValue * 100)
|
||||||
value = pureValue * 100;
|
value = pureValue * 100;
|
||||||
|
@@ -52,7 +52,7 @@ GroupBox {
|
|||||||
id: opacitySlider
|
id: opacitySlider
|
||||||
minimum: 0
|
minimum: 0
|
||||||
maximum: 100
|
maximum: 100
|
||||||
property var pureValue: backendValues.opacity.value;
|
property variant pureValue: backendValues.opacity.value;
|
||||||
onPureValueChanged: {
|
onPureValueChanged: {
|
||||||
if (value != pureValue * 100)
|
if (value != pureValue * 100)
|
||||||
value = pureValue * 100;
|
value = pureValue * 100;
|
||||||
|
@@ -245,6 +245,8 @@ void PropertyEditor::NodeType::initialSetup(const QString &typeName, const QUrl
|
|||||||
ctxt->setContextProperty("specificsUrl", QVariant(qmlSpecificsFile));
|
ctxt->setContextProperty("specificsUrl", QVariant(qmlSpecificsFile));
|
||||||
ctxt->setContextProperty("stateName", QVariant(QLatin1String("basestate")));
|
ctxt->setContextProperty("stateName", QVariant(QLatin1String("basestate")));
|
||||||
ctxt->setContextProperty("isBaseState", QVariant(true));
|
ctxt->setContextProperty("isBaseState", QVariant(true));
|
||||||
|
ctxt->setContextProperty("specificQmlData", QVariant(QLatin1String("")));
|
||||||
|
ctxt->setContextProperty("globalBaseUrl", QVariant(QUrl()));
|
||||||
}
|
}
|
||||||
|
|
||||||
PropertyEditor::PropertyEditor(QWidget *parent) :
|
PropertyEditor::PropertyEditor(QWidget *parent) :
|
||||||
|
Reference in New Issue
Block a user