.TH "KSqueezedTextLabel" kde3 "11 Jun 2005" "Version Version 3.4.1" "kdeui Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KSqueezedTextLabel \- A replacement for \fBQLabel\fP that squeezes its text.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <ksqueezedtextlabel.h>\fP
.PP
Inherits \fBQLabel\fP.
.PP
.SS "Public Slots"

.in +1c
.ti -1c
.RI "void \fBsetText\fP (const \fBQString\fP &)"
.br
.in -1c
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKSqueezedTextLabel\fP (\fBQWidget\fP *parent, const char *name=0)"
.br
.ti -1c
.RI "\fBKSqueezedTextLabel\fP (const \fBQString\fP &\fBtext\fP, \fBQWidget\fP *parent, const char *name=0)"
.br
.ti -1c
.RI "virtual \fBQSize\fP \fBminimumSizeHint\fP () const "
.br
.ti -1c
.RI "virtual \fBQSize\fP \fBsizeHint\fP () const "
.br
.ti -1c
.RI "virtual void \fBsetAlignment\fP (int)"
.br
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "void \fBresizeEvent\fP (\fBQResizeEvent\fP *)"
.br
.ti -1c
.RI "void \fBsqueezeTextToLabel\fP ()"
.br
.ti -1c
.RI "virtual void \fBvirtual_hook\fP (int id, void *data)"
.br
.in -1c
.SS "Protected Attributes"

.in +1c
.ti -1c
.RI "\fBQString\fP \fBfullText\fP"
.br
.in -1c
.SH "Detailed Description"
.PP 
A replacement for \fBQLabel\fP that squeezes its text. 

A label class that squeezes its text into the label
.PP
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.
.PP
Example: http://www.kde.org/documentation/index.html could be squeezed to http://www.kde...ion/index.html
.PP
KSqueezedTextLabel Widget 
.PP
\fBAuthor:\fP
.RS 4
Ronny Standtke <Ronny.Standtke@gmx.de> 
.RE
.PP

.PP
Definition at line 46 of file ksqueezedtextlabel.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KSqueezedTextLabel::KSqueezedTextLabel (\fBQWidget\fP * parent, const char * name = \fC0\fP)"
.PP
Default constructor. 
.PP
Definition at line 30 of file ksqueezedtextlabel.cpp.
.SH "Member Function Documentation"
.PP 
.SS "void KSqueezedTextLabel::setAlignment (int)\fC [virtual]\fP"
.PP
Overridden for internal reasons; the API remains unaffected. 
.PP
Reimplemented from \fBQLabel\fP.
.PP
Definition at line 76 of file ksqueezedtextlabel.cpp.
.PP
References QLabel::setAlignment().
.SS "void KSqueezedTextLabel::resizeEvent (\fBQResizeEvent\fP *)\fC [protected]\fP"
.PP
used when widget is resized 
.PP
Definition at line 35 of file ksqueezedtextlabel.cpp.
.PP
References squeezeTextToLabel().
.SS "void KSqueezedTextLabel::squeezeTextToLabel ()\fC [protected]\fP"
.PP
does the dirty work 
.PP
Definition at line 56 of file ksqueezedtextlabel.cpp.
.PP
References QToolTip::add(), KStringHandler::cPixelSqueeze(), QToolTip::hide(), QToolTip::remove(), QLabel::setText(), and QFontMetrics::width().
.PP
Referenced by resizeEvent().

.SH "Author"
.PP 
Generated automatically by Doxygen for kdeui Library from the source code.
