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
b0972dd0
Commit
b0972dd0
authored
Apr 27, 2015
by
Don Gagne
Browse files
Put back Fly View default widgets
parent
7411b3c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ui/MainWindow.cc
View file @
b0972dd0
...
...
@@ -1086,8 +1086,7 @@ void MainWindow::_loadCurrentViewState(void)
case
VIEW_FLIGHT
:
_buildFlightView
();
centerView
=
_flightView
;
//defaultWidgets = "COMMUNICATION_CONSOLE_DOCKWIDGET,UAS_INFO_INFOVIEW_DOCKWIDGET";
defaultWidgets
.
clear
();
defaultWidgets
=
"COMMUNICATION_CONSOLE_DOCKWIDGET,UAS_INFO_INFOVIEW_DOCKWIDGET"
;
break
;
case
VIEW_PLAN
:
...
...
@@ -1141,6 +1140,7 @@ void MainWindow::_loadCurrentViewState(void)
// Restore the widgets for the new view
QString
widgetNames
=
settings
.
value
(
_getWindowStateKey
()
+
"WIDGETS"
,
defaultWidgets
).
toString
();
qDebug
()
<<
widgetNames
;
if
(
!
widgetNames
.
isEmpty
())
{
QStringList
split
=
widgetNames
.
split
(
","
);
foreach
(
QString
widgetName
,
split
)
{
...
...
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