16 #include "Base/Util/Assert.h"
19 : is_sorted(is_sorted)
26 m_info.push_back({itemType, itemLabel});
36 return m_info[0].m_itemType;
49 for (
const auto& pair :
m_info)
50 result.append(pair.m_itemType);
57 for (
const auto& pair :
m_info)
58 result.append(pair.m_itemLabel);
64 for (
const auto& pair :
m_info)
65 if (itemType == pair.m_itemType)
QVector< TypeAndLabel > m_info
QStringList itemLabels() const
void add(const QString &itemType, const QString &itemLabel)
QString defaultType() const
QStringList itemTypes() const
GroupInfo(bool is_sorted=true)
QString m_defaultItemType
Info will be sorted if true, otherwise order of insertion will be preserved.
bool containsType(const QString &itemType) const
Default model type for given group (i.e. FFCylinder for formfactor group)