mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-02 17:54:45 +00:00
Remove dead code
It's unused.
This commit is contained in:
parent
7c8fc77984
commit
204207f2a9
2 changed files with 0 additions and 20 deletions
|
|
@ -4,7 +4,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "homescreenutils.h"
|
#include "homescreenutils.h"
|
||||||
#include "applicationlistmodel.h"
|
|
||||||
#include "favoritesmodel.h"
|
#include "favoritesmodel.h"
|
||||||
|
|
||||||
#include <QtQml>
|
#include <QtQml>
|
||||||
|
|
@ -19,20 +18,6 @@ HomeScreenUtils::HomeScreenUtils(QObject *parent)
|
||||||
|
|
||||||
HomeScreenUtils::~HomeScreenUtils() = default;
|
HomeScreenUtils::~HomeScreenUtils() = default;
|
||||||
|
|
||||||
ApplicationListModel *HomeScreenUtils::applicationListModel()
|
|
||||||
{
|
|
||||||
if (!m_applicationListModel) {
|
|
||||||
if (m_showAllApps) {
|
|
||||||
m_applicationListModel = new ApplicationListModel(this);
|
|
||||||
} else {
|
|
||||||
m_applicationListModel = new FavoritesModel(this);
|
|
||||||
}
|
|
||||||
// m_applicationListModel->setApplet(this);
|
|
||||||
m_applicationListModel->loadApplications();
|
|
||||||
}
|
|
||||||
return m_applicationListModel;
|
|
||||||
}
|
|
||||||
|
|
||||||
void HomeScreenUtils::stackBefore(QQuickItem *item1, QQuickItem *item2)
|
void HomeScreenUtils::stackBefore(QQuickItem *item1, QQuickItem *item2)
|
||||||
{
|
{
|
||||||
if (!item1 || !item2 || item1 == item2 || item1->parentItem() != item2->parentItem()) {
|
if (!item1 || !item2 || item1 == item2 || item1->parentItem() != item2->parentItem()) {
|
||||||
|
|
|
||||||
|
|
@ -10,20 +10,16 @@
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
|
|
||||||
class QQuickItem;
|
class QQuickItem;
|
||||||
class ApplicationListModel;
|
|
||||||
class FavoritesModel;
|
class FavoritesModel;
|
||||||
|
|
||||||
class HomeScreenUtils : public QObject
|
class HomeScreenUtils : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
Q_PROPERTY(ApplicationListModel *applicationListModel READ applicationListModel CONSTANT)
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
HomeScreenUtils( QObject *parent = 0);
|
HomeScreenUtils( QObject *parent = 0);
|
||||||
~HomeScreenUtils() override;
|
~HomeScreenUtils() override;
|
||||||
|
|
||||||
ApplicationListModel *applicationListModel();
|
|
||||||
|
|
||||||
Q_INVOKABLE void stackBefore(QQuickItem *item1, QQuickItem *item2);
|
Q_INVOKABLE void stackBefore(QQuickItem *item1, QQuickItem *item2);
|
||||||
Q_INVOKABLE void stackAfter(QQuickItem *item1, QQuickItem *item2);
|
Q_INVOKABLE void stackAfter(QQuickItem *item1, QQuickItem *item2);
|
||||||
|
|
||||||
|
|
@ -31,7 +27,6 @@ protected:
|
||||||
// void configChanged() override;
|
// void configChanged() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
ApplicationListModel *m_applicationListModel = nullptr;
|
|
||||||
bool m_showAllApps = false;
|
bool m_showAllApps = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue