ListDictHelper.cpp
Go to the documentation of this file.
1
#include "
ListDictHelper.h
"
2
3
namespace
armarx::misc
4
{
5
QString
6
generateNumElementsText
(
int
num)
7
{
8
QString numElemsText =
"<"
;
9
if
(num == 0)
10
{
11
numElemsText.append(
"no"
);
12
}
13
else
14
{
15
numElemsText.append(QString::number(num));
16
}
17
if
(num > 1 || num == 0)
18
{
19
numElemsText.append(
" elements>"
);
20
}
21
else
22
{
23
numElemsText.append(
" element>"
);
24
}
25
return
numElemsText;
26
}
27
28
}
// namespace armarx::misc
armarx::misc::generateNumElementsText
QString generateNumElementsText(int num)
Definition:
ListDictHelper.cpp:6
ListDictHelper.h
armarx::misc
Definition:
ListDictHelper.cpp:3
RobotAPI
gui-plugins
SkillManagerPlugin
aronTreeWidget
ListDictHelper.cpp
Generated on Sat Oct 12 2024 09:14:07 for armarx_documentation by
1.8.17