Quantum GIS API Documentation  1.7.5-Wroclaw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes
QgsDetailedItemData Class Reference

This class is the data only representation of a QgsDetailedItemWidget, designed to be used in custom views. More...

#include <qgsdetaileditemdata.h>

List of all members.

Public Member Functions

 QgsDetailedItemData ()
 ~QgsDetailedItemData ()
void setTitle (const QString theTitle)
void setDetail (const QString theDetail)
void setIcon (const QPixmap theIcon)
void setCheckable (const bool theFlag)
void setChecked (const bool theFlag)
void setEnabled (bool theFlag)
void setRenderAsWidget (bool theFlag)
 This is a hint to the delegate to render using a widget rather than manually painting every part of the list item.
QString title () const
QString detail () const
QPixmap icon () const
bool isCheckable () const
bool isChecked () const
bool isEnabled () const
bool isRenderedAsWidget () const

Private Attributes

QString mTitle
QString mDetail
QString mLibraryName
QPixmap mPixmap
bool mCheckableFlag
bool mCheckedFlag
bool mEnabledFlag
bool mRenderAsWidgetFlag

Detailed Description

This class is the data only representation of a QgsDetailedItemWidget, designed to be used in custom views.

Definition at line 30 of file qgsdetaileditemdata.h.


Constructor & Destructor Documentation

QgsDetailedItemData::QgsDetailedItemData ( )

Definition at line 20 of file qgsdetaileditemdata.cpp.

References mEnabledFlag, and mRenderAsWidgetFlag.

QgsDetailedItemData::~QgsDetailedItemData ( )

Definition at line 26 of file qgsdetaileditemdata.cpp.


Member Function Documentation

QString QgsDetailedItemData::detail ( ) const
QPixmap QgsDetailedItemData::icon ( ) const
bool QgsDetailedItemData::isCheckable ( ) const
bool QgsDetailedItemData::isChecked ( ) const
bool QgsDetailedItemData::isEnabled ( ) const

Definition at line 92 of file qgsdetaileditemdata.cpp.

References mEnabledFlag.

Referenced by QgsDetailedItemDelegate::paintManually().

bool QgsDetailedItemData::isRenderedAsWidget ( ) const
void QgsDetailedItemData::setCheckable ( const bool  theFlag)

Definition at line 44 of file qgsdetaileditemdata.cpp.

References mCheckableFlag.

void QgsDetailedItemData::setChecked ( const bool  theFlag)

Definition at line 48 of file qgsdetaileditemdata.cpp.

References mCheckedFlag.

void QgsDetailedItemData::setDetail ( const QString  theDetail)

Definition at line 35 of file qgsdetaileditemdata.cpp.

References mDetail.

void QgsDetailedItemData::setEnabled ( bool  theFlag)

Definition at line 87 of file qgsdetaileditemdata.cpp.

References mEnabledFlag.

void QgsDetailedItemData::setIcon ( const QPixmap  theIcon)

Definition at line 40 of file qgsdetaileditemdata.cpp.

References mPixmap.

void QgsDetailedItemData::setRenderAsWidget ( 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.

Definition at line 52 of file qgsdetaileditemdata.cpp.

References mRenderAsWidgetFlag.

void QgsDetailedItemData::setTitle ( const QString  theTitle)

Definition at line 30 of file qgsdetaileditemdata.cpp.

References mTitle.

QString QgsDetailedItemData::title ( ) const

Member Data Documentation

bool QgsDetailedItemData::mCheckableFlag
private

Definition at line 62 of file qgsdetaileditemdata.h.

Referenced by isCheckable(), and setCheckable().

bool QgsDetailedItemData::mCheckedFlag
private

Definition at line 63 of file qgsdetaileditemdata.h.

Referenced by isChecked(), and setChecked().

QString QgsDetailedItemData::mDetail
private

Definition at line 59 of file qgsdetaileditemdata.h.

Referenced by detail(), and setDetail().

bool QgsDetailedItemData::mEnabledFlag
private

Definition at line 64 of file qgsdetaileditemdata.h.

Referenced by isEnabled(), QgsDetailedItemData(), and setEnabled().

QString QgsDetailedItemData::mLibraryName
private

Definition at line 60 of file qgsdetaileditemdata.h.

QPixmap QgsDetailedItemData::mPixmap
private

Definition at line 61 of file qgsdetaileditemdata.h.

Referenced by icon(), and setIcon().

bool QgsDetailedItemData::mRenderAsWidgetFlag
private
QString QgsDetailedItemData::mTitle
private

Definition at line 58 of file qgsdetaileditemdata.h.

Referenced by setTitle(), and title().


The documentation for this class was generated from the following files: