mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
Similar to https://invent.kde.org/plasma/plasma-mobile/-/merge_requests/784 but for halcyon (see rationale there).
34 lines
794 B
C++
34 lines
794 B
C++
// SPDX-FileCopyrightText: 2022 Devin Lin <devin@kde.org>
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#include "homescreen.h"
|
|
|
|
#include <KIO/ApplicationLauncherJob>
|
|
#include <KWindowSystem>
|
|
|
|
#include <QDebug>
|
|
#include <QQuickItem>
|
|
|
|
K_PLUGIN_CLASS_WITH_JSON(HomeScreen, "metadata.json")
|
|
|
|
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}}
|
|
{
|
|
setHasConfigurationInterface(true);
|
|
}
|
|
|
|
HomeScreen::~HomeScreen() = default;
|
|
|
|
HalcyonSettings *HomeScreen::settings() const
|
|
{
|
|
return m_settings;
|
|
}
|
|
|
|
PinnedModel *HomeScreen::pinnedModel() const
|
|
{
|
|
return m_pinnedModel;
|
|
}
|
|
|
|
#include "homescreen.moc"
|