Commit a5bdd39f authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Use setIconProvider instead of setPixmapProvider for KHistoryComboBox

Summary: setPixmapProvider will be deprecated with D25700

Test Plan: Open open folder dialog, history combobox still has icons

Reviewers: #plasma, #frameworks, apol

Reviewed By: apol

Subscribers: plasma-devel

Tags: #plasma

Maniphest Tasks: T12310

Differential Revision:
parent fcc10ab2
......@@ -328,7 +328,9 @@ KDirSelectDialog::KDirSelectDialog(const QUrl &startDir, bool localOnly, QWidget
d->m_urlCombo->setPixmapProvider(new KUrlPixmapProvider());
d->m_urlCombo->setIconProvider([](const QString &name) {
return QIcon::fromTheme(KIO::iconNameForUrl(QUrl::fromUserInput(name)));
KUrlCompletion *comp = new KUrlCompletion();
d->m_urlCombo->setCompletionObject(comp, true);
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