QGIS/python/gui/auto_generated/editorwidgets/qgstextwidgetwrapper.sip.in
Nyall Dawson 3f6b490218 Sipify
2025-04-02 11:11:10 +10:00

70 lines
2.0 KiB
Plaintext

/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/editorwidgets/qgstextwidgetwrapper.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
class QgsTextWidgetWrapper : QgsWidgetWrapper
{
%Docstring(signature="appended")
Wraps a label widget to display text.
.. versionadded:: 3.30
%End
%TypeHeaderCode
#include "qgstextwidgetwrapper.h"
%End
public:
QgsTextWidgetWrapper( QgsVectorLayer *layer, QWidget *editor, QWidget *parent );
%Docstring
Create a text widget wrapper
:param layer: The layer on which the feature is
:param editor: An editor widget. Can be ``None`` if one should be
autogenerated.
:param parent: A parent widget
%End
virtual bool valid() const;
virtual QWidget *createWidget( QWidget *parent );
virtual void initWidget( QWidget *editor );
void reinitWidget();
%Docstring
Clears the content and makes new initialization
%End
void setText( const QString &text );
%Docstring
Sets the text code to ``htmlCode``
%End
bool needsGeometry() const;
%Docstring
Returns true if the widget needs feature geometry
%End
public slots:
virtual void setFeature( const QgsFeature &feature );
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/editorwidgets/qgstextwidgetwrapper.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/