KSqueezedTextLabel Class Reference
#include <ksqueezedtextlabel.h>
Inheritance diagram for KSqueezedTextLabel:

Detailed Description
A replacement for QLabel that squeezes its text.A label class that squeezes its text into the label
If the text is too long to fit into the label it is divided into remaining left and right parts which are separated by three dots.
Example: http://www.kde.org/documentation/index.html could be squeezed to http://www.kde...ion/index.html

KSqueezedTextLabel Widget
Definition at line 46 of file ksqueezedtextlabel.h.
Public Slots | |
void | setText (const QString &) |
Public Member Functions | |
KSqueezedTextLabel (QWidget *parent, const char *name=0) | |
KSqueezedTextLabel (const QString &text, QWidget *parent, const char *name=0) | |
virtual QSize | minimumSizeHint () const |
virtual QSize | sizeHint () const |
virtual void | setAlignment (int) |
Protected Member Functions | |
void | resizeEvent (QResizeEvent *) |
void | squeezeTextToLabel () |
virtual void | virtual_hook (int id, void *data) |
Protected Attributes | |
QString | fullText |
Constructor & Destructor Documentation
KSqueezedTextLabel::KSqueezedTextLabel | ( | QWidget * | parent, | |
const char * | name = 0 | |||
) |
Member Function Documentation
void KSqueezedTextLabel::setAlignment | ( | int | ) | [virtual] |
Overridden for internal reasons; the API remains unaffected.
Reimplemented from QLabel.
Definition at line 76 of file ksqueezedtextlabel.cpp.
void KSqueezedTextLabel::resizeEvent | ( | QResizeEvent * | ) | [protected] |
void KSqueezedTextLabel::squeezeTextToLabel | ( | ) | [protected] |
The documentation for this class was generated from the following files: