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