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
30517ab7
Commit
30517ab7
authored
Mar 25, 2010
by
Thomas Hartmann
Browse files
QmlDesigner.propertyEditor: avoid binding loops
parent
4c0645b4
Changes
2
Hide whitespace changes
Inline
Side-by-side
share/qtcreator/qmldesigner/propertyeditor/Qt/FontComboBox.qml
View file @
30517ab7
...
...
@@ -56,10 +56,16 @@ QWidget {
layout
:
HorizontalLayout
{
QFontComboBox
{
id
:
fontSelector
// currentFont.family:backendValues.font_family.value
// onCurrentFontChanged: if (backendValues.font_family.value != currentFont.family)
// backendValues.font_family.value = currentFont.family;
id
:
fontSelector
currentFont.family
:
backendValue
.
value
property
var
fontFamily
:
currentFont
.
family
onFontFamilyChanged
:
{
if
(
backendValue
===
undefined
)
return
;
if
(
backendValue
.
value
!=
currentFont
.
family
)
backendValue
.
value
=
currentFont
.
family
;
}
}
}
}
share/qtcreator/qmldesigner/propertyeditor/Qt/FontGroupBox.qml
View file @
30517ab7
...
...
@@ -14,13 +14,9 @@ GroupBox {
Label
{
text
:
qsTr
(
"
Font
"
)
}
FontComboBox
{
id
:
fontSelector
currentFont.family
:
backendValues
.
font_family
.
value
onCurrentFontChanged
:
if
(
backendValues
.
font_family
.
value
!=
currentFont
.
family
)
backendValues
.
font_family
.
value
=
currentFont
.
family
;
backendValue
:
backendValues
.
font_family
backendValue
:
backendValues
.
font_family
baseStateFlag
:
isBaseState
}
}
...
...
@@ -66,11 +62,11 @@ GroupBox {
ComboBox
{
baseStateFlag
:
isBaseState
backendValue
:
backendValues
.
style
backendValue
:
(
backendValues
.
style
===
undefined
)
?
dummyBackendValue
:
backendValues
.
style
items
:
{
[
"
Normal
"
,
"
Outline
"
,
"
Raised
"
,
"
Sunken
"
]
}
currentText
:
backendValue
s
.
style
.
value
;
currentText
:
backendValue
.
value
;
onItemsChanged
:
{
currentText
=
backendValue
s
.
style
.
value
;
currentText
=
backendValue
.
value
;
}
}
}
...
...
Write
Preview
Markdown
is supported
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