Skip to content
GitLab
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
5658daa1
Commit
5658daa1
authored
Apr 19, 2010
by
Thomas Hartmann
Browse files
QmlDesigner.propertyEditor: fixes Opacity and Scale slider
See: BAUHAUS-590
parent
2bba8353
Changes
2
Hide whitespace changes
Inline
Side-by-side
share/qtcreator/qmldesigner/propertyeditor/Qt/Transformation.qml
View file @
5658daa1
...
...
@@ -67,12 +67,17 @@ GroupBox {
SliderWidget
{
id
:
scaleSlider
;
backendValue
:
backendValues
.
scale
;
value
:
backendValues
.
scale
.
value
*
10
;
property
var
pureValue
:
backendValues
.
scale
.
value
;
onPureValueChanged
:
{
if
(
value
!=
pureValue
*
100
)
value
=
pureValue
*
100
;
}
minimum
:
1
;
maximum
:
100
;
singleStep
:
1
;
onValueChanged
:
{
backendValues
.
scale
.
value
=
value
/
10
;
if
((
value
>
5
)
&&
(
value
<
100
))
backendValues
.
scale
.
value
=
value
/
100
;
}
}
}
...
...
share/qtcreator/qmldesigner/propertyeditor/Qt/Visibility.qml
View file @
5658daa1
...
...
@@ -52,10 +52,15 @@ GroupBox {
id
:
opacitySlider
minimum
:
0
maximum
:
100
value
:
backendValues
.
opacity
.
value
*
100
;
property
var
pureValue
:
backendValues
.
opacity
.
value
;
onPureValueChanged
:
{
if
(
value
!=
pureValue
*
100
)
value
=
pureValue
*
100
;
}
singleStep
:
5
;
backendValue
:
backendValues
.
opacity
onValueChanged
:
{
if
((
value
>=
0
)
&&
(
value
<
100
))
backendValues
.
opacity
.
value
=
value
/
100
;
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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