CMS 3D CMS Logo

IgQtScrollView.cc

Go to the documentation of this file.
00001 //<<<<<< INCLUDES                                                       >>>>>>
00002 
00003 #include "Iguana/Studio/interface/IgQtScrollView.h"
00004 
00005 //<<<<<< PRIVATE DEFINES                                                >>>>>>
00006 //<<<<<< PRIVATE CONSTANTS                                              >>>>>>
00007 //<<<<<< PRIVATE TYPES                                                  >>>>>>
00008 //<<<<<< PRIVATE VARIABLE DEFINITIONS                                   >>>>>>
00009 //<<<<<< PUBLIC VARIABLE DEFINITIONS                                    >>>>>>
00010 //<<<<<< CLASS STRUCTURE INITIALIZATION                                 >>>>>>
00011 //<<<<<< PRIVATE FUNCTION DEFINITIONS                                   >>>>>>
00012 //<<<<<< PUBLIC FUNCTION DEFINITIONS                                    >>>>>>
00013 //<<<<<< MEMBER FUNCTION DEFINITIONS                                    >>>>>>
00014 
00015 IgQtScrollView::IgQtScrollView (QWidget * parent /*= 0*/,
00016                                 const char * name /*= 0*/,
00017                                 WFlags f /*= 0*/)
00018     : QScrollView (parent, name, f)
00019 { }
00020 
00021 void IgQtScrollView::resizeEvent (QResizeEvent *event)
00022 {
00023     QScrollBar *sb = horizontalScrollBar ();
00024     if (sb->value () != sb->minValue ())
00025         sb->setValue (sb->minValue ());
00026     sb = verticalScrollBar ();
00027     if (sb->value () != sb->minValue ())
00028         sb->setValue (sb->minValue ());
00029     QScrollView::resizeEvent (event);
00030 }
00031 

Generated on Tue Jun 9 17:38:49 2009 for CMSSW by  doxygen 1.5.4