mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
Rationale: - there was a lot of large objects passed by value, so potentially there's a speed bump from this - even for implicitly shared classes like QString/QList there's still a (small) cost for copying the objects when there's no reason to - it's the right thing to do!
34 lines
992 B
Plaintext
34 lines
992 B
Plaintext
class QgsDetailedItemData
|
|
{
|
|
%TypeHeaderCode
|
|
#include <qgsdetaileditemdata.h>
|
|
%End
|
|
|
|
public:
|
|
QgsDetailedItemData();
|
|
~QgsDetailedItemData();
|
|
void setTitle( const QString& theTitle );
|
|
void setDetail( const QString& theDetail );
|
|
void setCategory( const QString& theCategory );
|
|
void setIcon( const QPixmap& theIcon );
|
|
void setCheckable( const bool theFlag );
|
|
void setChecked( const bool theFlag );
|
|
void setEnabled( bool theFlag );
|
|
/** This is a hint to the delegate to render using
|
|
* a widget rather than manually painting every
|
|
* part of the list item.
|
|
* @note the delegate may completely ignore this
|
|
* depending on the delegate implementation.
|
|
*/
|
|
void setRenderAsWidget( bool theFlag );
|
|
|
|
QString title() const;
|
|
QString detail() const;
|
|
QString category() const;
|
|
QPixmap icon() const;
|
|
bool isCheckable() const;
|
|
bool isChecked() const;
|
|
bool isEnabled() const;
|
|
bool isRenderedAsWidget() const;
|
|
};
|