Commit 98ec68d3 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Set category name as object name

Good for debugging purposes
parent 704ea2a7
......@@ -43,7 +43,9 @@ Category::Category(const QString& name, const QString& iconName, const QVector<Q
, m_subCategories(subCategories)
, m_plugins(pluginName)
, m_isAddons(isAddons)
{}
{
setObjectName(m_name);
}
Category::~Category() = default;
......@@ -60,6 +62,7 @@ void Category::parseData(const QString& path, const QDomNode& data)
if (tempElement.tagName() == QLatin1String("Name")) {
m_name = i18nc("Category", tempElement.text().toUtf8().constData());
setObjectName(m_name);
} else if (tempElement.tagName() == QLatin1String("Menu")) {
m_subCategories << new Category(m_plugins, this);
m_subCategories.last()->parseData(path, node);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment