Logo Search packages:      
Sourcecode: virtualbox-ose version File versions

QITextEdit Class Reference

#include <VBoxUtils.h>

List of all members.

Detailed Description

Simple QTextEdit subclass to return its minimumSizeHint() as sizeHint() for getting more compact layout.

QTextEdit reimplementation used as summary viewer in different wizards: 1. Enforces parent layout to ignore viewer if there is no text. 2. Updates sizeHint() & geometry after setting new text for getting more compact layout. 3. Tries to take into account horizontal scrollbar if present to avoid vertical scrollbar appearing. 4. Makes the paper color similar to the background color.

Definition at line 177 of file VBoxUtils.h.

Public Slots

void setText (const QString &aText)

Public Member Functions

QSize minimumSizeHint () const
QSize minimumSizeHint () const
 QITextEdit (QWidget *aParent)
 QITextEdit (QWidget *aParent)
QSize sizeHint () const
QSize sizeHint () const
void updateSizeHint ()

Private Attributes

QSize mOwnSizeHint

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index