mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-08 00:05:09 -04:00
66 lines
2.4 KiB
Plaintext
66 lines
2.4 KiB
Plaintext
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/core/browser/qgsdatabaseschemaitem.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.py again *
|
|
************************************************************************/
|
|
|
|
|
|
|
|
class QgsDatabaseSchemaItem : QgsDataCollectionItem
|
|
{
|
|
%Docstring(signature="appended")
|
|
A Collection that represents a database schema item
|
|
|
|
.. versionadded:: 3.16
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgsdatabaseschemaitem.h"
|
|
%End
|
|
public:
|
|
|
|
QgsDatabaseSchemaItem( QgsDataItem *parent /TransferThis/, const QString &name, const QString &path = QString(), const QString &providerKey = QString() );
|
|
%Docstring
|
|
Constructor for QgsDatabaseSchemaItem, with the specified ``parent`` item.
|
|
|
|
The ``name`` argument specifies the text to show in the model for the item. A translated string should
|
|
be used wherever appropriate.
|
|
|
|
The ``path`` argument gives the item path in the browser tree. The ``path`` string can take any form,
|
|
but :py:class:`QgsSchemaItem` items pointing to different logical locations should always use a different item ``path``.
|
|
|
|
The optional ``providerKey`` string can be used to specify the key for the :py:class:`QgsDataItemProvider` that created this item.
|
|
%End
|
|
|
|
~QgsDatabaseSchemaItem();
|
|
|
|
SIP_PYOBJECT __repr__();
|
|
%MethodCode
|
|
QString str = QStringLiteral( "<QgsDatabaseSchemaItem: \"%1\" %2>" ).arg( sipCpp->name(), sipCpp->path() );
|
|
sipRes = PyUnicode_FromString( str.toUtf8().constData() );
|
|
%End
|
|
|
|
virtual QgsAbstractDatabaseProviderConnection *databaseConnection() const;
|
|
|
|
|
|
static QIcon iconDataCollection();
|
|
%Docstring
|
|
Returns the standard browser data collection icon.
|
|
|
|
.. seealso:: :py:func:`iconDir`
|
|
%End
|
|
|
|
};
|
|
|
|
|
|
|
|
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/core/browser/qgsdatabaseschemaitem.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.py again *
|
|
************************************************************************/
|