shift-shell/containments/homescreen/homescreen.h
Aleix Pol 1eb7965fca HomeScreen: Support the meta key
While using the shell, add some value to the Meta key so the shell is
more useful when using a keyboard.
2021-10-18 11:12:43 +00:00

43 lines
956 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(bool showingDesktop READ showingDesktop WRITE setShowingDesktop NOTIFY showingDesktopChanged)
public:
HomeScreen(QObject *parent, const QVariantList &args);
~HomeScreen() override;
void configChanged() override;
bool showingDesktop() const;
void setShowingDesktop(bool showingDesktop);
Q_INVOKABLE void stackBefore(QQuickItem *item1, QQuickItem *item2);
Q_INVOKABLE void stackAfter(QQuickItem *item1, QQuickItem *item2);
Q_SIGNALS:
void showingDesktopChanged(bool showingDesktop);
protected:
// void configChanged() override;
private:
bool m_showAllApps = false;
};
#endif