mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
41 lines
906 B
C++
41 lines
906 B
C++
/*
|
|
SPDX-FileCopyrightText: 2015 Marco Martin <mart@kde.org>
|
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
#ifndef HOMESCREEN_H
|
|
#define HOMESCREEN_H
|
|
|
|
|
|
#include <Plasma/Containment>
|
|
|
|
class QQuickItem;
|
|
class ApplicationListModel;
|
|
class FavoritesModel;
|
|
|
|
class HomeScreen : public Plasma::Containment
|
|
{
|
|
Q_OBJECT
|
|
Q_PROPERTY(ApplicationListModel *applicationListModel READ applicationListModel CONSTANT)
|
|
|
|
public:
|
|
HomeScreen( QObject *parent, const QVariantList &args );
|
|
~HomeScreen() override;
|
|
|
|
void configChanged() override;
|
|
|
|
ApplicationListModel *applicationListModel();
|
|
|
|
Q_INVOKABLE void stackBefore(QQuickItem *item1, QQuickItem *item2);
|
|
Q_INVOKABLE void stackAfter(QQuickItem *item1, QQuickItem *item2);
|
|
|
|
protected:
|
|
// void configChanged() override;
|
|
|
|
private:
|
|
ApplicationListModel *m_applicationListModel = nullptr;
|
|
bool m_showAllApps = false;
|
|
};
|
|
|
|
#endif
|