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
a4248679
Commit
a4248679
authored
Apr 09, 2017
by
Don Gagne
Committed by
GitHub
Apr 09, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4952 from DonLakeFlyer/Binding
Fix binding loops in MissionItemIndexLabel
parents
b8c17cdb
967f0e94
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 @
a4248679
import
QtQuick
2.3
import
QtQuick
.
Controls
1.2
import
QtQuick
.
Controls
.
Styles
1.4
import
QtQuick
2.3
import
QtQuick
.
Controls
1.2
import
QGroundControl
.
ScreenTools
1.0
import
QGroundControl
.
Palette
1.0
...
...
@@ -68,32 +67,28 @@ Canvas {
}
Rectangle
{
id
:
labelControl
anchors.leftMargin
:
-
_labelMargin
anchors.topMargin
:
-
_labelMargin
anchors.left
:
indicator
.
left
anchors.top
:
indicator
.
top
height
:
_labelRadius
*
2
width
:
labelControlLabel
.
contentWidth
+
(
_labelMargin
*
3
)
+
indicator
.
width
color
:
"
white
"
opacity
:
0.5
radius
:
_labelRadius
visible
:
_label
.
length
!==
0
id
:
labelControl
anchors.leftMargin
:
-
((
_labelMargin
*
2
)
+
indicator
.
width
)
anchors.rightMargin
:
-
(
_labelMargin
*
2
)
anchors.fill
:
labelControlLabel
color
:
"
white
"
opacity
:
0.5
radius
:
_labelRadius
visible
:
_label
.
length
!==
0
}
QGCLabel
{
id
:
labelControlLabel
anchors.leftMargin
:
indicator
.
width
+
_labelMargin
anchors.left
:
labelControl
.
left
anchors.rightMargin
:
_labelMargin
anchors.right
:
labelControl
.
right
anchors.top
:
labelControl
.
top
anchors.bottom
:
labelControl
.
bottom
verticalAlignment
:
Text
.
AlignVCenter
anchors.topMargin
:
-
_labelMargin
anchors.bottomMargin
:
-
_labelMargin
anchors.leftMargin
:
_labelMargin
anchors.left
:
indicator
.
right
anchors.top
:
indicator
.
top
anchors.bottom
:
indicator
.
bottom
color
:
"
white
"
font.pointSize
:
ScreenTools
.
defaultFontPointSize
fontSizeMode
:
Text
.
HorizontalFit
text
:
_label
verticalAlignment
:
Text
.
AlignVCenter
visible
:
labelControl
.
visible
}
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