29 for(
int i = 0; i < nodes.count(); ++i)
31 const QDomNodeList &tagNodes = nodes.item(i).childNodes();
32 for(
int j = 0; j < tagNodes.count(); ++j)
35 const QDomNode &tagNode = tagNodes.item(j);
36 category.
m_category = tagNode.toElement().attribute(
"value");
43 const QDomNodeList &typeNodes = tagNode.childNodes();
44 for(
int k = 0; k < typeNodes.count(); ++k)
46 const QDomElement &element = typeNodes.item(k).toElement();
49 item.
m_key = element.attribute(
"key");
50 item.
m_value = element.attribute(
"value");
54 items.append(category);
The class of the ttk xml interface.
QDomDocument * m_document
bool fromFile(Category type)
bool fromFile(const QString &name)
static constexpr wchar_t key[]
virtual bool readBuffer(MusicResultsCategoryList &items) overridefinal
MusicCategoryConfigManager(const QString &key)
The class of the results category core.
#define RESOURCE_DIR_FULL
The class of the results category item.
MusicResultsCategoryItemList m_items