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
2080e2f3
Commit
2080e2f3
authored
Jun 25, 2018
by
DonLakeFlyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix help button positioning
parent
383ff5e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
16 deletions
+15
-16
QGCTextField.qml
src/QmlControls/QGCTextField.qml
+15
-16
No files found.
src/QmlControls/QGCTextField.qml
View file @
2080e2f3
...
...
@@ -71,36 +71,35 @@ TextField {
anchors.bottom
:
parent
.
bottom
anchors.rightMargin
:
backgroundItem
.
showHelp
?
0
:
control
.
__contentHeight
*
0.333
anchors.right
:
parent
.
right
spacing
:
4
spacing
:
ScreenTools
.
defaultFontPixelWidth
/
4
Component.onCompleted
:
control
.
_helpLayoutWidth
=
unitsHelpLayout
.
width
onWidthChanged
:
control
.
_helpLayoutWidth
=
unitsHelpLayout
.
width
Text
{
Layout.alignment
:
Qt
.
AlignVCenter
text
:
control
.
unitsLabel
font.pointSize
:
backgroundItem
.
showHelp
?
ScreenTools
.
smallFontPointSize
:
ScreenTools
.
defaultFontPointSize
font.family
:
ScreenTools
.
normalFontFamily
antialiasing
:
true
color
:
control
.
textColor
visible
:
control
.
showUnits
Layout.alignment
:
Qt
.
AlignVCenter
text
:
control
.
unitsLabel
font.pointSize
:
backgroundItem
.
showHelp
?
ScreenTools
.
smallFontPointSize
:
ScreenTools
.
defaultFontPointSize
font.family
:
ScreenTools
.
normalFontFamily
antialiasing
:
true
color
:
control
.
textColor
visible
:
control
.
showUnits
}
Rectangle
{
Layout.margins
:
2
Layout.leftMargin
:
0
Layout.rightMargin
:
1
Layout.fillHeight
:
true
Layout.alignment
:
Qt
.
AlignRight
width
:
height
*
0.75
width
:
helpLabel
.
contentWidth
*
3
color
:
control
.
textColor
radius
:
2
visible
:
backgroundItem
.
showHelp
QGCLabel
{
anchors.fill
:
parent
verticalAlignment
:
Text
.
AlignVCenter
horizontalAlignment
:
Text
.
AlignHCenter
color
:
qgcPal
.
textField
text
:
"
?
"
id
:
helpLabel
anchors.centerIn
:
parent
color
:
qgcPal
.
textField
text
:
qsTr
(
"
?
"
)
}
}
}
...
...
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