class KSqueezedTextLabel |
|
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
Author Ronny Standtke |
|
Default constructor. |
|
|
|
|
\reimp |
|
|
Called when widget is resized |
|
Overridden for internal reasons; the API remains unaffected. |
|
Sets the text. Note that this is not technically a reimplementation of QLabel.setText(),
which is not virtual (in Qt 4.3). Therefore, you may need to cast the object to
KSqueezedTextLabel in some situations:
\Example
KSqueezedTextLabel* squeezed = new KSqueezedTextLabel("text", parent); QLabel* label = squeezed; label->setText("new text"); // this will not work squeezed->setText("new text"); // works as expected static_cast mode - The new text. |
|
Sets the text elide mode.
mode - The text elide mode. |
|
|
does the dirty work |
|
Returns the text elide mode. |