mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-11-04 00:04:25 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			63 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			63 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.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   *
 | 
						|
 ************************************************************************/
 |