Quantum GIS API Documentation  1.7.5-Wroclaw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
qgsdetaileditemdata.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  qgsdetailedlistdata.cpp - A data represenation for a rich QItemData subclass
3  -------------------
4  begin : Sat May 17 2008
5  copyright : (C) 2008 Tim Sutton
6  email : tim@linfiniti.com
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
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. *
15  * *
16  ***************************************************************************/
17 /* $Id:$ */
18 
19 #include "qgsdetaileditemdata.h"
21 {
22  mRenderAsWidgetFlag = false;
23  mEnabledFlag = true;
24 }
25 
27 {
28 }
29 
30 void QgsDetailedItemData::setTitle( const QString theTitle )
31 {
32  mTitle = theTitle;
33 }
34 
35 void QgsDetailedItemData::setDetail( const QString theDetail )
36 {
37  mDetail = theDetail;
38 }
39 
40 void QgsDetailedItemData::setIcon( const QPixmap theIcon )
41 {
42  mPixmap = theIcon;
43 }
44 void QgsDetailedItemData::setCheckable( const bool theFlag )
45 {
46  mCheckableFlag = theFlag;
47 }
48 void QgsDetailedItemData::setChecked( const bool theFlag )
49 {
50  mCheckedFlag = theFlag;
51 }
52 void QgsDetailedItemData::setRenderAsWidget( const bool theFlag )
53 {
54  mRenderAsWidgetFlag = theFlag;
55 }
56 
58 {
59  return mTitle;
60 }
61 
63 {
64  return mDetail;
65 }
66 
68 {
69  return mPixmap;
70 }
71 
73 {
74  return mCheckableFlag;
75 }
76 
78 {
79  return mCheckedFlag;
80 }
81 
83 {
84  return mRenderAsWidgetFlag;
85 }
86 
87 void QgsDetailedItemData::setEnabled( bool theFlag )
88 {
89  mEnabledFlag = theFlag;
90 }
91 
93 {
94  return mEnabledFlag;
95 }