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

Port away from KIconLoader::loadMimeTypeIcon

It's about to be deprecated
parent 4ee71609
Pipeline #34848 passed with stage
in 9 minutes and 5 seconds
......@@ -101,7 +101,8 @@ PropertiesDialog::PropertiesDialog(QWidget *parent, Okular::Document *doc)
/// retrieve icon and place it in a QLabel
QLabel *pixmapLabel = new QLabel(value);
hboxLayout->addWidget(pixmapLabel, 0);
pixmapLabel->setPixmap(KIconLoader::global()->loadMimeTypeIcon(mimeType.iconName(), KIconLoader::Small));
const QIcon icon = QIcon::fromTheme(mimeType.iconName(), QIcon::fromTheme(QStringLiteral("application-octet-stream")));
pixmapLabel->setPixmap(icon.pixmap(KIconLoader::SizeSmall));
/// mime type's name and label
squeezed = new KSqueezedTextLabel(i18nc("mimetype information, example: \"PDF Document (application/pdf)\"", "%1 (%2)", mimeType.comment(), valueString), value);
} else {
......
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