shift-shell/containments/homescreens/halcyon/homescreen.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
794 B
C++
Raw Normal View History

// SPDX-FileCopyrightText: 2022 Devin Lin <devin@kde.org>
2022-06-18 19:42:29 +00:00
// SPDX-License-Identifier: GPL-2.0-or-later
#include "homescreen.h"
#include <KIO/ApplicationLauncherJob>
2022-06-18 19:42:29 +00:00
#include <KWindowSystem>
#include <QDebug>
#include <QQuickItem>
K_PLUGIN_CLASS_WITH_JSON(HomeScreen, "metadata.json")
2022-06-18 19:42:29 +00:00
HomeScreen::HomeScreen(QObject *parent, const KPluginMetaData &data, const QVariantList &args)
: Plasma::Containment{parent, data, args}
, m_settings{new HalcyonSettings{this, this}}
, m_pinnedModel{new PinnedModel{m_settings, this}}
2022-06-18 19:42:29 +00:00
{
setHasConfigurationInterface(true);
}
HomeScreen::~HomeScreen() = default;
HalcyonSettings *HomeScreen::settings() const
{
return m_settings;
}
PinnedModel *HomeScreen::pinnedModel() const
{
return m_pinnedModel;
}
2022-06-18 19:42:29 +00:00
#include "homescreen.moc"