2021-03-18 14:07:33 +00:00
|
|
|
/*
|
|
|
|
|
SPDX-FileCopyrightText: 2021 Marco Martin <mart@kde.org>
|
|
|
|
|
|
|
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
|
|
|
|
|
|
class QQuickItem;
|
|
|
|
|
class FavoritesModel;
|
|
|
|
|
|
|
|
|
|
class HomeScreenUtils : public QObject
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
2022-04-06 02:06:05 +00:00
|
|
|
HomeScreenUtils(QObject *parent = 0);
|
2021-03-18 14:07:33 +00:00
|
|
|
~HomeScreenUtils() override;
|
|
|
|
|
|
2022-04-06 02:06:05 +00:00
|
|
|
static HomeScreenUtils *instance()
|
|
|
|
|
{
|
|
|
|
|
static HomeScreenUtils *model = new HomeScreenUtils;
|
|
|
|
|
return model;
|
|
|
|
|
}
|
|
|
|
|
|
2021-03-18 14:07:33 +00:00
|
|
|
Q_INVOKABLE void stackBefore(QQuickItem *item1, QQuickItem *item2);
|
|
|
|
|
Q_INVOKABLE void stackAfter(QQuickItem *item1, QQuickItem *item2);
|
|
|
|
|
|
|
|
|
|
protected:
|
2022-04-06 02:06:05 +00:00
|
|
|
// void configChanged() override;
|
2021-03-18 14:07:33 +00:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
bool m_showAllApps = false;
|
|
|
|
|
};
|