Git commit 72220b777b68715ceb5bce7907cd0bd9b0b4716d by Tobias Leupold. Committed on 14/08/2016 at 17:11. Pushed by tleupold into branch 'master'. Fixed some other KIcon calls. M +6 -5 BackgroundJobs/HandleVideoThumbnailRequestJob.cpp M +4 -4 Browser/AbstractCategoryModel.cpp http://commits.kde.org/kphotoalbum/72220b777b68715ceb5bce7907cd0bd9b0b4716d diff --git a/BackgroundJobs/HandleVideoThumbnailRequestJob.cpp b/Background= Jobs/HandleVideoThumbnailRequestJob.cpp index 2306783..2972ecf 100644 --- a/BackgroundJobs/HandleVideoThumbnailRequestJob.cpp +++ b/BackgroundJobs/HandleVideoThumbnailRequestJob.cpp @@ -1,5 +1,5 @@ /* Copyright 2012 Jesper K. Pedersen - = + This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of @@ -7,12 +7,12 @@ accepted by the membership of KDE e.V. (or its successor approved by the membership of KDE e.V.), which shall act as a proxy defined in Section 14 of version 3 of the license. - = + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - = + You should have received a copy of the GNU General Public License along with this program. If not, see . */ @@ -22,9 +22,9 @@ #include #include #include +#include = #include -#include #include = #include @@ -106,7 +106,8 @@ void HandleVideoThumbnailRequestJob::sendResult(QImage = image) = QImage HandleVideoThumbnailRequestJob::brokenImage() const { - return KIcon( QString::fromLatin1( "applications-multimedia" ) ).pixm= ap(ThumbnailView::CellGeometry::preferredIconSize()).toImage(); + return QIcon::fromTheme(QString::fromUtf8("applications-multimedia")).= pixmap( + ThumbnailView::CellGeometry::preferredIconSize()).toImage(); } = } // namespace BackgroundJobs diff --git a/Browser/AbstractCategoryModel.cpp b/Browser/AbstractCategoryMo= del.cpp index 38627a8..36948c0 100644 --- a/Browser/AbstractCategoryModel.cpp +++ b/Browser/AbstractCategoryModel.cpp @@ -22,7 +22,7 @@ #include #include #include -#include +#include #include "enums.h" = Browser::AbstractCategoryModel::AbstractCategoryModel( const DB::CategoryP= tr& category, const DB::ImageSearchInfo& info ) @@ -70,9 +70,9 @@ QPixmap Browser::AbstractCategoryModel::icon( const QStri= ng& name ) const } = if ( m_category->viewType() =3D=3D DB::Category::TreeView || m_categor= y->viewType() =3D=3D DB::Category::IconView ) { - if ( DB::ImageDB::instance()->memberMap().isGroup( m_category->nam= e(), name ) ) - return KIcon( QString::fromLatin1( "folder-image" ) ).pixmap(2= 2); - else { + if (DB::ImageDB::instance()->memberMap().isGroup(m_category->name(= ), name)) { + return QIcon::fromTheme(QString::fromUtf8("folder-image")).pix= map(22); + } else { return m_category->icon(); } }