mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-06 00:07:29 -04:00
70 lines
2.0 KiB
Plaintext
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 *
|
|
************************************************************************/
|