You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
503 B
26 lines
503 B
4 years ago
|
#ifndef STATICUTILITY_H
|
||
|
#define STATICUTILITY_H
|
||
|
|
||
|
#include <QtCore>
|
||
|
|
||
|
class StaticUtility
|
||
|
{
|
||
|
public:
|
||
|
template<typename T>
|
||
|
static QString convertListToString(QList<T> input)
|
||
|
{
|
||
|
QString ret;
|
||
|
for(int i = 0; i < input.count(); ++i)
|
||
|
{
|
||
|
T temp = input.at(i);
|
||
|
ret = QString("%1,%2").arg(ret).arg(temp);
|
||
|
}
|
||
|
|
||
|
return ret;
|
||
|
}
|
||
|
};
|
||
|
|
||
|
//template static QString StaticUtility::convertListToString<int>(QList<int> input);
|
||
|
|
||
|
#endif //STATICUTILITY_H
|