20 #ifndef ESETTINGSMODEL_H
21 #define ESETTINGSMODEL_H
43 bool save(QString &error);
46 QVariant data(
const QModelIndex& index,
int role = Qt::DisplayRole)
const;
47 int columnCount(
const QModelIndex& parent = QModelIndex())
const;
48 int rowCount(
const QModelIndex& parent = QModelIndex())
const;
49 QModelIndex parent(
const QModelIndex& child)
const;
50 QModelIndex index(
int row,
int column,
const QModelIndex& parent = QModelIndex())
const;
51 QVariant headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole)
const;
57 inline void reloadSettingsRequestByPass(){ reloadRequested =
true; };
67 void reloadSettingsRequest();
68 void doReloadSettings();
71 #endif // ESETTINGSMODEL_H
Replacement of QAbstractItemModel to provide convenience signals for message handling.
Definition: eabstractitemmodel.h:36
bool reloadRequested
Set to true by reloadSettingsRequestByPass(), if a reloadSettingsRequest is catched.
Definition: esettingsmodel.h:64
Model to present the user a tree of possible settings pages.
Definition: esettingsmodel.h:34
An item in the ESettingsModel, which represents one Settingspage.
Definition: esettingsmodelitem.h:35
void reloadSettings()
Definition: esettingsmodel.h:54
#define E_CORE_EXPORT
Definition: eglobal.h:107