Commit 2538a6a3 authored by Nicolas Fella's avatar Nicolas Fella Committed by Nicolas Fella

QtGui is not needed in interfaces

parent b0ae40f7
......@@ -66,7 +66,6 @@ generate_export_header(kdeconnectinterfaces EXPORT_FILE_NAME ${CMAKE_CURRENT_BIN
target_link_libraries(kdeconnectinterfaces
LINK_PUBLIC
Qt5::Gui
Qt5::DBus
LINK_PRIVATE
KF5::ConfigCore
......
......@@ -26,7 +26,6 @@
#include <QString>
#include <QDBusInterface>
#include <QDBusPendingReply>
#include <QIcon>
#include <QDBusServiceWatcher>
#include "dbusinterfaces.h"
......@@ -253,10 +252,6 @@ QVariant DevicesModel::data(const QModelIndex& index, int role) const
switch (role) {
case Qt::SizeHintRole:
return QSize(0, 32);
case IconModelRole: {
QString icon = data(index, IconNameRole).toString();
return QIcon::fromTheme(icon);
}
case IdModelRole:
return device->id();
case NameModelRole:
......
......@@ -22,7 +22,6 @@
#define DEVICESMODEL_H
#include <QAbstractListModel>
#include <QPixmap>
#include <QList>
#include "interfaces/kdeconnectinterfaces_export.h"
......
......@@ -24,8 +24,6 @@
#include <QDebug>
#include <QDBusInterface>
#include <QIcon>
//#include "modeltest.h"
//In older Qt released, qAsConst isnt available
......@@ -184,8 +182,6 @@ QVariant NotificationsModel::data(const QModelIndex& index, int role) const
//FIXME: This function gets called lots of times, producing lots of dbus calls. Add a cache?
switch (role) {
case IconModelRole:
return QIcon::fromTheme(QStringLiteral("device-notifier"));
case IdModelRole:
return notification->internalId();
case NameModelRole:
......
......@@ -23,7 +23,6 @@
#include <QAbstractItemModel>
#include <QAbstractListModel>
#include <QPixmap>
#include <QList>
#include "interfaces/dbusinterfaces.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment