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
af3fc38c
Commit
af3fc38c
authored
May 22, 2013
by
Michael Carpenter
Browse files
Fix for HIL dock widget
parent
f5d89a62
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ui/MainWindow.cc
View file @
af3fc38c
...
...
@@ -883,18 +883,23 @@ void MainWindow::showHILConfigurationWidget(UASInterface* uas)
if
(
mav
&&
!
hilDocks
.
contains
(
mav
->
getUASID
()))
{
//QGCToolWidget* tool = new QGCToolWidget("Unnamed Tool " + QString::number(ui.menuTools->actions().size()));
//createDockWidget(centerStack->currentWidget(),tool,"Unnamed Tool " + QString::number(ui.menuTools->actions().size()),"UNNAMED_TOOL_" + QString::number(ui.menuTools->actions().size())+"DOCK",currentView,Qt::BottomDockWidgetArea);
QGCHilConfiguration
*
hconf
=
new
QGCHilConfiguration
(
mav
,
this
);
QString
hilDockName
=
tr
(
"HIL Config (%1)"
).
arg
(
uas
->
getUASName
());
QDockWidget
*
hilDock
=
new
QDockWidget
(
hilDockName
,
this
);
hilDock
->
setWidget
(
hconf
);
hilDock
->
setObjectName
(
QString
(
"HIL_CONFIG_%1"
).
arg
(
uas
->
getUASID
()));
createDockWidget
(
centerStack
->
currentWidget
(),
hconf
,
hilDockName
,
QString
(
"HIL_CONFIG_%1"
).
arg
(
uas
->
getUASID
()),
currentView
,
Qt
::
LeftDockWidgetArea
);
//QDockWidget* hilDock = new QDockWidget(hilDockName, this);
//hilDock->setWidget(hconf);
//hilDock->setObjectName(QString("HIL_CONFIG_%1").arg(uas->getUASID()));
//addTool(hilDock, hilDockName, Qt::LeftDockWidgetArea);
hilDocks
.
insert
(
mav
->
getUASID
(),
hilDock
);
//
hilDocks.insert(mav->getUASID(), hilDock);
if
(
currentView
!=
VIEW_SIMULATION
)
hilDock
->
hide
();
else
hilDock
->
show
();
//
if (currentView != VIEW_SIMULATION)
//
hilDock->hide();
//
else
//
hilDock->show();
}
}
...
...
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