Git commit 0c1f82389e28837e466b717c1ba70aade73e5c1e by Tobias Leupold. Committed on 14/08/2016 at 14:08. Pushed by tleupold into branch 'master'. Replaced depreciated KIcon code with QIcon. M +6 -6 Browser/OverviewPage.cpp http://commits.kde.org/kphotoalbum/0c1f82389e28837e466b717c1ba70aade73e5c1e diff --git a/Browser/OverviewPage.cpp b/Browser/OverviewPage.cpp index 859a334..9cf53a5 100644 --- a/Browser/OverviewPage.cpp +++ b/Browser/OverviewPage.cpp @@ -1,4 +1,4 @@ -/* Copyright (C) 2003-2010 Jesper K. Pedersen +/* Copyright (C) 2003-2016 Jesper K. Pedersen = This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public @@ -30,7 +30,7 @@ #include #include #include -#include +#include #include #include "DB/CategoryCollection.h" = @@ -133,7 +133,7 @@ QVariant Browser::OverviewPage::exivInfo( int role ) co= nst if ( role =3D=3D Qt::DisplayRole ) return i18n("Exif Info"); else if ( role =3D=3D Qt::DecorationRole ) { - return KIcon(QString::fromLatin1("document-properties")).pixmap(TH= UMBNAILSIZE); + return QIcon::fromTheme(QString::fromLatin1("document-properties")= ).pixmap(THUMBNAILSIZE); } = return QVariant(); @@ -144,7 +144,7 @@ QVariant Browser::OverviewPage::searchInfo( int role ) = const if ( role =3D=3D Qt::DisplayRole ) return i18nc("@action Search button in the browser view.","Search"= ); else if ( role =3D=3D Qt::DecorationRole ) - return KIcon( QString::fromLatin1( "system-search" ) ).pixmap(THUM= BNAILSIZE); + return QIcon::fromTheme( QString::fromLatin1( "system-search" ) ).= pixmap(THUMBNAILSIZE); return QVariant(); } = @@ -153,7 +153,7 @@ QVariant Browser::OverviewPage::untaggedImagesInfo( int= role ) const if ( role =3D=3D Qt::DisplayRole ) return i18n("Untagged Images"); else if ( role =3D=3D Qt::DecorationRole ) - return KIcon(QString::fromUtf8("archive-insert")).pixmap(THUMBNAIL= SIZE); + return QIcon::fromTheme(QString::fromUtf8("archive-insert")).pixma= p(THUMBNAILSIZE); return QVariant(); = } @@ -163,7 +163,7 @@ QVariant Browser::OverviewPage::imageInfo( int role ) c= onst if ( role =3D=3D Qt::DisplayRole ) return i18n("Show Thumbnails"); else if ( role =3D=3D Qt::DecorationRole ) - return KIcon(QString::fromUtf8("view-preview")).pixmap(THUMBNAILSI= ZE); + return QIcon::fromTheme(QString::fromUtf8("view-preview")).pixmap(= THUMBNAILSIZE); return QVariant(); } =20