Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
967f0e94
Commit
967f0e94
authored
Apr 09, 2017
by
DonLakeFlyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix binding loops
parent
b8c17cdb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
23 deletions
+18
-23
MissionItemIndexLabel.qml
src/QmlControls/MissionItemIndexLabel.qml
+18
-23
No files found.
src/QmlControls/MissionItemIndexLabel.qml
View file @
967f0e94
import
QtQuick
2.3
import
QtQuick
2.3
import
QtQuick
.
Controls
1.2
import
QtQuick
.
Controls
1.2
import
QtQuick
.
Controls
.
Styles
1.4
import
QGroundControl
.
ScreenTools
1.0
import
QGroundControl
.
ScreenTools
1.0
import
QGroundControl
.
Palette
1.0
import
QGroundControl
.
Palette
1.0
...
@@ -68,32 +67,28 @@ Canvas {
...
@@ -68,32 +67,28 @@ Canvas {
}
}
Rectangle
{
Rectangle
{
id
:
labelControl
id
:
labelControl
anchors.leftMargin
:
-
_labelMargin
anchors.leftMargin
:
-
((
_labelMargin
*
2
)
+
indicator
.
width
)
anchors.topMargin
:
-
_labelMargin
anchors.rightMargin
:
-
(
_labelMargin
*
2
)
anchors.left
:
indicator
.
left
anchors.fill
:
labelControlLabel
anchors.top
:
indicator
.
top
color
:
"
white
"
height
:
_labelRadius
*
2
opacity
:
0.5
width
:
labelControlLabel
.
contentWidth
+
(
_labelMargin
*
3
)
+
indicator
.
width
radius
:
_labelRadius
color
:
"
white
"
visible
:
_label
.
length
!==
0
opacity
:
0.5
radius
:
_labelRadius
visible
:
_label
.
length
!==
0
}
}
QGCLabel
{
QGCLabel
{
id
:
labelControlLabel
id
:
labelControlLabel
anchors.leftMargin
:
indicator
.
width
+
_labelMargin
anchors.topMargin
:
-
_labelMargin
anchors.left
:
labelControl
.
left
anchors.bottomMargin
:
-
_labelMargin
anchors.rightMargin
:
_labelMargin
anchors.leftMargin
:
_labelMargin
anchors.right
:
labelControl
.
right
anchors.left
:
indicator
.
right
anchors.top
:
labelControl
.
top
anchors.top
:
indicator
.
top
anchors.bottom
:
labelControl
.
bottom
anchors.bottom
:
indicator
.
bottom
verticalAlignment
:
Text
.
AlignVCenter
color
:
"
white
"
color
:
"
white
"
font.pointSize
:
ScreenTools
.
defaultFontPointSize
fontSizeMode
:
Text
.
HorizontalFit
text
:
_label
text
:
_label
verticalAlignment
:
Text
.
AlignVCenter
visible
:
labelControl
.
visible
}
}
Rectangle
{
Rectangle
{
...
...
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