Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Q
qt-creator
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tobias Hunger
qt-creator
Commits
622e7234
Commit
622e7234
authored
Mar 01, 2010
by
Christiaan Janssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
QmlDesigner.PropertyEditor: changed layout combobox
parent
a2ec8cc9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
6 deletions
+41
-6
share/qtcreator/qmldesigner/propertyeditor/Qt/Layout.qml
share/qtcreator/qmldesigner/propertyeditor/Qt/Layout.qml
+6
-6
share/qtcreator/qmldesigner/propertyeditor/Qt/LayoutComboBox.qml
...tcreator/qmldesigner/propertyeditor/Qt/LayoutComboBox.qml
+35
-0
No files found.
share/qtcreator/qmldesigner/propertyeditor/Qt/Layout.qml
View file @
622e7234
...
...
@@ -44,7 +44,7 @@ GroupBox {
text
:
"
Target
"
fixedWidth
:
targetLabelWidth
}
Sibling
ComboBox
{
Layout
ComboBox
{
itemNode
:
anchorBackend
.
itemNode
selectedItemNode
:
anchorBackend
.
topTarget
onSelectedItemNodeChanged
:
{
anchorBackend
.
topTarget
=
selectedItemNode
;
}
...
...
@@ -92,7 +92,7 @@ GroupBox {
text
:
"
Target
"
fixedWidth
:
targetLabelWidth
}
Sibling
ComboBox
{
Layout
ComboBox
{
itemNode
:
anchorBackend
.
itemNode
selectedItemNode
:
anchorBackend
.
bottomTarget
onSelectedItemNodeChanged
:
{
anchorBackend
.
bottomTarget
=
selectedItemNode
;
}
...
...
@@ -139,7 +139,7 @@ GroupBox {
text
:
"
Target
"
fixedWidth
:
targetLabelWidth
}
Sibling
ComboBox
{
Layout
ComboBox
{
itemNode
:
anchorBackend
.
itemNode
selectedItemNode
:
anchorBackend
.
leftTarget
onSelectedItemNodeChanged
:
{
anchorBackend
.
leftTarget
=
selectedItemNode
;
}
...
...
@@ -185,7 +185,7 @@ GroupBox {
text
:
"
Target
"
fixedWidth
:
targetLabelWidth
}
Sibling
ComboBox
{
Layout
ComboBox
{
itemNode
:
anchorBackend
.
itemNode
selectedItemNode
:
anchorBackend
.
rightTarget
onSelectedItemNodeChanged
:
{
anchorBackend
.
rightTarget
=
selectedItemNode
;
}
...
...
@@ -231,7 +231,7 @@ GroupBox {
text
:
"
Target
"
fixedWidth
:
targetLabelWidth
}
Sibling
ComboBox
{
Layout
ComboBox
{
itemNode
:
anchorBackend
.
itemNode
selectedItemNode
:
anchorBackend
.
horizontalTarget
onSelectedItemNodeChanged
:
{
anchorBackend
.
horizontalTarget
=
selectedItemNode
;
}
...
...
@@ -277,7 +277,7 @@ GroupBox {
text
:
"
Target
"
fixedWidth
:
targetLabelWidth
}
Sibling
ComboBox
{
Layout
ComboBox
{
itemNode
:
anchorBackend
.
itemNode
selectedItemNode
:
anchorBackend
.
verticalTarget
onSelectedItemNodeChanged
:
{
anchorBackend
.
verticalTarget
=
selectedItemNode
;
}
...
...
share/qtcreator/qmldesigner/propertyeditor/Qt/LayoutComboBox.qml
0 → 100644
View file @
622e7234
import
Qt
4.6
import
Bauhaus
1.0
QWidget
{
id
:
layoutComboBox
property
alias
itemNode
:
comboBox
.
itemNode
property
alias
selectedItemNode
:
comboBox
.
selectedItemNode
property
alias
enabled
:
comboBox
.
enabled
property
var
isEnabled
:
comboBox
.
enabled
onIsEnabledChanged
:
{
evaluate
();
}
// special: will only be valid in base state
Script
{
function
evaluate
()
{
if
(
!
enabled
)
{
comboBox
.
setStyleSheet
(
"
color:
"
+
scheme
.
disabledColor
);
}
else
{
comboBox
.
setStyleSheet
(
"
QComboBox,QComboBox:on{color:
"
+
scheme
.
defaultColor
+
"
}QComboBox:off{color:
"
+
scheme
.
optionsColor
+
"
}
"
);
}
}
}
ColorScheme
{
id
:
scheme
;
}
layout
:
HorizontalLayout
{
SiblingComboBox
{
id
:
comboBox
}
}
}
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