2017-05-23 14:44:34 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/qgsdetaileditemdata.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
class QgsDetailedItemData
|
|
|
|
{
|
2017-05-23 14:44:34 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
This class is the data only representation of a
|
|
|
|
QgsDetailedItemWidget, designed to be used in custom views.
|
2012-09-24 02:28:15 +02:00
|
|
|
%End
|
|
|
|
|
2017-05-23 14:44:34 +02:00
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsdetaileditemdata.h"
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
public:
|
2017-09-28 08:17:06 +10:00
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
QgsDetailedItemData();
|
2017-09-28 08:17:06 +10:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Constructor for QgsDetailedItemData.
|
2017-09-28 08:17:06 +10:00
|
|
|
%End
|
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
void setTitle( const QString &title );
|
2018-06-05 08:29:29 +10:00
|
|
|
%Docstring
|
|
|
|
Sets the ``title`` for the item.
|
|
|
|
|
|
|
|
.. seealso:: :py:func:`title`
|
|
|
|
%End
|
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
void setDetail( const QString &detail );
|
2018-06-05 08:29:29 +10:00
|
|
|
%Docstring
|
|
|
|
Sets the detailed description for the item.
|
|
|
|
|
|
|
|
.. seealso:: :py:func:`detail`
|
|
|
|
%End
|
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
void setCategory( const QString &category );
|
2018-06-05 08:29:29 +10:00
|
|
|
%Docstring
|
|
|
|
Sets the item's ``category``.
|
|
|
|
|
|
|
|
.. seealso:: :py:func:`category`
|
|
|
|
%End
|
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
void setIcon( const QPixmap &icon );
|
2018-06-05 08:29:29 +10:00
|
|
|
%Docstring
|
|
|
|
Sets the item's ``icon``.
|
|
|
|
|
|
|
|
.. seealso:: :py:func:`icon`
|
|
|
|
%End
|
|
|
|
|
2018-06-04 21:56:07 +10:00
|
|
|
void setCheckable( bool flag );
|
2018-06-05 08:29:29 +10:00
|
|
|
%Docstring
|
|
|
|
Sets whether the item is checkable.
|
|
|
|
|
|
|
|
.. seealso:: :py:func:`isCheckable`
|
|
|
|
%End
|
|
|
|
|
2018-06-04 21:56:07 +10:00
|
|
|
void setChecked( bool flag );
|
2018-06-05 08:29:29 +10:00
|
|
|
%Docstring
|
|
|
|
Sets whether the item is checked.
|
|
|
|
|
|
|
|
.. seealso:: :py:func:`isChecked`
|
|
|
|
%End
|
|
|
|
|
2017-02-21 18:14:58 +01:00
|
|
|
void setEnabled( bool flag );
|
2018-06-05 08:29:29 +10:00
|
|
|
%Docstring
|
|
|
|
Sets whether the item is enabled.
|
|
|
|
|
|
|
|
.. seealso:: :py:func:`isEnabled`
|
|
|
|
%End
|
2017-05-23 14:44:34 +02:00
|
|
|
|
2017-02-21 18:14:58 +01:00
|
|
|
void setRenderAsWidget( bool flag );
|
2017-05-23 14:44:34 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
This is a hint to the delegate to render using
|
|
|
|
a widget rather than manually painting every
|
|
|
|
part of the list item.
|
|
|
|
|
2017-05-23 14:44:34 +02:00
|
|
|
.. note::
|
|
|
|
|
|
|
|
the delegate may completely ignore this
|
2018-01-12 20:51:17 -04:00
|
|
|
depending on the delegate implementation.
|
2018-06-05 08:29:29 +10:00
|
|
|
|
|
|
|
.. seealso:: :py:func:`isRenderedAsWidget`
|
2017-05-23 14:44:34 +02:00
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
|
|
|
|
QString title() const;
|
2018-06-05 08:29:29 +10:00
|
|
|
%Docstring
|
|
|
|
Returns the item's title.
|
|
|
|
|
|
|
|
.. seealso:: :py:func:`setTitle`
|
|
|
|
%End
|
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
QString detail() const;
|
2018-06-05 08:29:29 +10:00
|
|
|
%Docstring
|
|
|
|
Returns the detailed description for the item.
|
|
|
|
|
|
|
|
.. seealso:: :py:func:`setDetail`
|
|
|
|
%End
|
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
QString category() const;
|
2018-06-05 08:29:29 +10:00
|
|
|
%Docstring
|
|
|
|
Returns the item's category.
|
|
|
|
|
|
|
|
.. seealso:: :py:func:`setCategory`
|
|
|
|
%End
|
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
QPixmap icon() const;
|
2018-06-05 08:29:29 +10:00
|
|
|
%Docstring
|
|
|
|
Returns the item's icon.
|
|
|
|
|
|
|
|
.. seealso:: :py:func:`setIcon`
|
|
|
|
%End
|
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
bool isCheckable() const;
|
2018-06-05 08:29:29 +10:00
|
|
|
%Docstring
|
|
|
|
Returns true if the item is checkable.
|
|
|
|
|
|
|
|
.. seealso:: :py:func:`setCheckable`
|
|
|
|
%End
|
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
bool isChecked() const;
|
2018-06-05 08:29:29 +10:00
|
|
|
%Docstring
|
|
|
|
Returns true if the item is checked.
|
|
|
|
|
|
|
|
.. seealso:: :py:func:`setChecked`
|
|
|
|
%End
|
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
bool isEnabled() const;
|
2018-06-05 08:29:29 +10:00
|
|
|
%Docstring
|
|
|
|
Returns true if the item is enabled.
|
|
|
|
|
|
|
|
.. seealso:: :py:func:`setEnabled`
|
|
|
|
%End
|
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
bool isRenderedAsWidget() const;
|
2018-06-05 08:29:29 +10:00
|
|
|
%Docstring
|
|
|
|
Returns true if the item will be rendered using a widget.
|
|
|
|
|
|
|
|
.. seealso:: :py:func:`setRenderAsWidget`
|
|
|
|
%End
|
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/qgsdetaileditemdata.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|