Quantum GIS API Documentation  1.8
src/gui/qgsdetaileditemwidget.cpp
Go to the documentation of this file.
00001 /***************************************************************************
00002      qgsdetailedlistwidget.cpp  -  A rich QItemWidget subclass
00003                              -------------------
00004     begin                : Sat May 17 2008
00005     copyright            : (C) 2008 Tim Sutton
00006     email                : [email protected]
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #include "qgsdetaileditemwidget.h"
00019 QgsDetailedItemWidget::QgsDetailedItemWidget( QWidget * parent ) :
00020     QWidget( parent )
00021 
00022 {
00023   setupUi( this );
00024 }
00025 
00026 QgsDetailedItemWidget::~QgsDetailedItemWidget()
00027 {
00028 }
00029 
00030 void QgsDetailedItemWidget::setData( QgsDetailedItemData theData )
00031 {
00032   lblTitle->setText( theData.title() );
00033   lblDetail->setText( theData.detail() );
00034   lblCategory->setText( theData.category() );
00035   cbx->setVisible( theData.isCheckable() );
00036   cbx->setChecked( theData.isChecked() );
00037   lblIcon->setPixmap( theData.icon() );
00038 }
00039 
00040 void QgsDetailedItemWidget::setChecked( bool theFlag )
00041 {
00042   cbx->setChecked( theFlag );
00043 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines