Skip to content

Commit

Permalink
fix dox + unused vars
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Jan 16, 2023
1 parent 6a043ed commit cffd363
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 6 deletions.
Expand Up @@ -98,6 +98,9 @@ Unregisters the child tree ``element``
%End

QList<QgsSettingsTreeElement *> childrenElements() const;
%Docstring
Returns the children elements
%End

QgsSettingsTreeElement *childElement( const QString &key );
%Docstring
Expand Down Expand Up @@ -162,7 +165,7 @@ class QgsSettingsTreeNamedListElement : QgsSettingsTreeElement
%Docstring(signature="appended")
:py:class:`QgsSettingsTreeNamedListElement` is a named list tree element for the settings registry
to help organizing and introspecting the registry.
the named list element is used to store a group of settings under a dynamicly named key.
the named list element is used to store a group of settings under a dynamicaly named key.

.. seealso:: :py:class:`QgsSettingsTreeElement`

Expand Down
3 changes: 3 additions & 0 deletions python/gui/auto_generated/qgshttpheaderwidget.sip.in
Expand Up @@ -55,6 +55,9 @@ update the ``settings`` with the http headers present in the inner map.

:param settings:
:param key:

.. deprecated:: QGIS 3.30
use a variant map for settinds directly
%End

};
Expand Down
1 change: 1 addition & 0 deletions src/core/qgsowsconnection.h
Expand Up @@ -33,6 +33,7 @@
/**
* \ingroup core
* \brief Connections settingss for XYZ
* \since QGIS 3.30
*/
class CORE_EXPORT QgsXyzConnectionSettings SIP_SKIP
{
Expand Down
6 changes: 3 additions & 3 deletions src/core/settings/qgssettingstreeelement.h
Expand Up @@ -69,7 +69,7 @@ class CORE_EXPORT QgsSettingsTreeElement
virtual ~QgsSettingsTreeElement();

/**
* Creates a tree root elemenet
* Creates a tree root element
* \note This is not available in Python bindings. Use QgsSettings.createPluginTreeElement instead.
*/
static QgsSettingsTreeElement *createRootElement() SIP_SKIP;
Expand Down Expand Up @@ -106,7 +106,7 @@ class CORE_EXPORT QgsSettingsTreeElement
//! Unregisters the child tree \a element
void unregisterChildElement( QgsSettingsTreeElement *element );

// Returns the children elements
//! Returns the children elements
QList<QgsSettingsTreeElement *> childrenElements() const {return mChildrenElements;}

//! Returns the existing child element if it exists at the given \a key
Expand Down Expand Up @@ -171,7 +171,7 @@ class CORE_EXPORT QgsSettingsTreeElement
* \class QgsSettingsTreeNamedListElement
* \brief QgsSettingsTreeNamedListElement is a named list tree element for the settings registry
* to help organizing and introspecting the registry.
* the named list element is used to store a group of settings under a dynamicly named key.
* the named list element is used to store a group of settings under a dynamicaly named key.
*
* \see QgsSettingsTreeElement
* \see QgsSettingsEntryBase
Expand Down
1 change: 1 addition & 0 deletions src/gui/qgshttpheaderwidget.h
Expand Up @@ -64,6 +64,7 @@ class GUI_EXPORT QgsHttpHeaderWidget : public QWidget, private Ui::QgsHttpHeader
* \see QgsHttpHeaders::updateSettings( QgsSettings &settings, const QString &key ) const
* \param settings
* \param key
* \deprecated since QGIS 3.30 use a variant map for settinds directly
*/
Q_DECL_DEPRECATED void updateSettings( QgsSettings &settings, const QString &key ) const SIP_DEPRECATED;

Expand Down
2 changes: 0 additions & 2 deletions src/gui/qgsmanageconnectionsdialog.cpp
Expand Up @@ -449,7 +449,6 @@ QDomDocument QgsManageConnectionsDialog::saveOWSConnections( const QStringList &
root.setAttribute( QStringLiteral( "version" ), QStringLiteral( "1.0" ) );
doc.appendChild( root );

QString path;
for ( int i = 0; i < connections.count(); ++i )
{
QDomElement el = doc.createElement( service.toLower() );
Expand Down Expand Up @@ -771,7 +770,6 @@ QDomDocument QgsManageConnectionsDialog::saveVectorTileConnections( const QStrin
root.setAttribute( QStringLiteral( "version" ), QStringLiteral( "1.0" ) );
doc.appendChild( root );

QString path;
for ( int i = 0; i < connections.count(); ++i )
{
QDomElement el = doc.createElement( QStringLiteral( "vectortile" ) );
Expand Down

0 comments on commit cffd363

Please sign in to comment.