QtPdCom  1.4.1
Public Member Functions | Protected Member Functions | Properties | Private Member Functions | Private Attributes | List of all members
QtPdCom::MessageModelFilter Class Reference

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

#include <MessageModelFilter.h>

Inheritance diagram for QtPdCom::MessageModelFilter:
Inheritance graph
[legend]
Collaboration diagram for QtPdCom::MessageModelFilter:
Collaboration graph
[legend]

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.

Suppy a MessageModel instance as sourceModel property.

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: