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
0309e098
Commit
0309e098
authored
Oct 31, 2014
by
Don Gagne
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #929 from DonLakeFlyer/ParameterInterface
Generic mav ui incorrectly hidden
parents
d553dc67
0377af7c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
13 deletions
+1
-13
ParameterInterface.cc
src/ui/ParameterInterface.cc
+1
-13
No files found.
src/ui/ParameterInterface.cc
View file @
0309e098
...
@@ -37,7 +37,6 @@ This file is part of the QGROUNDCONTROL project
...
@@ -37,7 +37,6 @@ This file is part of the QGROUNDCONTROL project
#include <QDebug>
#include <QDebug>
#include <QSettings>
#include <QSettings>
#include "MainWindow.h"
ParameterInterface
::
ParameterInterface
(
QWidget
*
parent
)
:
ParameterInterface
::
ParameterInterface
(
QWidget
*
parent
)
:
QWidget
(
parent
),
QWidget
(
parent
),
...
@@ -48,13 +47,6 @@ ParameterInterface::ParameterInterface(QWidget *parent) :
...
@@ -48,13 +47,6 @@ ParameterInterface::ParameterInterface(QWidget *parent) :
m_ui
->
setupUi
(
this
);
m_ui
->
setupUi
(
this
);
QSettings
settings
;
QSettings
settings
;
enum
MainWindow
::
CUSTOM_MODE
mode
=
static_cast
<
enum
MainWindow
::
CUSTOM_MODE
>
(
settings
.
value
(
"QGC_CUSTOM_MODE"
,
MainWindow
::
CUSTOM_MODE_NONE
).
toInt
());
if
(
mode
==
MainWindow
::
CUSTOM_MODE_PX4
)
{
delete
m_ui
->
sensorSettings
;
m_ui
->
sensorSettings
=
NULL
;
}
// Get current MAV list
// Get current MAV list
QList
<
UASInterface
*>
systems
=
UASManager
::
instance
()
->
getUASList
();
QList
<
UASInterface
*>
systems
=
UASManager
::
instance
()
->
getUASList
();
...
@@ -79,8 +71,7 @@ ParameterInterface::~ParameterInterface()
...
@@ -79,8 +71,7 @@ ParameterInterface::~ParameterInterface()
void
ParameterInterface
::
selectUAS
(
int
index
)
void
ParameterInterface
::
selectUAS
(
int
index
)
{
{
m_ui
->
stackedWidget
->
setCurrentIndex
(
index
);
m_ui
->
stackedWidget
->
setCurrentIndex
(
index
);
if
(
m_ui
->
sensorSettings
)
m_ui
->
sensorSettings
->
setCurrentIndex
(
index
);
m_ui
->
sensorSettings
->
setCurrentIndex
(
index
);
curr
=
index
;
curr
=
index
;
}
}
...
@@ -109,11 +100,8 @@ void ParameterInterface::addUAS(UASInterface* uas)
...
@@ -109,11 +100,8 @@ void ParameterInterface::addUAS(UASInterface* uas)
QGCSensorSettingsWidget
*
sensor
=
NULL
;
QGCSensorSettingsWidget
*
sensor
=
NULL
;
if
(
m_ui
->
sensorSettings
)
{
sensor
=
new
QGCSensorSettingsWidget
(
uas
,
this
);
sensor
=
new
QGCSensorSettingsWidget
(
uas
,
this
);
m_ui
->
sensorSettings
->
addWidget
(
sensor
);
m_ui
->
sensorSettings
->
addWidget
(
sensor
);
}
// Set widgets as default
// Set widgets as default
if
(
curr
==
-
1
)
{
if
(
curr
==
-
1
)
{
...
...
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