1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
|
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/editorwidgets/qgsspacerwidgetwrapper.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py 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.py again *
************************************************************************/
|