LibEngsas
Signals | Public Member Functions | Static Public Member Functions | Protected Slots | Private Slots | List of all members
EAbstractItemModel Class Reference

Replacement of QAbstractItemModel to provide convenience signals for message handling. More...

#include <eabstractitemmodel.h>

+ Inheritance diagram for EAbstractItemModel:
+ Collaboration diagram for EAbstractItemModel:

Signals

void error (QString msg)
 
void warning (QString msg)
 
void information (QString msg)
 
void eRowsInserted (const QModelIndex &parent, int start, int end)
 Replacement of private signal rowsInserted(). More...
 
void eRowsRemoved (const QModelIndex &parent, int start, int end)
 Replacement of private signal rowsRemoved(). More...
 

Public Member Functions

 EAbstractItemModel (QObject *parent=0)
 
virtual ~EAbstractItemModel ()
 

Static Public Member Functions

static void connectByPass (QObject *parent, EAbstractItemModel *child)
 
static void connectByPass (EAbstractItemModel *parent, QObject *child)
 

Protected Slots

virtual void errorByPass (const QString &message)
 
virtual void warningByPass (const QString &message)
 
virtual void informationByPass (const QString &message)
 

Private Slots

void rowsInsertedByPass (const QModelIndex &parent, int start, int end)
 
void rowsRemovedByPass (const QModelIndex &parent, int start, int end)
 

Detailed Description

Replacement of QAbstractItemModel to provide convenience signals for message handling.

Note
Since rowsInserted() and rowsRemoved() are a private signals of QAbstractItemModel, they are not useable with subclasses of EAbstractItemModel. Therefore EAbstractItemModel provides the public signals eRowsInserted() and eRowsRemoved() as replacements, which are also emitted, if rowsInserted() btw. rowsRemoved() are emitted. This should not effect subclasses of QAbstractItemView, because QAbstractItemViews are friends of QAbstractItemModel.

Constructor & Destructor Documentation

EAbstractItemModel::EAbstractItemModel ( QObject *  parent = 0)

+ Here is the call graph for this function:

virtual EAbstractItemModel::~EAbstractItemModel ( )
inlinevirtual

Member Function Documentation

void EAbstractItemModel::connectByPass ( QObject *  parent,
EAbstractItemModel child 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void EAbstractItemModel::connectByPass ( EAbstractItemModel parent,
QObject *  child 
)
static

+ Here is the call graph for this function:

void EAbstractItemModel::eRowsInserted ( const QModelIndex &  parent,
int  start,
int  end 
)
signal

Replacement of private signal rowsInserted().

+ Here is the caller graph for this function:

void EAbstractItemModel::eRowsRemoved ( const QModelIndex &  parent,
int  start,
int  end 
)
signal

Replacement of private signal rowsRemoved().

+ Here is the caller graph for this function:

void EAbstractItemModel::error ( QString  msg)
signal

+ Here is the caller graph for this function:

virtual void EAbstractItemModel::errorByPass ( const QString &  message)
inlineprotectedvirtualslot
See Also
error() if a child emits this signal, this class emits error() (it passes the childs signal upwards)
EWidget::errorByPass()
EDialog::errorByPass()

+ Here is the caller graph for this function:

void EAbstractItemModel::information ( QString  msg)
signal

+ Here is the caller graph for this function:

virtual void EAbstractItemModel::informationByPass ( const QString &  message)
inlineprotectedvirtualslot
See Also
information() passes the emitted signals from it's child forward
EWidget::informationByPass()
EDialog::informationByPass()

+ Here is the caller graph for this function:

void EAbstractItemModel::rowsInsertedByPass ( const QModelIndex &  parent,
int  start,
int  end 
)
privateslot

+ Here is the caller graph for this function:

void EAbstractItemModel::rowsRemovedByPass ( const QModelIndex &  parent,
int  start,
int  end 
)
privateslot

+ Here is the caller graph for this function:

void EAbstractItemModel::warning ( QString  msg)
signal

+ Here is the caller graph for this function:

virtual void EAbstractItemModel::warningByPass ( const QString &  message)
inlineprotectedvirtualslot
See Also
warning() passes the emitted signals from it's child forward
EWidget::warningByPass()
EDialog::warningByPass()

+ Here is the caller graph for this function:


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