Skip to content

Commit

Permalink
[nemo-qml-plugin-calendar] Remove QtGui linkage. Contributes to JB#36025
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Adams committed Dec 11, 2018
1 parent 975e582 commit fe1b964
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions lightweight/calendareventsmodel/calendareventsmodel.cpp
Expand Up @@ -40,7 +40,6 @@
#include <QFile>
#include <QFileInfo>
#include <QDir>
#include <QColor>
#include <qqmlinfo.h>

#include "calendardataserviceproxy.h"
Expand Down Expand Up @@ -244,7 +243,7 @@ QVariant NemoCalendarEventsModel::data(const QModelIndex &index, int role) const
case UidRole:
return eventData.uniqueId;
case ColorRole:
return QColor(eventData.color);
return eventData.color;
default:
return QVariant();
}
Expand Down
1 change: 1 addition & 0 deletions lightweight/calendareventsmodel/calendareventsmodel.pro
Expand Up @@ -5,6 +5,7 @@ TEMPLATE = lib
CONFIG += qt plugin hide_symbols

QT += qml dbus
QT -= gui

target.path = $$[QT_INSTALL_QML]/$$PLUGIN_IMPORT_PATH
INSTALLS += target
Expand Down
1 change: 0 additions & 1 deletion rpm/nemo-qml-plugin-calendar-qt5.spec
Expand Up @@ -8,7 +8,6 @@ License: BSD
URL: https://git.merproject.org/mer-core/nemo-qml-plugin-calendar
Source0: %{name}-%{version}.tar.bz2
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Qml)
BuildRequires: pkgconfig(Qt5Concurrent)
BuildRequires: pkgconfig(libmkcal-qt5)
Expand Down

0 comments on commit fe1b964

Please sign in to comment.