libkdepim
KRSqueezedTextLabel Class Reference
A replacement for QLabel that squeezes its text. More...
#include <krsqueezedtextlabel.h>
Inherits QLabel.
Public Slots | |
void | setText (const QString &) |
Public Member Functions | |
KRSqueezedTextLabel (QWidget *parent, const char *name=0) | |
KRSqueezedTextLabel (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 () |
Protected Attributes | |
QString | fullText |
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.
Definition at line 41 of file krsqueezedtextlabel.h.
Constructor & Destructor Documentation
KRSqueezedTextLabel::KRSqueezedTextLabel | ( | QWidget * | parent, | |
const char * | name = 0 | |||
) |
Member Function Documentation
void KRSqueezedTextLabel::resizeEvent | ( | QResizeEvent * | ) | [protected] |
void KRSqueezedTextLabel::setAlignment | ( | int | alignment | ) | [virtual] |
Overridden for internal reasons; the API remains unaffected.
Definition at line 78 of file krsqueezedtextlabel.cpp.
void KRSqueezedTextLabel::squeezeTextToLabel | ( | ) | [protected] |
The documentation for this class was generated from the following files: