1
/***************************************************************************
2
qgsdetailedlistdata.cpp - A data represenation for a rich QItemData subclass
4
begin : Sat May 17 2008
5
copyright : (C) 2008 Tim Sutton
6
email : tim@linfiniti.com
7
***************************************************************************/
9
/***************************************************************************
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
16
***************************************************************************/
19
#include "qgsdetaileditemdata.h"
20
QgsDetailedItemData::QgsDetailedItemData()
22
mRenderAsWidgetFlag = false;
26
QgsDetailedItemData::~QgsDetailedItemData()
30
void QgsDetailedItemData::setTitle( const QString theTitle )
35
void QgsDetailedItemData::setDetail( const QString theDetail )
40
void QgsDetailedItemData::setIcon( const QPixmap theIcon )
44
void QgsDetailedItemData::setCheckable( const bool theFlag )
46
mCheckableFlag = theFlag;
48
void QgsDetailedItemData::setChecked( const bool theFlag )
50
mCheckedFlag = theFlag;
52
void QgsDetailedItemData::setRenderAsWidget( const bool theFlag )
54
mRenderAsWidgetFlag = theFlag;
57
QString QgsDetailedItemData::title() const
62
QString QgsDetailedItemData::detail() const
67
QPixmap QgsDetailedItemData::icon() const
72
bool QgsDetailedItemData::isCheckable() const
74
return mCheckableFlag;
77
bool QgsDetailedItemData::isChecked() const
82
bool QgsDetailedItemData::isRenderedAsWidget() const
84
return mRenderAsWidgetFlag;
87
void QgsDetailedItemData::setEnabled( bool theFlag )
89
mEnabledFlag = theFlag;
92
bool QgsDetailedItemData::isEnabled() const