Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
337a6564
Commit
337a6564
authored
Feb 22, 2010
by
Thomas Hartmann
Browse files
QmlDesigner.propertyEditor: avoiding binding loops in IntEditor.qml
parent
0ebb52ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
share/qtcreator/qmldesigner/propertyeditor/Qt/IntEditor.qml
View file @
337a6564
...
...
@@ -25,12 +25,18 @@ QWidget {
backendValue
:
(
intEditor
.
backendValue
===
undefined
||
intEditor
.
backendValue
===
null
)
?
null
:
intEditor
.
backendValue
;
property
var
backendValueValue
:
(
intEditor
.
backendValue
===
undefined
||
intEditor
.
backendValue
===
null
)
?
null
:
intEditor
.
backendValue
.
value
;
onBackendValueValueChanged
:
{
intSlider
.
value
=
intEditor
.
backendValue
.
value
;
}
minimum
:
minimumValue
maximum
:
maximumValue
baseStateFlag
:
(
intEditor
.
backendValue
===
undefined
||
intEditor
.
backendValue
===
null
)
?
null
:
intEditor
.
baseStateFlag
;
baseStateFlag
:
intEditor
.
baseStateFlag
}
...
...
@@ -38,6 +44,7 @@ QWidget {
visible
:
intEditor
.
slider
id
:
sliderWidget
QSlider
{
id
:
intSlider
y
:
sliderWidget
.
height
/
2
-
12
width
:
sliderWidget
.
width
height
:
24
...
...
@@ -46,15 +53,14 @@ QWidget {
minimum
:
minimumValue
maximum
:
maximumValue
singleStep
:
step
value
:
(
backendValue
==
undefined
||
backendValue
==
null
||
backendValue
.
value
==
undefined
||
backendValue
.
value
==
null
)
?
0
:
backendValue
.
value
onValueChanged
:
{
if
(
backendValue
!=
undefined
&&
backendValue
!=
null
)
backendValue
.
value
=
value
;
}
onSliderPressed
:
{
backendValue
.
lock
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment