Port away from KIconLoader::loadMimeTypeIcon

It's about to be deprecated
remotes/origin/work/aacid/shorcutslost_2008
Nicolas Fella 6 years ago
parent 4ee716096d
commit 43408594bb
  1. 3
      ui/propertiesdialog.cpp

@ -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 {

Loading…
Cancel
Save