2017-05-23 14:44:34 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/qgsdetaileditemdelegate.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
class QgsDetailedItemDelegate : QAbstractItemDelegate
|
|
|
|
{
|
2017-05-23 14:44:34 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
A custom model/view delegate that can display an icon, heading
|
|
|
|
and detail sections.
|
|
|
|
|
2017-12-05 20:04:14 -04:00
|
|
|
.. seealso:: :py:func:`also`
|
2012-09-24 02:28:15 +02:00
|
|
|
%End
|
|
|
|
|
2017-05-23 14:44:34 +02:00
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsdetaileditemdelegate.h"
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
public:
|
2017-12-12 11:44:10 +10:00
|
|
|
|
2017-05-03 07:45:22 +02:00
|
|
|
QgsDetailedItemDelegate( QObject *parent /TransferThis/ = 0 );
|
2017-12-12 11:44:10 +10:00
|
|
|
%Docstring
|
|
|
|
Constructor for QgsDetailedItemDelegate
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
~QgsDetailedItemDelegate();
|
2017-05-23 14:44:34 +02:00
|
|
|
virtual void paint( QPainter *painter,
|
|
|
|
const QStyleOptionViewItem &option,
|
2017-05-03 07:45:22 +02:00
|
|
|
const QModelIndex &index ) const;
|
2017-05-23 14:44:34 +02:00
|
|
|
%Docstring
|
|
|
|
Reimplement for parent class
|
|
|
|
%End
|
|
|
|
virtual QSize sizeHint( const QStyleOptionViewItem &option,
|
2017-05-03 07:45:22 +02:00
|
|
|
const QModelIndex &index ) const;
|
2017-05-23 14:44:34 +02:00
|
|
|
%Docstring
|
|
|
|
Reimplement for parent class
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2017-02-21 18:14:58 +01:00
|
|
|
void setVerticalSpacing( int value );
|
2012-09-24 02:28:15 +02:00
|
|
|
|
|
|
|
int verticalSpacing() const;
|
|
|
|
|
2017-02-21 18:14:58 +01:00
|
|
|
void setHorizontalSpacing( int value );
|
2012-09-24 02:28:15 +02:00
|
|
|
|
|
|
|
int horizontalSpacing() const;
|
2017-05-23 14:44:34 +02:00
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
};
|
2017-05-23 14:44:34 +02:00
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/qgsdetaileditemdelegate.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|