#include <ksqueezedtextlabel.h>
Inherits TQLabel.
Public Slots | |
void | setText (const TQString &) |
Public Member Functions | |
KSqueezedTextLabel (TQWidget *parent, const char *name=0) | |
KSqueezedTextLabel (const TQString &text, TQWidget *parent, const char *name=0) | |
virtual TQSize | minimumSizeHint () const |
virtual TQSize | sizeHint () const |
virtual void | setAlignment (int) |
Protected Member Functions | |
void | resizeEvent (TQResizeEvent *) |
void | squeezeTextToLabel () |
virtual void | virtual_hook (int id, void *data) |
Protected Attributes | |
TQString | fullText |
Detailed Description
A replacement for TQLabel 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
Definition at line 46 of file ksqueezedtextlabel.h.
Constructor & Destructor Documentation
◆ KSqueezedTextLabel()
KSqueezedTextLabel::KSqueezedTextLabel | ( | TQWidget * | parent, |
const char * | name = 0 |
||
) |
Default constructor.
Definition at line 30 of file ksqueezedtextlabel.cpp.
Member Function Documentation
◆ resizeEvent()
|
protected |
used when widget is resized
Definition at line 35 of file ksqueezedtextlabel.cpp.
◆ setAlignment()
|
virtual |
Overridden for internal reasons; the API remains unaffected.
Definition at line 76 of file ksqueezedtextlabel.cpp.
◆ squeezeTextToLabel()
|
protected |
does the dirty work
Definition at line 56 of file ksqueezedtextlabel.cpp.
The documentation for this class was generated from the following files: