QGIS API Documentation  2.8.2-Wien
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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"
20  QWidget( parent )
21 
22 {
23  setupUi( this );
24 }
25 
27 {
28 }
29 
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 
41 {
42  cbx->setChecked( theFlag );
43 }