ContentListView.cpp

Go to the documentation of this file.
00001 #include "ContentListView.h"
00002 
00003 ContentListView::ContentListView( QWidget *parent = 0, const char* name = 0 )
00004     : SmartListView( parent, name ) {
00005     setSizePolicy( QSizePolicy( QSizePolicy::Preferred, QSizePolicy::Minimum ) );
00006     setHScrollBarMode( QScrollView::AlwaysOff );
00007     setVScrollBarMode( QScrollView::AlwaysOff );
00008 }
00009 
00010 ContentListView::~ContentListView() {
00011 }
00012 
00013 QSize ContentListView::sizeHint() const {
00014     int height = header()->height() + 8;
00015     if( childCount() > 0 )
00016         height += firstChild()->height() * childCount();
00017     return( QSize( parentWidget()->width(), height ) );
00018 }

Generated on Sun Mar 1 17:30:47 2009 for toMOTko by  doxygen 1.5.6