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
0b9292e2
Commit
0b9292e2
authored
Oct 23, 2018
by
Patrick José Pereira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ui: Change from foreach to c++11 for
Signed-off-by:
Patrick José Pereira
<
patrickelectric@gmail.com
>
parent
65da5b36
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
MainWindow.cc
src/ui/MainWindow.cc
+4
-4
QGCMAVLinkInspector.cc
src/ui/QGCMAVLinkInspector.cc
+1
-1
No files found.
src/ui/MainWindow.cc
View file @
0b9292e2
...
...
@@ -347,7 +347,7 @@ bool MainWindow::_createInnerDockWidget(const QString& widgetName)
void
MainWindow
::
_hideAllDockWidgets
(
void
)
{
for
each
(
QGCDockWidget
*
dockWidget
,
_mapName2DockWidget
)
{
for
(
QGCDockWidget
*
dockWidget
:
_mapName2DockWidget
)
{
dockWidget
->
setVisible
(
false
);
}
}
...
...
@@ -448,7 +448,7 @@ void MainWindow::_vehicleAdded(Vehicle* vehicle)
void
MainWindow
::
_storeCurrentViewState
(
void
)
{
#ifndef __mobile__
for
each
(
QGCDockWidget
*
dockWidget
,
_mapName2DockWidget
)
{
for
(
QGCDockWidget
*
dockWidget
:
_mapName2DockWidget
)
{
dockWidget
->
saveSettings
();
}
#endif
...
...
@@ -482,7 +482,7 @@ void MainWindow::_loadVisibleWidgetsSettings(void)
if
(
!
widgets
.
isEmpty
())
{
QStringList
nameList
=
widgets
.
split
(
","
);
for
each
(
const
QString
&
name
,
nameList
)
{
for
(
const
QString
&
name
:
nameList
)
{
_showDockWidget
(
name
,
true
);
}
}
...
...
@@ -493,7 +493,7 @@ void MainWindow::_storeVisibleWidgetsSettings(void)
QString
widgetNames
;
bool
firstWidget
=
true
;
for
each
(
const
QString
&
name
,
_mapName2DockWidget
.
keys
())
{
for
(
const
QString
&
name
:
_mapName2DockWidget
.
keys
())
{
if
(
_mapName2DockWidget
[
name
]
->
isVisible
())
{
if
(
!
firstWidget
)
{
widgetNames
+=
","
;
...
...
src/ui/QGCMAVLinkInspector.cc
View file @
0b9292e2
...
...
@@ -83,7 +83,7 @@ void QGCMAVLinkInspector::rebuildComponentList()
{
UASInterface
*
uas
=
vehicle
->
uas
();
QMap
<
int
,
QString
>
components
=
uas
->
getComponents
();
for
each
(
int
id
,
components
.
keys
())
for
(
int
id
:
components
.
keys
())
{
QString
name
=
components
.
value
(
id
);
ui
->
componentComboBox
->
addItem
(
name
,
id
);
...
...
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