Quantum GIS API Documentation
1.7.5-Wroclaw
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
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 : 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
#ifndef QGSDETAILEDITEMDATA_H
19
#define QGSDETAILEDITEMDATA_H
20
21
22
#include <QMetaType>
23
#include <QString>
24
#include <QPixmap>
25
30
class
GUI_EXPORT
QgsDetailedItemData
31
{
32
public
:
33
QgsDetailedItemData
();
34
~
QgsDetailedItemData
();
35
void
setTitle(
const
QString theTitle );
36
void
setDetail(
const
QString theDetail );
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
QPixmap icon()
const
;
52
bool
isCheckable()
const
;
53
bool
isChecked()
const
;
54
bool
isEnabled()
const
;
55
bool
isRenderedAsWidget()
const
;
56
57
private
:
58
QString
mTitle
;
59
QString
mDetail
;
60
QString
mLibraryName
;
61
QPixmap
mPixmap
;
62
bool
mCheckableFlag
;
63
bool
mCheckedFlag
;
64
bool
mEnabledFlag
;
65
bool
mRenderAsWidgetFlag
;
66
};
67
68
// Make QVariant aware of this data type (see qtdocs star
69
// rating delegate example for more details)
70
Q_DECLARE_METATYPE(
QgsDetailedItemData
)
71
#endif //QGSDETAILEDITEMDATA_H
Generated on Wed Jun 13 2012 13:54:11 for Quantum GIS API Documentation by
1.8.1