Quantum GIS API Documentation  1.7.5-Wroclaw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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 : 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 
19 #include "qgsdetaileditemwidget.h"
21  QWidget( parent )
22 
23 {
24  setupUi( this );
25 }
26 
28 {
29 }
30 
32 {
33  lblTitle->setText( theData.title() );
34  lblDetail->setText( theData.detail() );
35  cbx->setVisible( theData.isCheckable() );
36  cbx->setChecked( theData.isChecked() );
37  lblIcon->setPixmap( theData.icon() );
38 }
39 
41 {
42  cbx->setChecked( theFlag );
43 }