Add <share>/okular/pics to icon search path

This is automatically done when using KIconLoader, but not when using another QIcon implementation.
remotes/origin/work/spdx
Nicolas Fella 5 years ago committed by Albert Astals Cid
parent 97264b534c
commit 1e9711ba37
  1. 3
      part/part.cpp

@ -341,6 +341,9 @@ Part::Part(QWidget *parentWidget, QObject *parent, const QVariantList &args)
GuiUtils::addIconLoader(iconLoader());
const QStringList iconDirs = QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, QStringLiteral("okular/pics"), QStandardPaths::LocateDirectory);
QIcon::setFallbackSearchPaths(QIcon::fallbackSearchPaths() << iconDirs);
m_sidebar = new Sidebar(parentWidget);
setWidget(m_sidebar);
connect(m_sidebar, &Sidebar::urlsDropped, this, &Part::handleDroppedUrls);

Loading…
Cancel
Save