Commit 3e01b440 authored by David Redondo's avatar David Redondo 🏎
Browse files

Get icon size from QStyle

Summary: The KIconLoader method will go away

Reviewers: #plasma, davidedmundson

Reviewed By: #plasma, davidedmundson

Subscribers: plasma-devel

Tags: #plasma, #kf6

Maniphest Tasks: T11637

Differential Revision:
parent f9429372
......@@ -707,7 +707,7 @@ void TreeView::startDrag(Qt::DropActions supportedActions)
QDrag *drag = new QDrag(this);
int iconSize = KIconLoader::global()->currentSize(KIconLoader::Small);
const int iconSize = style()->pixelMetric(QStyle::PM_SmallIconSize);
drag->setPixmap(selectedItem()->icon(0).pixmap(iconSize, iconSize));
drag->exec(supportedActions, Qt::MoveAction);
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