| 
							 QtPdCom
								 1.5.0
							 
						 | 
					
Table model that combines the rows of multiple MessageModels or MessageModelFilters. More...
#include <MessageModelUnion.h>


Classes | |
| struct | Impl | 
Public Types | |
| enum | Columns { TextColumn = 0, TimeOccurredColumn, TimeResetColumn, SourceColumn } | 
Signals | |
| void | currentMessage (const QtPdCom::Message *message) | 
| Emitted, when a new message gets active.  More... | |
Public Member Functions | |
| MessageModelUnion (QObject *parent=nullptr) | |
| Constructor.  More... | |
| virtual | ~MessageModelUnion () | 
| Destructor.  More... | |
| void | addSourceModel (QAbstractItemModel *, QString=QString()) | 
| void | removeSourceModel (QAbstractItemModel *) | 
| void | clearSourceModels () | 
| virtual int | rowCount (const QModelIndex &) const override | 
| virtual int | columnCount (const QModelIndex &) const override | 
| virtual QVariant | data (const QModelIndex &, int) const override | 
| virtual QVariant | headerData (int, Qt::Orientation, int) const override | 
| virtual Qt::ItemFlags | flags (const QModelIndex &) const override | 
| virtual bool | canFetchMore (const QModelIndex &) const override | 
| virtual void | fetchMore (const QModelIndex &) override | 
Private Attributes | |
| struct Q_DECL_HIDDEN | Impl | 
| std::unique_ptr< Impl > | impl | 
Table model that combines the rows of multiple MessageModels or MessageModelFilters.
      
  | 
  explicit | 
Constructor.
      
  | 
  virtual | 
Destructor.
References clearSourceModels().
| void MessageModelUnion::addSourceModel | ( | QAbstractItemModel * | model, | 
| QString | sourceName = QString()  | 
        ||
| ) | 
References QtPdCom::MessageModel::currentMessage(), and impl.
      
  | 
  overridevirtual | 
References impl.
| void MessageModelUnion::clearSourceModels | ( | ) | 
References impl.
Referenced by ~MessageModelUnion().
      
  | 
  overridevirtual | 
      
  | 
  signal | 
Emitted, when a new message gets active.
This signal announces the most recent message. It is only emitted for the first message getting active, or for a subsequent message with a higher type.
In QML, a currentMessage property is available.
| message | The message that got active. The signal is emitted with message being NULL, if no messages are active any more. | 
Referenced by QtPdCom::MessageModelUnion::Impl::updateCurrentMessage().
      
  | 
  overridevirtual | 
References impl, SourceColumn, and TextColumn.
      
  | 
  overridevirtual | 
References impl.
      
  | 
  overridevirtual | 
References impl, SourceColumn, and TextColumn.
      
  | 
  overridevirtual | 
References SourceColumn, TextColumn, TimeOccurredColumn, and TimeResetColumn.
| void MessageModelUnion::removeSourceModel | ( | QAbstractItemModel * | model | ) | 
References impl.
      
  | 
  overridevirtual | 
References impl.
      
  | 
  private | 
      
  | 
  private | 
Referenced by addSourceModel(), canFetchMore(), clearSourceModels(), data(), fetchMore(), flags(), removeSourceModel(), and rowCount().