QmlDesigner.propertyEditor: avoid warnings

This commit is contained in:
Thomas Hartmann
2010-04-19 16:06:06 +02:00
parent 524f998caf
commit af0304ca8e
3 changed files with 4 additions and 2 deletions

View File

@@ -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;

View File

@@ -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;

View File

@@ -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) :