Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
servicesproxymodel.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
3
4#ifndef SERVICESFILTERPROXYMODEL_H
5#define SERVICESFILTERPROXYMODEL_H
6
7#include <QSortFilterProxyModel>
8
10{
12
13public:
15 QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const override;
16
17protected:
18 bool lessThan(const QModelIndex &left, const QModelIndex &right) const override;
19};
20
21#endif // SERVICESFILTERPROXYMODEL_H
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)