QGIS API Documentation
2.8.2-Wien
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
src
gui
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 :
[email protected]
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
18
#include "
qgsdetaileditemdata.h
"
19
QgsDetailedItemData::QgsDetailedItemData
()
20
: mCheckableFlag( false )
21
, mCheckedFlag( false )
22
, mEnabledFlag( true )
23
, mRenderAsWidgetFlag( false )
24
{
25
26
}
27
28
QgsDetailedItemData::~QgsDetailedItemData
()
29
{
30
}
31
32
void
QgsDetailedItemData::setTitle
(
const
QString theTitle )
33
{
34
mTitle = theTitle;
35
}
36
37
void
QgsDetailedItemData::setDetail
(
const
QString theDetail )
38
{
39
mDetail = theDetail;
40
}
41
42
void
QgsDetailedItemData::setCategory
(
const
QString theCategory )
43
{
44
mCategory = theCategory;
45
}
46
47
void
QgsDetailedItemData::setIcon
(
const
QPixmap theIcon )
48
{
49
mPixmap = theIcon;
50
}
51
52
void
QgsDetailedItemData::setCheckable
(
const
bool
theFlag )
53
{
54
mCheckableFlag = theFlag;
55
}
56
57
void
QgsDetailedItemData::setChecked
(
const
bool
theFlag )
58
{
59
mCheckedFlag = theFlag;
60
}
61
62
void
QgsDetailedItemData::setRenderAsWidget
(
const
bool
theFlag )
63
{
64
mRenderAsWidgetFlag = theFlag;
65
}
66
67
QString
QgsDetailedItemData::title
()
const
68
{
69
return
mTitle;
70
}
71
72
QString
QgsDetailedItemData::detail
()
const
73
{
74
return
mDetail;
75
}
76
77
QString
QgsDetailedItemData::category
()
const
78
{
79
return
mCategory;
80
}
81
82
QPixmap
QgsDetailedItemData::icon
()
const
83
{
84
return
mPixmap;
85
}
86
87
bool
QgsDetailedItemData::isCheckable
()
const
88
{
89
return
mCheckableFlag;
90
}
91
92
bool
QgsDetailedItemData::isChecked
()
const
93
{
94
return
mCheckedFlag;
95
}
96
97
bool
QgsDetailedItemData::isRenderedAsWidget
()
const
98
{
99
return
mRenderAsWidgetFlag;
100
}
101
102
void
QgsDetailedItemData::setEnabled
(
bool
theFlag )
103
{
104
mEnabledFlag = theFlag;
105
}
106
107
bool
QgsDetailedItemData::isEnabled
()
const
108
{
109
return
mEnabledFlag;
110
}
Generated on Sun May 10 2015 16:33:26 for QGIS API Documentation by
1.8.1.2