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
qgsdetaileditemwidget.cpp
Go to the documentation of this file.
1
/***************************************************************************
2
qgsdetailedlistwidget.cpp - A rich QItemWidget 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 "
qgsdetaileditemwidget.h
"
19
QgsDetailedItemWidget::QgsDetailedItemWidget
( QWidget * parent ) :
20
QWidget( parent )
21
22
{
23
setupUi(
this
);
24
}
25
26
QgsDetailedItemWidget::~QgsDetailedItemWidget
()
27
{
28
}
29
30
void
QgsDetailedItemWidget::setData
(
QgsDetailedItemData
theData )
31
{
32
lblTitle->setText( theData.
title
() );
33
lblDetail->setText( theData.
detail
() );
34
lblCategory->setText( theData.
category
() );
35
cbx->setVisible( theData.
isCheckable
() );
36
cbx->setChecked( theData.
isChecked
() );
37
lblIcon->setPixmap( theData.
icon
() );
38
}
39
40
void
QgsDetailedItemWidget::setChecked
(
bool
theFlag )
41
{
42
cbx->setChecked( theFlag );
43
}
Generated on Tue Sep 24 2013 14:41:48 for QGIS API Documentation by
1.8.1.2