KSqueezedTextLabel Class Reference
A label class that squeezes its text into the labelA replacement for QLabel that squeezes its text. More...
#include <ksqueezedtextlabel.h>
Inheritance diagram for KSqueezedTextLabel:

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 |
Protected Member Functions | |
void | resizeEvent (QResizeEvent *) |
void | squeezeTextToLabel () |
virtual void | virtual_hook (int id, void *data) |
Protected Attributes | |
QString | fullText |
Detailed Description
A label class that squeezes its text into the labelA replacement for QLabel that squeezes its text.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
- Author:
- Ronny Standtke <Ronny.Standtke@gmx.de>
- Version:
- Id
- ksqueezedtextlabel.h,v 1.11 2004/06/06 00:34:26 raabe Exp
Definition at line 45 of file ksqueezedtextlabel.h.
Constructor & Destructor Documentation
|
Default constructor.
Definition at line 30 of file ksqueezedtextlabel.cpp. |
Member Function Documentation
|
used when widget is resized
Definition at line 35 of file ksqueezedtextlabel.cpp. References squeezeTextToLabel(). |
|
does the dirty work
Definition at line 56 of file ksqueezedtextlabel.cpp. References KStringHandler::cPixelSqueeze(). Referenced by resizeEvent(). |
The documentation for this class was generated from the following files: