QGIS API Documentation
2.0.1-Dufour
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.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsdetaileditemdata.h - 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
#ifndef QGSDETAILEDITEMDATA_H
18
#define QGSDETAILEDITEMDATA_H
19
20
21
#include <QMetaType>
22
#include <QString>
23
#include <QPixmap>
24
29
class
GUI_EXPORT
QgsDetailedItemData
30
{
31
public
:
32
QgsDetailedItemData
();
33
~
QgsDetailedItemData
();
34
void
setTitle(
const
QString theTitle );
35
void
setDetail(
const
QString theDetail );
36
void
setCategory(
const
QString theCategory );
37
void
setIcon(
const
QPixmap theIcon );
38
void
setCheckable(
const
bool
theFlag );
39
void
setChecked(
const
bool
theFlag );
40
void
setEnabled(
bool
theFlag );
47
void
setRenderAsWidget(
bool
theFlag );
48
49
QString title()
const
;
50
QString detail()
const
;
51
QString category()
const
;
52
QPixmap
icon
()
const
;
53
bool
isCheckable()
const
;
54
bool
isChecked()
const
;
55
bool
isEnabled()
const
;
56
bool
isRenderedAsWidget()
const
;
57
58
private
:
59
QString
mTitle
;
60
QString
mDetail
;
61
QString
mCategory
;
62
QString
mLibraryName
;
63
QPixmap
mPixmap
;
64
bool
mCheckableFlag
;
65
bool
mCheckedFlag
;
66
bool
mEnabledFlag
;
67
bool
mRenderAsWidgetFlag
;
68
};
69
70
// Make QVariant aware of this data type (see qtdocs star
71
// rating delegate example for more details)
72
Q_DECLARE_METATYPE
(
QgsDetailedItemData
)
73
#endif //QGSDETAILEDITEMDATA_H
Generated on Tue Sep 24 2013 14:41:48 for QGIS API Documentation by
1.8.1.2