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
75bdcff0
Commit
75bdcff0
authored
Sep 26, 2015
by
Don Gagne
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1896 from DonLakeFlyer/MobileWidget
No widgets in mobile builds
parents
0615c0b7
d65d0f3c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
MainWindow.cc
src/ui/MainWindow.cc
+5
-0
No files found.
src/ui/MainWindow.cc
View file @
75bdcff0
...
@@ -822,6 +822,8 @@ void MainWindow::_storeCurrentViewState(void)
...
@@ -822,6 +822,8 @@ void MainWindow::_storeCurrentViewState(void)
{
{
// HIL dock widgets are dynamic and are not part of the saved state
// HIL dock widgets are dynamic and are not part of the saved state
_hideAllHilDockWidgets
();
_hideAllHilDockWidgets
();
#ifndef __mobile__
// Save list of visible widgets
// Save list of visible widgets
bool
firstWidget
=
true
;
bool
firstWidget
=
true
;
QString
widgetNames
=
""
;
QString
widgetNames
=
""
;
...
@@ -835,6 +837,7 @@ void MainWindow::_storeCurrentViewState(void)
...
@@ -835,6 +837,7 @@ void MainWindow::_storeCurrentViewState(void)
}
}
}
}
settings
.
setValue
(
_getWindowStateKey
()
+
"WIDGETS"
,
widgetNames
);
settings
.
setValue
(
_getWindowStateKey
()
+
"WIDGETS"
,
widgetNames
);
#endif
settings
.
setValue
(
_getWindowStateKey
(),
saveState
());
settings
.
setValue
(
_getWindowStateKey
(),
saveState
());
settings
.
setValue
(
_getWindowGeometryKey
(),
saveGeometry
());
settings
.
setValue
(
_getWindowGeometryKey
(),
saveGeometry
());
}
}
...
@@ -905,6 +908,7 @@ void MainWindow::_loadCurrentViewState(void)
...
@@ -905,6 +908,7 @@ void MainWindow::_loadCurrentViewState(void)
// Hide all widgets from previous view
// Hide all widgets from previous view
_hideAllDockWidgets
();
_hideAllDockWidgets
();
#ifndef __mobile__
// Restore the widgets for the new view
// Restore the widgets for the new view
QString
widgetNames
=
settings
.
value
(
_getWindowStateKey
()
+
"WIDGETS"
,
defaultWidgets
).
toString
();
QString
widgetNames
=
settings
.
value
(
_getWindowStateKey
()
+
"WIDGETS"
,
defaultWidgets
).
toString
();
qDebug
()
<<
widgetNames
;
qDebug
()
<<
widgetNames
;
...
@@ -915,6 +919,7 @@ void MainWindow::_loadCurrentViewState(void)
...
@@ -915,6 +919,7 @@ void MainWindow::_loadCurrentViewState(void)
_showDockWidget
(
widgetName
,
true
);
_showDockWidget
(
widgetName
,
true
);
}
}
}
}
#endif
if
(
settings
.
contains
(
_getWindowStateKey
()))
{
if
(
settings
.
contains
(
_getWindowStateKey
()))
{
restoreState
(
settings
.
value
(
_getWindowStateKey
()).
toByteArray
());
restoreState
(
settings
.
value
(
_getWindowStateKey
()).
toByteArray
());
...
...
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