mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-10-31 00:06:02 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			61 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			61 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| /************************************************************************
 | |
|  * This file has been generated automatically from                      *
 | |
|  *                                                                      *
 | |
|  * src/gui/editorwidgets/qgsactionwidgetwrapper.h                       *
 | |
|  *                                                                      *
 | |
|  * Do not edit manually ! Edit header and run scripts/sipify.py again   *
 | |
|  ************************************************************************/
 | |
| 
 | |
| 
 | |
| 
 | |
| class QgsActionWidgetWrapper : QgsWidgetWrapper
 | |
| {
 | |
| %Docstring(signature="appended")
 | |
| Wraps a button widget to launch a layer action.
 | |
| 
 | |
| .. versionadded:: 3.22
 | |
| %End
 | |
| 
 | |
| %TypeHeaderCode
 | |
| #include "qgsactionwidgetwrapper.h"
 | |
| %End
 | |
|   public:
 | |
|     QgsActionWidgetWrapper( QgsVectorLayer *layer, QWidget *editor, QWidget *parent );
 | |
| %Docstring
 | |
| Create an action 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
 | |
| 
 | |
|   public:
 | |
|     void setAction( const QgsAction &action );
 | |
| %Docstring
 | |
| Sets the ``action``.
 | |
| %End
 | |
| 
 | |
|     virtual bool valid() const;
 | |
| 
 | |
|     virtual QWidget *createWidget( QWidget *parent );
 | |
| 
 | |
|     virtual void initWidget( QWidget *editor );
 | |
| 
 | |
| 
 | |
|   public slots:
 | |
| 
 | |
|     virtual void setFeature( const QgsFeature &feature );
 | |
| 
 | |
|     virtual void setEnabled( bool enabled );
 | |
| 
 | |
| 
 | |
| };
 | |
| 
 | |
| /************************************************************************
 | |
|  * This file has been generated automatically from                      *
 | |
|  *                                                                      *
 | |
|  * src/gui/editorwidgets/qgsactionwidgetwrapper.h                       *
 | |
|  *                                                                      *
 | |
|  * Do not edit manually ! Edit header and run scripts/sipify.py again   *
 | |
|  ************************************************************************/
 |