QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
|
QgsSettingsTreeModel is a tree model for the settings tree. More...
#include <qgssettingstreemodel.h>
Public Types | |
enum class | Column { Name , Value , Description } |
Columns. More... | |
Public Member Functions | |
QgsSettingsTreeModel (QgsSettingsTreeNode *rootNode=nullptr, QObject *parent=nullptr) | |
Constructor. | |
~QgsSettingsTreeModel () | |
void | applyChanges () |
Apply pending changes in the model to the corresponding settings. | |
int | columnCount (const QModelIndex &parent) const override |
QVariant | data (const QModelIndex &index, int role) const override |
Qt::ItemFlags | flags (const QModelIndex &index) const override |
QVariant | headerData (int section, Qt::Orientation orientation, int role) const override |
QModelIndex | index (int row, int column, const QModelIndex &parent) const override |
QgsSettingsTreeModelNodeData * | index2node (const QModelIndex &index) const |
Returns settings tree node for given index or the root node if the index is invalid. | |
QModelIndex | node2index (QgsSettingsTreeModelNodeData *node) const |
Returns the index from the settings tree node. | |
QModelIndex | parent (const QModelIndex &child) const override |
int | rowCount (const QModelIndex &parent) const override |
bool | setData (const QModelIndex &index, const QVariant &value, int role) override |
QgsSettingsTreeModel is a tree model for the settings tree.
Definition at line 166 of file qgssettingstreemodel.h.
|
strong |
Columns.
Enumerator | |
---|---|
Name | Name. |
Value | Value. |
Description | Description. |
Definition at line 172 of file qgssettingstreemodel.h.
QgsSettingsTreeModel::QgsSettingsTreeModel | ( | QgsSettingsTreeNode * | rootNode = nullptr , |
QObject * | parent = nullptr |
||
) |
Constructor.
Definition at line 173 of file qgssettingstreemodel.cpp.
QgsSettingsTreeModel::~QgsSettingsTreeModel | ( | ) |
Definition at line 184 of file qgssettingstreemodel.cpp.
void QgsSettingsTreeModel::applyChanges | ( | ) |
Apply pending changes in the model to the corresponding settings.
Definition at line 189 of file qgssettingstreemodel.cpp.
|
override |
Definition at line 271 of file qgssettingstreemodel.cpp.
|
override |
Definition at line 277 of file qgssettingstreemodel.cpp.
|
override |
Definition at line 406 of file qgssettingstreemodel.cpp.
|
override |
Definition at line 388 of file qgssettingstreemodel.cpp.
|
override |
Definition at line 218 of file qgssettingstreemodel.cpp.
QgsSettingsTreeModelNodeData * QgsSettingsTreeModel::index2node | ( | const QModelIndex & | index | ) | const |
Returns settings tree node for given index or the root node if the index is invalid.
Definition at line 196 of file qgssettingstreemodel.cpp.
QModelIndex QgsSettingsTreeModel::node2index | ( | QgsSettingsTreeModelNodeData * | node | ) | const |
Returns the index from the settings tree node.
Definition at line 205 of file qgssettingstreemodel.cpp.
|
override |
Definition at line 232 of file qgssettingstreemodel.cpp.
|
override |
Definition at line 262 of file qgssettingstreemodel.cpp.
|
override |
Definition at line 430 of file qgssettingstreemodel.cpp.