4#ifndef SERVICESFILTERPROXYMODEL_H
5#define SERVICESFILTERPROXYMODEL_H
7#include <QSortFilterProxyModel>
18 bool lessThan(
const QModelIndex &left,
const QModelIndex &right)
const override;
QDBusViewModel(const QString &service, const QDBusConnection &connection)
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const override
Returns the data stored under the given role for the item referred to by the index.
bool eventFilter(QObject *obj, QEvent *event) override
Filters events if this object has been installed as an event filter for the watched object.
void saveState(QSettings *settings) const
void restoreState(const QSettings *settings)
void showEvent(QShowEvent *) override
This event handler can be reimplemented in a subclass to receive widget show events which are passed ...
ServicesModel(QObject *parent=nullptr)
Qt::ItemFlags flags(const QModelIndex &index) const override
Returns the flags for the item with the given index.
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override
\reimp
bool lessThan(const QModelIndex &left, const QModelIndex &right) const override
Returns true if the value of the item referred to by the given index source_left is less than the val...
static QString topSplitterStateKey()
static QString getDbusSignature(const QMetaMethod &method)
static QString splitterStateKey()
static QModelIndex findItem(QStringListModel *servicesModel, const QString &name)