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
4f0b6a30
Commit
4f0b6a30
authored
Apr 23, 2010
by
Thomas Hartmann
Browse files
QmlDesigner.propertyEditor: allowing editing of margins in states
See Bauhaus-598
parent
87a09deb
Changes
2
Hide whitespace changes
Inline
Side-by-side
share/qtcreator/qmldesigner/propertyeditor/Qt/Layout.qml
View file @
4f0b6a30
...
...
@@ -8,6 +8,8 @@ GroupBox {
id
:
layout
;
enabled
:
anchorBackend
.
hasParent
;
property
bool
isInBaseState
:
isBaseState
property
variant
targetLabelWidth
:
90
-
20
-
26
property
int
leftMarginMargin
:
16
...
...
@@ -24,6 +26,7 @@ GroupBox {
AnchorButtons
{
//opacity: enabled?1.0:0.5;
enabled
:
isInBaseState
fixedWidth
:
266
}
}
...
...
@@ -50,6 +53,7 @@ GroupBox {
fixedWidth
:
targetLabelWidth
}
SiblingComboBox
{
enabled
:
isInBaseState
itemNode
:
anchorBackend
.
itemNode
selectedItemNode
:
anchorBackend
.
topTarget
onSelectedItemNodeChanged
:
{
anchorBackend
.
topTarget
=
selectedItemNode
;
}
...
...
@@ -66,7 +70,7 @@ GroupBox {
slider
:
false
caption
:
qsTr
(
"
Margin
"
)
backendValue
:
backendValues
.
anchors_topMargin
baseStateFlag
:
isBaseState
;
baseStateFlag
:
is
In
BaseState
;
maximumValue
:
1000
minimumValue
:
-
1000
}
...
...
@@ -99,6 +103,7 @@ GroupBox {
fixedWidth
:
targetLabelWidth
}
SiblingComboBox
{
enabled
:
isInBaseState
itemNode
:
anchorBackend
.
itemNode
selectedItemNode
:
anchorBackend
.
bottomTarget
onSelectedItemNodeChanged
:
{
anchorBackend
.
bottomTarget
=
selectedItemNode
;
}
...
...
@@ -114,7 +119,7 @@ GroupBox {
slider
:
false
caption
:
qsTr
(
"
Margin
"
)
backendValue
:
backendValues
.
anchors_bottomMargin
baseStateFlag
:
isBaseState
;
baseStateFlag
:
is
In
BaseState
;
maximumValue
:
1000
minimumValue
:
-
1000
}
...
...
@@ -147,6 +152,7 @@ GroupBox {
fixedWidth
:
targetLabelWidth
}
SiblingComboBox
{
enabled
:
isInBaseState
itemNode
:
anchorBackend
.
itemNode
selectedItemNode
:
anchorBackend
.
leftTarget
onSelectedItemNodeChanged
:
{
anchorBackend
.
leftTarget
=
selectedItemNode
;
}
...
...
@@ -161,7 +167,7 @@ GroupBox {
slider
:
false
caption
:
qsTr
(
"
Margin
"
)
backendValue
:
backendValues
.
anchors_leftMargin
baseStateFlag
:
isBaseState
;
baseStateFlag
:
is
In
BaseState
;
maximumValue
:
1000
minimumValue
:
-
1000
}
...
...
@@ -194,6 +200,7 @@ GroupBox {
fixedWidth
:
targetLabelWidth
}
SiblingComboBox
{
enabled
:
isInBaseState
itemNode
:
anchorBackend
.
itemNode
selectedItemNode
:
anchorBackend
.
rightTarget
onSelectedItemNodeChanged
:
{
anchorBackend
.
rightTarget
=
selectedItemNode
;
}
...
...
@@ -208,7 +215,7 @@ GroupBox {
slider
:
false
caption
:
qsTr
(
"
Margin
"
)
backendValue
:
backendValues
.
anchors_rightMargin
baseStateFlag
:
isBaseState
;
baseStateFlag
:
is
In
BaseState
;
maximumValue
:
1000
minimumValue
:
-
1000
}
...
...
@@ -241,6 +248,7 @@ GroupBox {
fixedWidth
:
targetLabelWidth
}
SiblingComboBox
{
enabled
:
isInBaseState
itemNode
:
anchorBackend
.
itemNode
selectedItemNode
:
anchorBackend
.
horizontalTarget
onSelectedItemNodeChanged
:
{
anchorBackend
.
horizontalTarget
=
selectedItemNode
;
}
...
...
@@ -254,7 +262,7 @@ GroupBox {
IntEditor
{
slider
:
false
caption
:
qsTr
(
"
Margin
"
)
baseStateFlag
:
isBaseState
;
baseStateFlag
:
is
In
BaseState
;
backendValue
:
backendValues
.
anchors_horizontalCenterOffset
maximumValue
:
1000
minimumValue
:
-
1000
...
...
@@ -288,6 +296,7 @@ GroupBox {
fixedWidth
:
targetLabelWidth
}
SiblingComboBox
{
enabled
:
isInBaseState
itemNode
:
anchorBackend
.
itemNode
selectedItemNode
:
anchorBackend
.
verticalTarget
onSelectedItemNodeChanged
:
{
anchorBackend
.
verticalTarget
=
selectedItemNode
;
}
...
...
@@ -302,7 +311,7 @@ GroupBox {
slider
:
false
caption
:
qsTr
(
"
Margin
"
)
backendValue
:
backendValues
.
anchors_verticalCenterOffset
baseStateFlag
:
isBaseState
;
baseStateFlag
:
is
In
BaseState
;
maximumValue
:
1000
minimumValue
:
-
1000
}
...
...
share/qtcreator/qmldesigner/propertyeditor/Qt/LayoutPane.qml
View file @
4f0b6a30
...
...
@@ -20,8 +20,7 @@ QScrollArea {
Geometry
{
}
Layout
{
enabled
:
isBaseState
Layout
{
id
:
layoutBox
;
}
QScrollArea
{
...
...
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