Commit 7ce91f6a authored by David Redondo's avatar David Redondo 🏎

Do not use deprecated KIconLoader functions

parent 4d7b71d7
......@@ -168,7 +168,7 @@ void CDuplicatesDialog::scanFinished()
tt++;
}
top->setData(COL_FILE, Qt::DecorationRole,
QVariant(SmallIcon(t1>tt ? "application-x-font-type1" : "application-x-font-ttf")));
QIcon::fromTheme(t1>tt ? "application-x-font-type1" : "application-x-font-ttf"));
top->setFont(COL_FILE, boldFont);
}
......@@ -395,7 +395,7 @@ void CFontFileList::fileDuplicates(const QString &folder, const QSet<TFile> &fil
inline void markItem(QTreeWidgetItem *item)
{
item->setData(COL_TRASH, Qt::DecorationRole, QVariant(SmallIcon("list-remove")));
item->setData(COL_TRASH, Qt::DecorationRole, QIcon::fromTheme("list-remove"));
}
inline void unmarkItem(QTreeWidgetItem *item)
......@@ -418,7 +418,7 @@ CFontFileListView::CFontFileListView(QWidget *parent)
headers.append(i18n("Date"));
headers.append(i18n("Links To"));
setHeaderLabels(headers);
headerItem()->setData(COL_TRASH, Qt::DecorationRole, QVariant(SmallIcon("user-trash")));
headerItem()->setData(COL_TRASH, Qt::DecorationRole, QIcon::fromTheme("user-trash"));
setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding);
setSelectionMode(ExtendedSelection);
sortByColumn(COL_FILE, Qt::AscendingOrder);
......
......@@ -1946,7 +1946,7 @@ void CFontListView::startDrag(Qt::DropActions supportedActions)
}
QPoint hotspot;
QPixmap pix(DesktopIcon(icon, KIconLoader::SizeMedium));
QPixmap pix = QIcon::fromTheme(icon).pixmap(KIconLoader::SizeMedium);
hotspot.setX(0); // pix.width()/2);
hotspot.setY(0); // pix.height()/2);
......
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