Changeset View
Changeset View
Standalone View
Standalone View
libdiscover/backends/KNSBackend/KNSBackend.cpp
Context not available. | |||||
162 | m_engine->setPageSize(100); | 173 | m_engine->setPageSize(100); | ||
---|---|---|---|---|---|
163 | m_engine->init(m_name); | 174 | m_engine->init(m_name); | ||
164 | 175 | | |||
165 | static const QString knsrcApplications = QLatin1String("storekdeapps.knsrc"); | 176 | m_hasApplications = group.readEntry<bool>("X-Discover-HasApplications", false); | ||
166 | 177 | if(m_hasApplications) { | |||
167 | if(knsrcApplications == fileName) { | 178 | auto actualCategory = new Category(m_displayName, QStringLiteral("plasma"), filters, backendName, topCategories, QUrl(), false); | ||
168 | m_hasApplications = true; | | |||
169 | auto actualCategory = new Category(m_displayName, QStringLiteral("plasma"), filters, backendName, categories, QUrl(), false); | | |||
170 | auto applicationCategory = new Category(i18n("Applications"), QStringLiteral("applications-internet"), filters, backendName, { actualCategory }, QUrl(), false); | 179 | auto applicationCategory = new Category(i18n("Applications"), QStringLiteral("applications-internet"), filters, backendName, { actualCategory }, QUrl(), false); | ||
171 | applicationCategory->setAndFilter({ {CategoryFilter, QLatin1String("Application")} }); | 180 | applicationCategory->setAndFilter({ {CategoryFilter, QLatin1String("Application")} }); | ||
172 | m_categories.append(applicationCategory->name()); | 181 | m_categories.append(applicationCategory->name()); | ||
Context not available. |