mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
parent
9f1b76c4cf
commit
d0291cb211
4 changed files with 5 additions and 5 deletions
|
|
@ -63,7 +63,7 @@ QHash<int, QByteArray> ApplicationListModel::roleNames() const
|
|||
|
||||
void ApplicationListModel::sycocaDbChanged()
|
||||
{
|
||||
loadApplications();
|
||||
load();
|
||||
}
|
||||
|
||||
void ApplicationListModel::windowCreated(KWayland::Client::PlasmaWindow *window)
|
||||
|
|
@ -93,7 +93,7 @@ void ApplicationListModel::windowCreated(KWayland::Client::PlasmaWindow *window)
|
|||
}
|
||||
}
|
||||
|
||||
void ApplicationListModel::loadApplications()
|
||||
void ApplicationListModel::load()
|
||||
{
|
||||
auto cfg = KSharedConfig::openConfig(QStringLiteral("applications-blacklistrc"));
|
||||
auto blgroup = KConfigGroup(cfg, QStringLiteral("Applications"));
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ public:
|
|||
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE;
|
||||
QHash<int, QByteArray> roleNames() const Q_DECL_OVERRIDE;
|
||||
|
||||
Q_INVOKABLE virtual void loadApplications();
|
||||
Q_INVOKABLE virtual void load();
|
||||
Q_INVOKABLE void runApplication(const QString &storageId);
|
||||
|
||||
Q_INVOKABLE void setMinimizedDelegate(int row, QQuickItem *delegate);
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ public:
|
|||
QString uniqueToStorageId(const QString &uniqueId) const;
|
||||
|
||||
void loadSettings();
|
||||
Q_INVOKABLE void load();
|
||||
Q_INVOKABLE void load() override;
|
||||
|
||||
int count();
|
||||
int favoriteCount();
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ MobileShell.HomeScreen {
|
|||
property bool componentComplete: false
|
||||
|
||||
Component.onCompleted: {
|
||||
HomeScreenLib.ApplicationListModel.loadApplications();
|
||||
HomeScreenLib.ApplicationListModel.load();
|
||||
HomeScreenLib.DesktopModel.load();
|
||||
|
||||
// ensure the gestures work immediately on load
|
||||
|
|
|
|||
Loading…
Reference in a new issue