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
3517b6ab
Commit
3517b6ab
authored
May 19, 2014
by
Lorenz Meier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Setting widget: Cleanup
parent
e5c72b63
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
11 deletions
+6
-11
MAVLinkSettingsWidget.cc
src/ui/MAVLinkSettingsWidget.cc
+6
-11
No files found.
src/ui/MAVLinkSettingsWidget.cc
View file @
3517b6ab
...
...
@@ -47,6 +47,12 @@ MAVLinkSettingsWidget::MAVLinkSettingsWidget(MAVLinkProtocol* protocol, QWidget
m_ui
->
gridLayout
->
setAlignment
(
Qt
::
AlignTop
);
// AUTH
m_ui
->
droneOSCheckBox
->
setChecked
(
protocol
->
getAuthEnabled
());
QSettings
settings
;
m_ui
->
droneOSComboBox
->
setCurrentIndex
(
m_ui
->
droneOSComboBox
->
findText
(
settings
.
value
(
"DRONEOS_HOST"
,
"droneos.com:14555"
).
toString
()));
m_ui
->
droneOSLineEdit
->
setText
(
protocol
->
getAuthKey
());
// Initialize state
m_ui
->
heartbeatCheckBox
->
setChecked
(
protocol
->
heartbeatsEnabled
());
m_ui
->
loggingCheckBox
->
setChecked
(
protocol
->
loggingEnabled
());
...
...
@@ -61,12 +67,6 @@ MAVLinkSettingsWidget::MAVLinkSettingsWidget(MAVLinkProtocol* protocol, QWidget
m_ui
->
actionGuardCheckBox
->
setChecked
(
protocol
->
actionGuardEnabled
());
m_ui
->
actionRetransmissionSpinBox
->
setValue
(
protocol
->
getActionRetransmissionTimeout
());
// AUTH
m_ui
->
droneOSCheckBox
->
setChecked
(
protocol
->
getAuthEnabled
());
QSettings
settings
;
m_ui
->
droneOSComboBox
->
setCurrentIndex
(
m_ui
->
droneOSComboBox
->
findText
(
settings
.
value
(
"DRONEOS_HOST"
,
"droneos.com:14555"
).
toString
()));
m_ui
->
droneOSLineEdit
->
setText
(
protocol
->
getAuthKey
());
// Connect actions
// Heartbeat
connect
(
protocol
,
SIGNAL
(
heartbeatChanged
(
bool
)),
m_ui
->
heartbeatCheckBox
,
SLOT
(
setChecked
(
bool
)));
...
...
@@ -144,11 +144,6 @@ MAVLinkSettingsWidget::MAVLinkSettingsWidget(MAVLinkProtocol* protocol, QWidget
// and then remove these two lines
m_ui
->
multiplexingFilterCheckBox
->
setVisible
(
false
);
m_ui
->
multiplexingFilterLineEdit
->
setVisible
(
false
);
// // Update settings
// m_ui->loggingCheckBox->setChecked(protocol->loggingEnabled());
// m_ui->heartbeatCheckBox->setChecked(protocol->heartbeatsEnabled());
// m_ui->versionCheckBox->setChecked(protocol->versionCheckEnabled());
}
void
MAVLinkSettingsWidget
::
updateLogfileName
(
const
QString
&
fileName
)
...
...
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