diff options
| author | Emmanuel Pescosta <[email protected]> | 2014-09-12 13:02:43 +0200 |
|---|---|---|
| committer | Emmanuel Pescosta <[email protected]> | 2014-09-12 13:15:54 +0200 |
| commit | 4de8cf43e62e23b766d9d457e060670401ce6128 (patch) | |
| tree | da56202877e50acbaac6c07c903d467460f70673 /src/panels/places/placesitemmodel.cpp | |
| parent | b111b1482ad7f2fe7989e3ee53ddfe04eb73fa9c (diff) | |
Ported KIcon to QIcon
REVIEW: 120159
Diffstat (limited to 'src/panels/places/placesitemmodel.cpp')
| -rw-r--r-- | src/panels/places/placesitemmodel.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/panels/places/placesitemmodel.cpp b/src/panels/places/placesitemmodel.cpp index 3eedec5e6..8eb79a8a8 100644 --- a/src/panels/places/placesitemmodel.cpp +++ b/src/panels/places/placesitemmodel.cpp @@ -30,7 +30,7 @@ #include <KBookmarkManager> #include <KComponentData> #include <KDebug> -#include <KIcon> +#include <QIcon> #include <kprotocolinfo.h> #include <KLocale> #include <KStandardDirs> @@ -255,7 +255,7 @@ QAction* PlacesItemModel::ejectAction(int index) const { const PlacesItem* item = placesItem(index); if (item && item->device().is<Solid::OpticalDisc>()) { - return new QAction(KIcon("media-eject"), i18nc("@item", "Eject '%1'", item->text()), 0); + return new QAction(QIcon::fromTheme("media-eject"), i18nc("@item", "Eject '%1'", item->text()), 0); } return 0; @@ -304,7 +304,7 @@ QAction* PlacesItemModel::teardownAction(int index) const return new QAction(text, 0); } - return new QAction(KIcon(iconName), text, 0); + return new QAction(QIcon::fromTheme(iconName), text, 0); } void PlacesItemModel::requestEject(int index) |
