Quantum GIS API Documentation  1.7.4
src/gui/qgsdetaileditemdata.cpp
Go to the documentation of this file.
00001 /***************************************************************************
00002      qgsdetailedlistdata.cpp  -  A data represenation for a rich QItemData subclass
00003                              -------------------
00004     begin                : Sat May 17 2008
00005     copyright            : (C) 2008 Tim Sutton
00006     email                : [email protected]
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 /* $Id:$ */
00018 
00019 #include "qgsdetaileditemdata.h"
00020 QgsDetailedItemData::QgsDetailedItemData()
00021 {
00022   mRenderAsWidgetFlag = false;
00023   mEnabledFlag = true;
00024 }
00025 
00026 QgsDetailedItemData::~QgsDetailedItemData()
00027 {
00028 }
00029 
00030 void QgsDetailedItemData::setTitle( const QString theTitle )
00031 {
00032   mTitle = theTitle;
00033 }
00034 
00035 void QgsDetailedItemData::setDetail( const QString theDetail )
00036 {
00037   mDetail = theDetail;
00038 }
00039 
00040 void QgsDetailedItemData::setIcon( const QPixmap theIcon )
00041 {
00042   mPixmap = theIcon;
00043 }
00044 void QgsDetailedItemData::setCheckable( const bool theFlag )
00045 {
00046   mCheckableFlag = theFlag;
00047 }
00048 void QgsDetailedItemData::setChecked( const bool theFlag )
00049 {
00050   mCheckedFlag = theFlag;
00051 }
00052 void QgsDetailedItemData::setRenderAsWidget( const bool theFlag )
00053 {
00054   mRenderAsWidgetFlag = theFlag;
00055 }
00056 
00057 QString QgsDetailedItemData::title() const
00058 {
00059   return mTitle;
00060 }
00061 
00062 QString QgsDetailedItemData::detail() const
00063 {
00064   return mDetail;
00065 }
00066 
00067 QPixmap QgsDetailedItemData::icon() const
00068 {
00069   return mPixmap;
00070 }
00071 
00072 bool QgsDetailedItemData::isCheckable() const
00073 {
00074   return mCheckableFlag;
00075 }
00076 
00077 bool QgsDetailedItemData::isChecked() const
00078 {
00079   return mCheckedFlag;
00080 }
00081 
00082 bool QgsDetailedItemData::isRenderedAsWidget() const
00083 {
00084   return mRenderAsWidgetFlag;
00085 }
00086 
00087 void QgsDetailedItemData::setEnabled( bool theFlag )
00088 {
00089   mEnabledFlag = theFlag;
00090 }
00091 
00092 bool QgsDetailedItemData::isEnabled() const
00093 {
00094   return mEnabledFlag;
00095 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines