File indexing completed on 2024-04-28 15:27:30

0001 /*
0002     This file is part of the KDE libraries
0003     SPDX-FileCopyrightText: 2000-2005 David Faure <faure@kde.org>
0004 
0005     SPDX-License-Identifier: LGPL-2.0-only
0006 */
0007 
0008 #include "pixmaploader.h"
0009 #include <QUrl>
0010 #include <kio/global.h> // iconNameForUrl
0011 
0012 #if KIOWIDGETS_BUILD_DEPRECATED_SINCE(5, 75)
0013 QPixmap KIO::pixmapForUrl(const QUrl &url, int mode, KIconLoader::Group group, int force_size, int state, QString *path)
0014 {
0015     Q_UNUSED(mode);
0016     const QString iconName = KIO::iconNameForUrl(url);
0017     return KIconLoader::global()->loadMimeTypeIcon(iconName, group, force_size, state, QStringList(), path);
0018 }
0019 #endif