Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
qgroundcontrol
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Valentin Platzgummer
qgroundcontrol
Commits
a0d1d6fc
Commit
a0d1d6fc
authored
7 years ago
by
DonLakeFlyer
Browse files
Options
Downloads
Patches
Plain Diff
Stop being smart about Tooltrip text hiding
parent
a75ec97b
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/QmlControls/ToolStrip.qml
+1
-32
1 addition, 32 deletions
src/QmlControls/ToolStrip.qml
with
1 addition
and
32 deletions
src/QmlControls/ToolStrip.qml
+
1
−
32
View file @
a0d1d6fc
...
@@ -35,38 +35,7 @@ Rectangle {
...
@@ -35,38 +35,7 @@ Rectangle {
readonly
property
real
_margin
:
ScreenTools
.
defaultFontPixelWidth
/
2
readonly
property
real
_margin
:
ScreenTools
.
defaultFontPixelWidth
/
2
readonly
property
real
_buttonSpacing
:
ScreenTools
.
defaultFontPixelWidth
readonly
property
real
_buttonSpacing
:
ScreenTools
.
defaultFontPixelWidth
// All of the following values, connections and function are to support the ability to determine
property
bool
_showOptionalElements
:
!
ScreenTools
.
isTinyScreen
// 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
}
}
QGCPalette
{
id
:
qgcPal
}
QGCPalette
{
id
:
qgcPal
}
ExclusiveGroup
{
id
:
dropButtonsExclusiveGroup
}
ExclusiveGroup
{
id
:
dropButtonsExclusiveGroup
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment