qCTKFittedTextBrowser.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
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