QGIS API Documentation
2.4.0-Chugiak
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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
#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
QgsDetailedItemData
This class is the data only representation of a QgsDetailedItemWidget, designed to be used in custom ...
Definition:
qgsdetaileditemdata.h:29
QgsDetailedItemData::mCheckableFlag
bool mCheckableFlag
Definition:
qgsdetaileditemdata.h:64
QgsDetailedItemData::mEnabledFlag
bool mEnabledFlag
Definition:
qgsdetaileditemdata.h:66
icon
static QIcon icon(QString icon)
Definition:
qgsmessagelogviewer.cpp:30
QgsDetailedItemData::mPixmap
QPixmap mPixmap
Definition:
qgsdetaileditemdata.h:63
QgsDetailedItemData::mTitle
QString mTitle
Definition:
qgsdetaileditemdata.h:59
QgsDetailedItemData::mRenderAsWidgetFlag
bool mRenderAsWidgetFlag
Definition:
qgsdetaileditemdata.h:67
QgsDetailedItemData::mCategory
QString mCategory
Definition:
qgsdetaileditemdata.h:61
QgsDetailedItemData::mCheckedFlag
bool mCheckedFlag
Definition:
qgsdetaileditemdata.h:65
QgsDetailedItemData::mLibraryName
QString mLibraryName
Definition:
qgsdetaileditemdata.h:62
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(QgsExpression::Interval)
QgsDetailedItemData::mDetail
QString mDetail
Definition:
qgsdetaileditemdata.h:60
Generated on Wed Mar 18 2015 11:40:14 for QGIS API Documentation by
1.8.9.1