Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/kurlpixmapprovider.cpp
Show All 17 Lines | 1 | /* This file is part of the KDE libraries | |||
---|---|---|---|---|---|
18 | Boston, MA 02110-1301, USA. | 18 | Boston, MA 02110-1301, USA. | ||
19 | */ | 19 | */ | ||
20 | 20 | | |||
21 | #include "kurlpixmapprovider.h" | 21 | #include "kurlpixmapprovider.h" | ||
22 | #include <QUrl> | 22 | #include <QUrl> | ||
23 | #include <kio/global.h> | 23 | #include <kio/global.h> | ||
24 | #include <pixmaploader.h> | 24 | #include <pixmaploader.h> | ||
25 | 25 | | |||
26 | #if KIOWIDGETS_ENABLE_DEPRECATED_SINCE(5, 65) | ||||
dfaure: Ah, no, s/ENABLE_/BUILD_/ in cpp files | |||||
27 | | ||||
26 | KUrlPixmapProvider::KUrlPixmapProvider() | 28 | KUrlPixmapProvider::KUrlPixmapProvider() | ||
27 | : d(nullptr) | 29 | : d(nullptr) | ||
28 | { | 30 | { | ||
29 | } | 31 | } | ||
30 | 32 | | |||
31 | KUrlPixmapProvider::~KUrlPixmapProvider() | 33 | KUrlPixmapProvider::~KUrlPixmapProvider() | ||
32 | { | 34 | { | ||
33 | } | 35 | } | ||
34 | 36 | | |||
35 | QPixmap KUrlPixmapProvider::pixmapFor(const QString &url, int size) | 37 | QPixmap KUrlPixmapProvider::pixmapFor(const QString &url, int size) | ||
36 | { | 38 | { | ||
37 | const QUrl u = QUrl::fromUserInput(url); // absolute path or URL | 39 | const QUrl u = QUrl::fromUserInput(url); // absolute path or URL | ||
38 | return KIO::pixmapForUrl(u, 0, KIconLoader::Desktop, size); | 40 | return KIO::pixmapForUrl(u, 0, KIconLoader::Desktop, size); | ||
39 | } | 41 | } | ||
40 | 42 | | |||
41 | void KUrlPixmapProvider::virtual_hook(int id, void *data) | 43 | void KUrlPixmapProvider::virtual_hook(int id, void *data) | ||
42 | { | 44 | { | ||
43 | KPixmapProvider::virtual_hook(id, data); | 45 | KPixmapProvider::virtual_hook(id, data); | ||
44 | } | 46 | } | ||
47 | | ||||
48 | #endif |
Ah, no, s/ENABLE_/BUILD_/ in cpp files