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
de64c327
Commit
de64c327
authored
Jun 27, 2019
by
Patrick José Pereira
Browse files
MAVLinkInspectorController: Remove QString constructor with tr
Signed-off-by:
Patrick José Pereira
<
patrickelectric@gmail.com
>
parent
f347ff48
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/AnalyzeView/MAVLinkInspectorController.cc
View file @
de64c327
...
...
@@ -409,7 +409,7 @@ MAVLinkInspectorController::_vehicleAdded(Vehicle* vehicle)
}
else
{
v
=
new
QGCMAVLinkVehicle
(
this
,
static_cast
<
uint8_t
>
(
vehicle
->
id
()));
_vehicles
.
append
(
v
);
_vehicleNames
.
append
(
QString
(
tr
(
"Vehicle %1"
)
)
.
arg
(
vehicle
->
id
()));
_vehicleNames
.
append
(
tr
(
"Vehicle %1"
).
arg
(
vehicle
->
id
()));
}
emit
vehiclesChanged
();
}
...
...
@@ -422,7 +422,7 @@ MAVLinkInspectorController::_vehicleRemoved(Vehicle* vehicle)
if
(
v
)
{
v
->
deleteLater
();
_vehicles
.
removeOne
(
v
);
QString
vs
=
QString
(
tr
(
"Vehicle %1"
)
)
.
arg
(
vehicle
->
id
());
QString
vs
=
tr
(
"Vehicle %1"
).
arg
(
vehicle
->
id
());
_vehicleNames
.
removeOne
(
vs
);
emit
vehiclesChanged
();
}
...
...
@@ -438,7 +438,7 @@ MAVLinkInspectorController::_receiveMessage(LinkInterface* link, mavlink_message
if
(
!
v
)
{
v
=
new
QGCMAVLinkVehicle
(
this
,
message
.
sysid
);
_vehicles
.
append
(
v
);
_vehicleNames
.
append
(
QString
(
tr
(
"Vehicle %1"
)
)
.
arg
(
message
.
sysid
));
_vehicleNames
.
append
(
tr
(
"Vehicle %1"
).
arg
(
message
.
sysid
));
emit
vehiclesChanged
();
if
(
!
_activeVehicle
)
{
_activeVehicle
=
v
;
...
...
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