Don't require KF5::IconThemes for Mobile

It just gives us a 48px = Large, so not worth to have that extra dependency for
that in my opinion
This commit is contained in:
Albert Astals Cid 2022-03-29 00:05:49 +02:00
parent 5042078495
commit ce8401e917
3 changed files with 2 additions and 5 deletions

View file

@ -106,7 +106,6 @@ find_package(KF5 ${KF5_REQUIRED_VERSION} REQUIRED COMPONENTS
ConfigWidgets
CoreAddons
I18n
IconThemes
KIO
TextWidgets
ThreadWeaver
@ -118,7 +117,7 @@ find_package(KF5 ${KF5_REQUIRED_VERSION} REQUIRED COMPONENTS
)
if (BUILD_DESKTOP)
find_package(KF5 ${KF5_REQUIRED_VERSION} REQUIRED COMPONENTS Parts Crash)
find_package(KF5 ${KF5_REQUIRED_VERSION} REQUIRED COMPONENTS Parts Crash IconThemes)
endif()
if(KF5Wallet_FOUND)

View file

@ -7,7 +7,6 @@
#include "pagepainter.h"
// qt / kde includes
#include <KIconLoader>
#include <QApplication>
#include <QDebug>
#include <QIcon>
@ -33,7 +32,7 @@
#include "settings.h"
#include "settings_core.h"
Q_GLOBAL_STATIC_WITH_ARGS(QPixmap, busyPixmap, (QIcon::fromTheme(QLatin1String("okular")).pixmap(KIconLoader::SizeLarge)))
Q_GLOBAL_STATIC_WITH_ARGS(QPixmap, busyPixmap, (QIcon::fromTheme(QLatin1String("okular")).pixmap(48)))
#define TEXTANNOTATION_ICONSIZE 24

View file

@ -24,7 +24,6 @@ target_link_libraries(okularplugin
Qt5::Xml
Qt5::Svg
KF5::Bookmarks
KF5::IconThemes
KF5::I18n
KF5::Service
okularcore