#include <ksqueezedtextlabel.h>
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
- Author
- Ronny Standtke Ronny.nosp@m..Sta.nosp@m.ndtke.nosp@m.@gmx.nosp@m..de
Definition at line 47 of file ksqueezedtextlabel.h.
KSqueezedTextLabel::KSqueezedTextLabel |
( |
QWidget * |
parent = 0 | ) |
|
|
explicit |
KSqueezedTextLabel::KSqueezedTextLabel |
( |
const QString & |
text, |
|
|
QWidget * |
parent = 0 |
|
) |
| |
|
explicit |
KSqueezedTextLabel::~KSqueezedTextLabel |
( |
| ) |
|
|
virtual |
void KSqueezedTextLabel::clear |
( |
| ) |
|
|
slot |
void KSqueezedTextLabel::contextMenuEvent |
( |
QContextMenuEvent * |
ev | ) |
|
|
protected |
QString KSqueezedTextLabel::fullText |
( |
| ) |
const |
QSize KSqueezedTextLabel::minimumSizeHint |
( |
| ) |
const |
|
virtual |
void KSqueezedTextLabel::mouseReleaseEvent |
( |
QMouseEvent * |
ev | ) |
|
|
protected |
void KSqueezedTextLabel::resizeEvent |
( |
QResizeEvent * |
| ) |
|
|
protected |
void KSqueezedTextLabel::setAlignment |
( |
Qt::Alignment |
alignment | ) |
|
|
virtual |
void KSqueezedTextLabel::setText |
( |
const QString & |
text | ) |
|
|
slot |
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:
label->setText("new text");
- Parameters
-
Definition at line 89 of file ksqueezedtextlabel.cpp.
void KSqueezedTextLabel::setTextElideMode |
( |
Qt::TextElideMode |
mode | ) |
|
QSize KSqueezedTextLabel::sizeHint |
( |
void |
| ) |
const |
|
virtual |
void KSqueezedTextLabel::squeezeTextToLabel |
( |
| ) |
|
|
protected |
Qt::TextElideMode KSqueezedTextLabel::textElideMode |
( |
| ) |
const |
Returns the text elide mode.
Qt::TextElideMode KSqueezedTextLabel::textElideMode |
|
readwrite |
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2015 The KDE developers.
Generated on Tue Sep 22 2015 14:04:21 by
doxygen 1.8.9.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.