QtPdCom  1.5.2
QtPdCom::MessageModelFilter Class Reference

Proxy model to filter Messages based on their reset time. More...

#include <MessageModelFilter.h>

Inheritance diagram for QtPdCom::MessageModelFilter:
Collaboration diagram for QtPdCom::MessageModelFilter:

Public Member Functions

 MessageModelFilter (QObject *parent=nullptr)
 
 ~MessageModelFilter ()
 
bool getShowOnlyActiveMessages () const
 
void setShowOnlyActiveMessages (bool value)
 

Protected Member Functions

bool filterAcceptsRow (int sourceRow, const QModelIndex &sourceParent) const override
 

Properties

bool showOnlyActiveMessages
 

Private Member Functions

 Q_DECLARE_PRIVATE (MessageModelFilter)
 

Private Attributes

QScopedPointer< MessageModelFilterPrivate > const d_ptr
 

Detailed Description

Proxy model to filter Messages based on their reset time.

This Proxy model allows to filter out acknowledged messages. Messages with a non-empty reset timestamp are acknowledged.

This class is also available in QML.

Supply a MessageModel instance as sourceModel property of QSortFilterProxyModel.

Constructor & Destructor Documentation

◆ MessageModelFilter()

MessageModelFilter::MessageModelFilter ( QObject * parent = nullptr)
explicit

◆ ~MessageModelFilter()

MessageModelFilter::~MessageModelFilter ( )
default

Member Function Documentation

◆ filterAcceptsRow()

bool MessageModelFilter::filterAcceptsRow ( int sourceRow,
const QModelIndex & sourceParent ) const
overrideprotected

◆ getShowOnlyActiveMessages()

bool MessageModelFilter::getShowOnlyActiveMessages ( ) const

◆ Q_DECLARE_PRIVATE()

QtPdCom::MessageModelFilter::Q_DECLARE_PRIVATE ( MessageModelFilter )
private

◆ setShowOnlyActiveMessages()

void MessageModelFilter::setShowOnlyActiveMessages ( bool value)

Member Data Documentation

◆ d_ptr

QScopedPointer<MessageModelFilterPrivate> const QtPdCom::MessageModelFilter::d_ptr
private

Property Documentation

◆ showOnlyActiveMessages

bool QtPdCom::MessageModelFilter::showOnlyActiveMessages
readwrite

The documentation for this class was generated from the following files: