Akonadi::StatisticsProxyModel Class
class Akonadi::StatisticsProxyModelA proxy model that exposes collection statistics through extra columns. More...
| Header: | #include <Akonadi/StatisticsProxyModel> |
| CMake: | find_package(KPim6 REQUIRED COMPONENTS AkonadiCore)target_link_libraries(mytarget PRIVATE KPim6::AkonadiCore) |
Public Functions
| StatisticsProxyModel(QObject *parent = nullptr) | |
| virtual | ~StatisticsProxyModel() override |
| bool | isExtraColumnsEnabled() const |
| bool | isToolTipEnabled() const |
| void | setExtraColumnsEnabled(bool enable) |
| void | setToolTipEnabled(bool enable) |
Detailed Description
This class can be used on top of an EntityTreeModel to display extra columns summarizing statistics of collections.
Akonadi::EntityTreeModel *model = new Akonadi::EntityTreeModel( ... ); Akonadi::StatisticsProxyModel *proxy = new Akonadi::StatisticsProxyModel(); proxy->setSourceModel( model ); Akonadi::EntityTreeView *view = new Akonadi::EntityTreeView( this ); view->setModel( proxy );
Author: Kevin Ottens <ervin@kde.org>, now maintained by David Faure <faure@kde.org>
Member Function Documentation
[explicit] StatisticsProxyModel::StatisticsProxyModel(QObject *parent = nullptr)
Creates a new statistics proxy model.
parent The parent object.
[override virtual noexcept] StatisticsProxyModel::~StatisticsProxyModel()
Destroys the statistics proxy model.
bool StatisticsProxyModel::isExtraColumnsEnabled() const
Return true if we display extra statistics columns, otherwise false
bool StatisticsProxyModel::isToolTipEnabled() const
Return true if we display tooltips, otherwise false
void StatisticsProxyModel::setExtraColumnsEnabled(bool enable)
enable Display extra statistics columns By default, the extra columns are enabled.
See also isExtraColumnsEnabled().
void StatisticsProxyModel::setToolTipEnabled(bool enable)
enable Display tooltips By default, tooltips are disabled.
See also isToolTipEnabled().