LibEngsas
Public Slots | Signals | Public Member Functions | Private Slots | Private Attributes | List of all members
ESettingsModel Class Reference

Model to present the user a tree of possible settings pages. More...

#include <esettingsmodel.h>

+ Inheritance diagram for ESettingsModel:
+ Collaboration diagram for ESettingsModel:

Public Slots

void reloadSettings ()

Signals

void reloadSettingsRequest ()
void doReloadSettings ()
- Signals inherited from EAbstractItemModel
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().
void eRowsRemoved (const QModelIndex &parent, int start, int end)
 Replacement of private signal rowsRemoved().

Public Member Functions

 ESettingsModel (QObject *parent=0)
 ~ESettingsModel ()
bool addItem (ESettingsModelItem *item)
ESettingsModelItemitemFromIndex (QModelIndex index) const
bool save (QString &error)
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
int columnCount (const QModelIndex &parent=QModelIndex()) const
int rowCount (const QModelIndex &parent=QModelIndex()) const
QModelIndex parent (const QModelIndex &child) const
QModelIndex index (int row, int column, const QModelIndex &parent=QModelIndex()) const
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
- Public Member Functions inherited from EAbstractItemModel
 EAbstractItemModel (QObject *parent=0)
virtual ~EAbstractItemModel ()

Private Slots

void reloadSettingsRequestByPass ()

Private Attributes

ESettingsModelItemroot
bool reloadRequested
 Set to true by reloadSettingsRequestByPass(), if a reloadSettingsRequest is catched.

Additional Inherited Members

- Static Public Member Functions inherited from EAbstractItemModel
static void connectByPass (QObject *parent, EAbstractItemModel *child)
static void connectByPass (EAbstractItemModel *parent, QObject *child)
- Protected Slots inherited from EAbstractItemModel
virtual void errorByPass (const QString &message)
virtual void warningByPass (const QString &message)
virtual void informationByPass (const QString &message)

Detailed Description

Model to present the user a tree of possible settings pages.

Note
Must be setup completly before showing in a view, because no signals to indicate changes are implemented.

Constructor & Destructor Documentation

ESettingsModel::ESettingsModel ( QObject *  parent = 0)
ESettingsModel::~ESettingsModel ( )

Member Function Documentation

bool ESettingsModel::addItem ( ESettingsModelItem item)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int ESettingsModel::columnCount ( const QModelIndex &  parent = QModelIndex()) const

+ Here is the caller graph for this function:

QVariant ESettingsModel::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const

+ Here is the call graph for this function:

void ESettingsModel::doReloadSettings ( )
signal

+ Here is the caller graph for this function:

QVariant ESettingsModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const
QModelIndex ESettingsModel::index ( int  row,
int  column,
const QModelIndex &  parent = QModelIndex() 
) const

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ESettingsModelItem * ESettingsModel::itemFromIndex ( QModelIndex  index) const

+ Here is the caller graph for this function:

QModelIndex ESettingsModel::parent ( const QModelIndex &  child) const

+ Here is the call graph for this function:

void ESettingsModel::reloadSettings ( )
inlineslot

+ Here is the caller graph for this function:

void ESettingsModel::reloadSettingsRequest ( )
signal

+ Here is the caller graph for this function:

void ESettingsModel::reloadSettingsRequestByPass ( )
inlineprivateslot

+ Here is the caller graph for this function:

int ESettingsModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool ESettingsModel::save ( QString &  error)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

bool ESettingsModel::reloadRequested
private

Set to true by reloadSettingsRequestByPass(), if a reloadSettingsRequest is catched.

ESettingsModelItem* ESettingsModel::root
private

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