EnvironmentModel Class
(Utils::EnvironmentModel)Public Functions
| EnvironmentModel(QObject *parent = 0) | |
| ~EnvironmentModel() | |
| QModelIndex | addVariable() |
| QModelIndex | addVariable(const EnvironmentItem &item) |
| bool | canReset(const QString &name) |
| bool | canUnset(const QString &name) |
| bool | changes(const QString &key) const |
| int | columnCount(const QModelIndex &parent) const |
| QVariant | data(const QModelIndex &index, int role = Qt::DisplayRole) const |
| Qt::ItemFlags | flags(const QModelIndex &index) const |
| QVariant | headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const |
| QString | indexToVariable(const QModelIndex &index) const |
| void | resetVariable(const QString &name) |
| int | rowCount(const QModelIndex &parent) const |
| void | setBaseEnvironment(const Environment &env) |
| bool | setData(const QModelIndex &index, const QVariant &value, int role = Qt::EditRole) |
| void | setUserChanges(QList<EnvironmentItem> list) |
| void | unsetVariable(const QString &name) |
| QList<EnvironmentItem> | userChanges() const |
| QModelIndex | variableToIndex(const QString &name) const |
Signals
| void | focusIndex(const QModelIndex &index) |
| void | userChangesChanged() |
Member Function Documentation
EnvironmentModel::EnvironmentModel(QObject *parent = 0)
Default constructs an instance of EnvironmentModel.
EnvironmentModel::~EnvironmentModel()
Destroys the instance of EnvironmentModel.
QModelIndex EnvironmentModel::addVariable()
QModelIndex EnvironmentModel::addVariable(const EnvironmentItem &item)
bool EnvironmentModel::canReset(const QString &name)
bool EnvironmentModel::canUnset(const QString &name)
bool EnvironmentModel::changes(const QString &key) const
int EnvironmentModel::columnCount(const QModelIndex &parent) const
QVariant EnvironmentModel::data(const QModelIndex &index, int role = Qt::DisplayRole) const
See also setData().
Qt::ItemFlags EnvironmentModel::flags(const QModelIndex &index) const
[signal] void EnvironmentModel::focusIndex(const QModelIndex &index)
QVariant EnvironmentModel::headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const
QString EnvironmentModel::indexToVariable(const QModelIndex &index) const
void EnvironmentModel::resetVariable(const QString &name)
int EnvironmentModel::rowCount(const QModelIndex &parent) const
void EnvironmentModel::setBaseEnvironment(const Environment &env)
bool EnvironmentModel::setData(const QModelIndex &index, const QVariant &value, int role = Qt::EditRole)
See also data().
void EnvironmentModel::setUserChanges(QList<EnvironmentItem> list)
See also userChanges().
void EnvironmentModel::unsetVariable(const QString &name)
QList<EnvironmentItem> EnvironmentModel::userChanges() const
See also setUserChanges().