qCTKFittedTextBrowser.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Library:   qCTK
00004 
00005   Copyright (c) Kitware Inc. 
00006   All rights reserved.
00007   Distributed under a BSD License. See LICENSE.txt file.
00008 
00009   This software is distributed "AS IS" WITHOUT ANY WARRANTY; without even
00010   the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00011   See the above copyright notice for more information.
00012 
00013 =========================================================================*/
00014 
00015 #ifndef __qCTKFittedTextBrowser_h
00016 #define __qCTKFittedTextBrowser_h
00017 
00019 #include <QTextBrowser>
00020 
00021 #include "qCTKWidgetsExport.h"
00022 
00023 class QCTK_WIDGETS_EXPORT qCTKFittedTextBrowser : public QTextBrowser
00024 {
00025   Q_OBJECT
00026 
00027 public:
00028   qCTKFittedTextBrowser(QWidget* parent = 0);
00029   virtual ~qCTKFittedTextBrowser();
00030 
00031   virtual QSize sizeHint() const;
00032   virtual QSize minimumSizeHint() const;
00033   virtual int heightForWidth(int width) const;
00034 
00035 protected slots:
00036   void heightForWidthMayHaveChanged();
00037 
00038 protected:
00039   virtual void resizeEvent(QResizeEvent* e);
00040 };
00041 
00042 #endif

Generated on 6 Apr 2011 for Slicer3 by  doxygen 1.6.1