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
a3e00a5b
Commit
a3e00a5b
authored
Jul 30, 2019
by
Gus Grubba
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle full screen (for mobile or tiny screens) at the root window.
parent
4b15d5bc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
CustomMainToolBar.qml
custom-example/res/MainToolbar/CustomMainToolBar.qml
+0
-2
MainRootWindow.qml
src/ui/MainRootWindow.qml
+2
-1
No files found.
custom-example/res/MainToolbar/CustomMainToolBar.qml
View file @
a3e00a5b
...
@@ -45,8 +45,6 @@ Item {
...
@@ -45,8 +45,6 @@ Item {
Component
.
onCompleted
:
{
Component
.
onCompleted
:
{
flyButton
.
checked
=
true
flyButton
.
checked
=
true
sectionTitle
=
flyButton
.
text
sectionTitle
=
flyButton
.
text
//-- Show full screen
mainWindow
.
showFullScreen
()
}
}
//-------------------------------------------------------------------------
//-------------------------------------------------------------------------
//-- Fly/Plan state toggle
//-- Fly/Plan state toggle
...
...
src/ui/MainRootWindow.qml
View file @
a3e00a5b
...
@@ -29,7 +29,8 @@ ApplicationWindow {
...
@@ -29,7 +29,8 @@ ApplicationWindow {
visible
:
true
visible
:
true
Component.onCompleted
:
{
Component.onCompleted
:
{
if
(
ScreenTools
.
isMobile
)
{
//-- Full screen on mobile or tiny screens
if
(
ScreenTools
.
isMobile
||
Screen
.
height
/
ScreenTools
.
realPixelDensity
<
120
)
{
mainWindow
.
showFullScreen
()
mainWindow
.
showFullScreen
()
}
else
{
}
else
{
width
=
ScreenTools
.
isMobile
?
Screen
.
width
:
Math
.
min
(
250
*
Screen
.
pixelDensity
,
Screen
.
width
)
width
=
ScreenTools
.
isMobile
?
Screen
.
width
:
Math
.
min
(
250
*
Screen
.
pixelDensity
,
Screen
.
width
)
...
...
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