Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
a0d1d6fc
Commit
a0d1d6fc
authored
Apr 14, 2017
by
DonLakeFlyer
Browse files
Stop being smart about Tooltrip text hiding
parent
a75ec97b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/QmlControls/ToolStrip.qml
View file @
a0d1d6fc
...
...
@@ -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
Supports
Markdown
0%
Try again
or
attach a new 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