QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
QgsDataItemGuiProviderUtils Class Reference

Utility functions for QgsDataItemGuiProviders. More...

#include <qgsdataitemguiproviderutils.h>

Static Public Member Functions

template<class T >
static void deleteConnections (const QList< T * > &items, const std::function< void(const QString &) > &deleteConnection, QgsDataItemGuiContext context)
 Handles deletion of a list of connection items.
 
static const QString uniqueName (const QString &name, const QStringList &connectionNames)
 Check if connection with name exists in connectionNames list and then try to append a number to it to get a unique name.
 

Detailed Description

Utility functions for QgsDataItemGuiProviders.

Since
QGIS 3.38

Definition at line 37 of file qgsdataitemguiproviderutils.h.

Member Function Documentation

◆ deleteConnections()

template<class T >
static void QgsDataItemGuiProviderUtils::deleteConnections ( const QList< T * > &  items,
const std::function< void(const QString &) > &  deleteConnection,
QgsDataItemGuiContext  context 
)
inlinestatic

Handles deletion of a list of connection items.

Note
Not available in Python bindings

Definition at line 49 of file qgsdataitemguiproviderutils.h.

◆ uniqueName()

const QString QgsDataItemGuiProviderUtils::uniqueName ( const QString &  name,
const QStringList &  connectionNames 
)
static

Check if connection with name exists in connectionNames list and then try to append a number to it to get a unique name.

Note
Not available in Python bindings
Since
QGIS 3.40

Definition at line 50 of file qgsdataitemguiproviderutils.cpp.


The documentation for this class was generated from the following files: