ListDictHelper.cpp
Go to the documentation of this file.
1#include "ListDictHelper.h"
2
3namespace armarx::misc
4{
5 QString
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
QString generateNumElementsText(int num)