Commit b8c30d91 authored by Alexander Semke's avatar Alexander Semke
Browse files

Show icons in the documentation selector in the doc panel widget.

parent 527f55f5
......@@ -265,8 +265,15 @@ void DocumentationPanelWidget::updateBackend(const QString& newBackend, const QS
const KConfigGroup group = KSharedConfig::openConfig()->group(m_backend.toLower());
m_docNames = group.readEntry(QLatin1String("Names"), QStringList());
m_docPaths = group.readEntry(QLatin1String("Paths"), QStringList());
if (!m_docNames.isEmpty())
const QStringList& iconNames = group.readEntry(QLatin1String("Icons"), QStringList());
for (int i = 0; i < m_docNames.size(); ++i) {
const QString& name =;
QString iconName;
if (i < iconNames.size())
iconName =;
m_documentationSelector->addItem(QIcon::fromTheme(iconName), name);
m_initializing = false;
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