SmartListView.h

Go to the documentation of this file.
00001 #ifndef SMART_LISTVIEW_H
00002 #define SMART_LISTVIEW_H
00003 
00004 #include <iostream.h>
00005 #include <qevent.h>
00006 #include <qlistview.h>
00007 
00008 class SmartListView : public QListView {
00009 
00010 public:
00011 
00012     SmartListView( QWidget* parent = 0, const char* name = 0 );
00013     virtual ~SmartListView();
00014 
00015     int getStretchColumn() const;
00016     void setStretchColumn( int col );
00017     bool areAllColumnsWide() const;
00018     void setAllColumnsWide( bool isOn );
00019     void updateColumnsWidth();
00020 
00021 protected:
00022 
00023     void resizeEvent( QResizeEvent* event );
00024 
00025 private:
00026 
00027     int stretchColumn;
00028     bool allColumnsWide;
00029 
00030 };
00031 
00032 #endif

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