1 /*
2     This file is part of the KDE libraries
3     SPDX-FileCopyrightText: 2000-2005 David Faure <faure@kde.org>
4 
5     SPDX-License-Identifier: LGPL-2.0-only
6 */
7 
8 #include "pixmaploader.h"
9 #include <QUrl>
10 #include <kio/global.h> // iconNameForUrl
11 
12 #if KIOWIDGETS_BUILD_DEPRECATED_SINCE(5, 75)
pixmapForUrl(const QUrl & url,int mode,KIconLoader::Group group,int force_size,int state,QString * path)13 QPixmap KIO::pixmapForUrl(const QUrl &url, int mode, KIconLoader::Group group, int force_size, int state, QString *path)
14 {
15     Q_UNUSED(mode);
16     const QString iconName = KIO::iconNameForUrl(url);
17     return KIconLoader::global()->loadMimeTypeIcon(iconName, group, force_size, state, QStringList(), path);
18 }
19 #endif
20