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
eaca86d3
Commit
eaca86d3
authored
Apr 14, 2017
by
Don Gagne
Committed by
GitHub
Apr 14, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4984 from DonLakeFlyer/Fixes
Fixes
parents
fb4d4aa1
a0d1d6fc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
33 deletions
+2
-33
PlanView.qml
src/PlanView/PlanView.qml
+1
-1
ToolStrip.qml
src/QmlControls/ToolStrip.qml
+1
-32
No files found.
src/PlanView/PlanView.qml
View file @
eaca86d3
...
...
@@ -791,7 +791,7 @@ QGCView {
anchors.right
:
rightPanel
.
left
anchors.bottom
:
parent
.
bottom
missionItems
:
missionController
.
visualItems
//
visible: _editingLayer === _layerMission && !ScreenTools.isShortScreen
visible
:
_editingLayer
===
_layerMission
&&
!
ScreenTools
.
isShortScreen
}
}
// QGCViewPanel
...
...
src/QmlControls/ToolStrip.qml
View file @
eaca86d3
...
...
@@ -35,38 +35,7 @@ Rectangle {
readonly
property
real
_margin
:
ScreenTools
.
defaultFontPixelWidth
/
2
readonly
property
real
_buttonSpacing
:
ScreenTools
.
defaultFontPixelWidth
// All of the following values, connections and function are to support the ability to determine
// whether to show or hide the optional elements on the fly.
property
bool
_showOptionalElements
:
true
property
bool
_needRecalc
:
false
Component.onCompleted
:
recalcShowOptionalElements
()
onMaxHeightChanged
:
recalcShowOptionalElements
()
Connections
{
target
:
ScreenTools
onDefaultFontPixelWidthChanged
:
recalcShowOptionalElements
()
onDefaultFontPixelHeightChanged
:
recalcShowOptionalElements
()
}
onHeightChanged
:
{
if
(
_needRecalc
)
{
_needRecalc
=
false
if
(
maxHeight
&&
height
>
maxHeight
)
{
_showOptionalElements
=
false
}
}
}
function
recalcShowOptionalElements
()
{
if
(
maxHeight
>
0
)
{
_needRecalc
=
false
_showOptionalElements
=
height
<=
maxHeight
_needRecalc
=
true
}
}
property
bool
_showOptionalElements
:
!
ScreenTools
.
isTinyScreen
QGCPalette
{
id
:
qgcPal
}
ExclusiveGroup
{
id
:
dropButtonsExclusiveGroup
}
...
...
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