mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-10-25 00:05:24 -04:00 
			
		
		
		
	reverting 3fb0f66 (followup #45348) Using --no-public-is-protected (default on Windows) also works on Linux and fixes #45331 too
		
			
				
	
	
		
			54 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			54 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| /************************************************************************
 | |
|  * This file has been generated automatically from                      *
 | |
|  *                                                                      *
 | |
|  * src/gui/attributetable/qgsfeaturelistviewdelegate.h                  *
 | |
|  *                                                                      *
 | |
|  * Do not edit manually ! Edit header and run scripts/sipify.pl again   *
 | |
|  ************************************************************************/
 | |
| 
 | |
| 
 | |
| 
 | |
| class QgsFeatureListViewDelegate : QItemDelegate
 | |
| {
 | |
| 
 | |
| %TypeHeaderCode
 | |
| #include "qgsfeaturelistviewdelegate.h"
 | |
| %End
 | |
|   public:
 | |
|     static const int ICON_SIZE;
 | |
| 
 | |
|     enum Element
 | |
|     {
 | |
|       EditElement,
 | |
|       SelectionElement
 | |
|     };
 | |
| 
 | |
|     explicit QgsFeatureListViewDelegate( QgsFeatureListModel *listModel, QObject *parent = 0 );
 | |
| 
 | |
|     void setEditSelectionModel( QItemSelectionModel *editSelectionModel );
 | |
| 
 | |
|     Element positionToElement( QPoint pos );
 | |
| 
 | |
|     void setFeatureSelectionModel( QgsFeatureSelectionModel *featureSelectionModel );
 | |
| 
 | |
|     void setCurrentFeatureEdited( bool state );
 | |
| 
 | |
|   signals:
 | |
|     void editButtonClicked( QModelIndex &index );
 | |
| 
 | |
|   protected:
 | |
|     virtual QSize sizeHint( const QStyleOptionViewItem &option, const QModelIndex &index ) const;
 | |
| 
 | |
|     virtual void paint( QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index ) const;
 | |
| 
 | |
| 
 | |
| };
 | |
| 
 | |
| /************************************************************************
 | |
|  * This file has been generated automatically from                      *
 | |
|  *                                                                      *
 | |
|  * src/gui/attributetable/qgsfeaturelistviewdelegate.h                  *
 | |
|  *                                                                      *
 | |
|  * Do not edit manually ! Edit header and run scripts/sipify.pl again   *
 | |
|  ************************************************************************/
 |