QGIS API Documentation
2.14.0-Essen
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 :
[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
void
setTitle(
const
QString
& theTitle );
34
void
setDetail(
const
QString
& theDetail );
35
void
setCategory(
const
QString
& theCategory );
36
void
setIcon(
const
QPixmap
& theIcon );
37
void
setCheckable(
const
bool
theFlag );
38
void
setChecked(
const
bool
theFlag );
39
void
setEnabled(
bool
theFlag );
46
void
setRenderAsWidget(
bool
theFlag );
47
48
QString
title()
const
;
49
QString
detail()
const
;
50
QString
category()
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
mCategory;
61
QString
mLibraryName;
62
QPixmap
mPixmap;
63
bool
mCheckableFlag;
64
bool
mCheckedFlag;
65
bool
mEnabledFlag;
66
bool
mRenderAsWidgetFlag;
67
};
68
69
// Make QVariant aware of this data type (see qtdocs star
70
// rating delegate example for more details)
71
Q_DECLARE_METATYPE(
QgsDetailedItemData
)
72
#endif //QGSDETAILEDITEMDATA_H
QgsDetailedItemData
This class is the data only representation of a QgsDetailedItemWidget, designed to be used in custom ...
Definition:
qgsdetaileditemdata.h:29
QString
QPixmap
Generated on Sat Feb 27 2016 18:33:25 for QGIS API Documentation by
1.8.11