KCGroups
kapplicationscopelistmodel.cpp
17 KApplicationScopeListModel::KApplicationScopeListModel(KApplicationScopeLister *lister, QObject *parent)
35 return !app->description().isEmpty() ? app->description() : !app->desktopName().isEmpty() ? app->desktopName() : app->id();
54 KApplicationScopeListModelPrivate::KApplicationScopeListModelPrivate(KApplicationScopeLister *lister,
64 QObject::connect(m_lister, &KApplicationScopeLister::pathRemoved, q_ptr, [this](const QString &path) {
88 m_apps.begin(), m_apps.end(), [&path](const KApplicationScope *app) { return app->path() == path; });
void pathRemoved(const QString &path)
emitted when an application is stopped
DisplayRole
QVariant fromValue(const T &value)
void propertyChanged(const QString &propertyName)
emitted when any cgroup resource property has changed
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void pathAdded(const QString &path, const QString &id)
emitted when a new application is launched
A desktop application in a systemd transient scope.
Definition: kapplicationscope.h:19
Keeps an updated list of desktop application systemd scopes.
Definition: kapplicationscopelister.h:17
int row() const const
QString path(const QString &relativePath)
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const const override
A ListModel for use in QML to interact with an updated list of KApplicationScope's.
Definition: kapplicationscopelistmodel.h:21
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Dec 1 2023 04:13:56 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Dec 1 2023 04:13:56 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.