QGIS/python/gui/auto_generated/editorwidgets/qgsspacerwidgetwrapper.sip.in
2023-01-17 15:08:53 +01:00

64 lines
2.0 KiB
Plaintext

/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/editorwidgets/qgsspacerwidgetwrapper.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsSpacerWidgetWrapper : QgsWidgetWrapper
{
%Docstring(signature="appended")
Wraps a spacer widget.
.. versionadded:: 3.30
%End
%TypeHeaderCode
#include "qgsspacerwidgetwrapper.h"
%End
public:
explicit QgsSpacerWidgetWrapper( QgsVectorLayer *layer, QWidget *editor = 0, QWidget *parent = 0 );
%Docstring
Create a new widget wrapper
:param layer: The vector layer of the form the widget belongs to.
:param editor: An editor widget. Can be ``None`` if one should be autogenerated.
:param parent: A parent widget for this widget wrapper and the created widget.
%End
virtual bool valid() const;
bool drawLine() const;
%Docstring
Returns ``True`` if the spacer element will contain an horizontal line.
%End
void setDrawLine( bool drawLine );
%Docstring
Sets a flag to define if the spacer element will contain an horizontal line.
:param drawLine: flag status
%End
protected:
virtual QWidget *createWidget( QWidget *parent );
public slots:
virtual void setFeature( const QgsFeature &feature );
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/editorwidgets/qgsspacerwidgetwrapper.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/