Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit d783ebd0 authored by David Edmundson's avatar David Edmundson

Load KDE QtQuickSettings in Discover

Summary:
As per other QtQuick parts of Plasma

CCBUG: 400908

Test Plan: Compiles. Code is copy pasted from working projects.

Reviewers: #plasma, apol

Reviewed By: apol

Subscribers: apol, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D16811
parent 98b441b2
......@@ -23,7 +23,7 @@ include(ECMQtDeclareLoggingCategory)
find_package(PkgConfig REQUIRED)
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED CoreAddons Config Crash DBusAddons I18n Archive XmlGui ItemModels KIO)
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED CoreAddons Config Crash DBusAddons I18n Archive XmlGui ItemModels KIO Declarative)
find_package(KF5Kirigami2 2.1.0)
find_package(packagekitqt5 1.0.1 CONFIG)
......
......@@ -30,6 +30,7 @@ target_link_libraries(plasma-discover PUBLIC
KF5::XmlGui
KF5::ItemModels
KF5::KIOWidgets
KF5::QuickAddons
Qt5::Quick
Discover::Common
)
......
......@@ -23,6 +23,7 @@
#include <KAboutData>
#include <KCrash>
#include <KDBusService>
#include <KQuickAddons/QtQuickSettings>
#include <KLocalizedString>
#include <QCommandLineParser>
#include <qwindow.h>
......@@ -96,6 +97,7 @@ int main(int argc, char** argv)
app.setAttribute(Qt::AA_DontCreateNativeWidgetSiblings);
app.setAttribute(Qt::AA_UseHighDpiPixmaps, true);
KCrash::initialize();
KQuickAddons::QtQuickSettings::init();
KLocalizedString::setApplicationDomain("plasma-discover");
KAboutData about(QStringLiteral("discover"), i18n("Discover"), version, i18n("An application explorer"),
KAboutLicense::GPL, i18n("© 2010-2018 Plasma Development Team"));
......
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