mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 07:03:08 +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 "applicationlistmodel.h"
|
||||
#include "favoritesmodel.h"
|
||||
|
||||
#include <QtQml>
|
||||
|
|
@ -19,20 +18,6 @@ HomeScreenUtils::HomeScreenUtils(QObject *parent)
|
|||
|
||||
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)
|
||||
{
|
||||
if (!item1 || !item2 || item1 == item2 || item1->parentItem() != item2->parentItem()) {
|
||||
|
|
|
|||
|
|
@ -10,20 +10,16 @@
|
|||
#include <QObject>
|
||||
|
||||
class QQuickItem;
|
||||
class ApplicationListModel;
|
||||
class FavoritesModel;
|
||||
|
||||
class HomeScreenUtils : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(ApplicationListModel *applicationListModel READ applicationListModel CONSTANT)
|
||||
|
||||
public:
|
||||
HomeScreenUtils( QObject *parent = 0);
|
||||
~HomeScreenUtils() override;
|
||||
|
||||
ApplicationListModel *applicationListModel();
|
||||
|
||||
Q_INVOKABLE void stackBefore(QQuickItem *item1, QQuickItem *item2);
|
||||
Q_INVOKABLE void stackAfter(QQuickItem *item1, QQuickItem *item2);
|
||||
|
||||
|
|
@ -31,7 +27,6 @@ protected:
|
|||
// void configChanged() override;
|
||||
|
||||
private:
|
||||
ApplicationListModel *m_applicationListModel = nullptr;
|
||||
bool m_showAllApps = false;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue