Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Apply suggestions from code review
Co-authored-by: Mathieu Pellerin <nirvn.asia@gmail.com>
  • Loading branch information
3nids and nirvn committed Apr 27, 2023
1 parent cb42a20 commit 429c740
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/gui/settings/qgssettingstreemodel.h
Expand Up @@ -64,10 +64,10 @@ class GUI_EXPORT QgsSettingsTreeModelNodeData : public QObject
void applyChanges();

//! Returns if the node is the root node
bool isRoot() const {return mParent == nullptr;}
bool isRoot() const { return mParent == nullptr; }

//! Returns the dynamic key parts of the named list parent tree nodes
QStringList namedParentNodes() const {return mNamedParentNodes;}
QStringList namedParentNodes() const { return mNamedParentNodes; }

//! Returns the children nodes of the node (setting or tree node)
QList<QgsSettingsTreeModelNodeData *> children() const {return mChildren;}
Expand All @@ -87,7 +87,7 @@ class GUI_EXPORT QgsSettingsTreeModelNodeData : public QObject
//! Returns the value of the node (setting or tree node)
QVariant originalValue() const {return mOriginalValue;}

//! Sets the value of the setting node
//! Sets the \a value of the setting node
bool setValue( const QVariant &value );

//! Returns if the setting exists (value is set)
Expand All @@ -97,8 +97,8 @@ class GUI_EXPORT QgsSettingsTreeModelNodeData : public QObject
bool isEdited() const {return mIsEdited;}

/**
* Returns the setting of the node
* It returns a nullptr if the setting does not exist
* Returns a pointer to the setting of the node or NULLPTR if the
* setting does not exist.
*/
const QgsSettingsEntryBase *setting() const {return mSetting;}

Expand Down Expand Up @@ -185,7 +185,7 @@ class GUI_EXPORT QgsSettingsTreeModel : public QAbstractItemModel
void applyChanges();

/**
* Returns settings tree node for given index. Returns root node for invalid index.
* Returns settings tree node for given \a index or the root node if the index is invalid.
*/
QgsSettingsTreeModelNodeData *index2node( const QModelIndex &index ) const SIP_SKIP;

Expand Down

0 comments on commit 429c740

Please sign in to comment.