LibEngsas
|
Model to present the user a tree of possible settings pages. More...
#include <esettingsmodel.h>
Public Slots | |
void | reloadSettings () |
Signals | |
void | reloadSettingsRequest () |
void | doReloadSettings () |
![]() | |
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) |
ESettingsModelItem * | itemFromIndex (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 |
![]() | |
EAbstractItemModel (QObject *parent=0) | |
virtual | ~EAbstractItemModel () |
Private Slots | |
void | reloadSettingsRequestByPass () |
Private Attributes | |
ESettingsModelItem * | root |
bool | reloadRequested |
Set to true by reloadSettingsRequestByPass(), if a reloadSettingsRequest is catched. |
Additional Inherited Members | |
![]() | |
static void | connectByPass (QObject *parent, EAbstractItemModel *child) |
static void | connectByPass (EAbstractItemModel *parent, QObject *child) |
![]() | |
virtual void | errorByPass (const QString &message) |
virtual void | warningByPass (const QString &message) |
virtual void | informationByPass (const QString &message) |
Model to present the user a tree of possible settings pages.
ESettingsModel::ESettingsModel | ( | QObject * | parent = 0 | ) |
ESettingsModel::~ESettingsModel | ( | ) |
bool ESettingsModel::addItem | ( | ESettingsModelItem * | item | ) |
int ESettingsModel::columnCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
QVariant ESettingsModel::data | ( | const QModelIndex & | index, |
int | role = Qt::DisplayRole |
||
) | const |
|
signal |
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 |
ESettingsModelItem * ESettingsModel::itemFromIndex | ( | QModelIndex | index | ) | const |
QModelIndex ESettingsModel::parent | ( | const QModelIndex & | child | ) | const |
|
inlineslot |
|
signal |
|
inlineprivateslot |
int ESettingsModel::rowCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
bool ESettingsModel::save | ( | QString & | error | ) |
|
private |
Set to true by reloadSettingsRequestByPass(), if a reloadSettingsRequest is catched.
|
private |