#include <Libs/Widgets/ctkFittedTextBrowser.h>
ctkFittedTextBrowser is a QTextBrowser that adapts its height depending on its contents and the width available. It always tries to show the whole contents. ctkFittedTextBrowser doesn't resize itself but acts on the sizeHint, minimumSizeHint and heightForWidth. Here sizeHint() and minimumSizeHint() are the same as ctkFittedTextBrowser always try to show the whole contents.
Definition at line 37 of file ctkFittedTextBrowser.h.
◆ ctkFittedTextBrowser()
ctkFittedTextBrowser::ctkFittedTextBrowser |
( |
QWidget * |
parent = 0 | ) |
|
◆ ~ctkFittedTextBrowser()
virtual ctkFittedTextBrowser::~ctkFittedTextBrowser |
( |
| ) |
|
|
virtual |
◆ heightForWidth()
virtual int ctkFittedTextBrowser::heightForWidth |
( |
int |
width | ) |
const |
|
virtual |
Reimplemented for internal reasons.
◆ heightForWidthMayHaveChanged
void ctkFittedTextBrowser::heightForWidthMayHaveChanged |
( |
| ) |
|
|
protectedslot |
◆ minimumSizeHint()
virtual QSize ctkFittedTextBrowser::minimumSizeHint |
( |
| ) |
const |
|
virtual |
Reimplemented for internal reasons.
◆ resizeEvent()
virtual void ctkFittedTextBrowser::resizeEvent |
( |
QResizeEvent * |
e | ) |
|
|
protectedvirtual |
◆ sizeHint()
virtual QSize ctkFittedTextBrowser::sizeHint |
( |
| ) |
const |
|
virtual |
Reimplemented for internal reasons.
The documentation for this class was generated from the following file: