\section{KSqueezed\-Text\-Label Class Reference}
\label{classKSqueezedTextLabel}\index{KSqueezedTextLabel@{KSqueezedTextLabel}}
A replacement for {\bf QLabel} that squeezes its text.  


{\tt \#include $<$ksqueezedtextlabel.h$>$}

Inheritance diagram for KSqueezed\-Text\-Label:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=74pt]{classKSqueezedTextLabel__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KSqueezed\-Text\-Label:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=80pt]{classKSqueezedTextLabel__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Slots}
\begin{CompactItemize}
\item 
void {\bf set\-Text} (const {\bf QString} \&)\label{classKSqueezedTextLabel_i0}

\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KSqueezed\-Text\-Label} ({\bf QWidget} $\ast$parent, const char $\ast$name=0)
\item 
{\bf KSqueezed\-Text\-Label} (const {\bf QString} \&{\bf text}, {\bf QWidget} $\ast$parent, const char $\ast$name=0)\label{classKSqueezedTextLabel_a1}

\item 
virtual {\bf QSize} {\bf minimum\-Size\-Hint} () const \label{classKSqueezedTextLabel_a2}

\item 
virtual {\bf QSize} {\bf size\-Hint} () const \label{classKSqueezedTextLabel_a3}

\item 
virtual void {\bf set\-Alignment} (int)
\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
void {\bf resize\-Event} ({\bf QResize\-Event} $\ast$)
\item 
void {\bf squeeze\-Text\-To\-Label} ()
\item 
virtual void {\bf virtual\_\-hook} (int id, void $\ast$data)\label{classKSqueezedTextLabel_b2}

\end{CompactItemize}
\subsection*{Protected Attributes}
\begin{CompactItemize}
\item 
{\bf QString} {\bf full\-Text}\label{classKSqueezedTextLabel_p0}

\end{CompactItemize}


\subsection{Detailed Description}
A replacement for {\bf 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: {\tt http://www.kde.org/documentation/index.html} could be squeezed to {\tt http://www.kde...ion/index.html}

 \begin{Desc}
\item[Author:]Ronny Standtke $<${\tt Ronny.Standtke@gmx.de}$>$ \end{Desc}




Definition at line 46 of file ksqueezedtextlabel.h.

\subsection{Constructor \& Destructor Documentation}
\index{KSqueezedTextLabel@{KSqueezed\-Text\-Label}!KSqueezedTextLabel@{KSqueezedTextLabel}}
\index{KSqueezedTextLabel@{KSqueezedTextLabel}!KSqueezedTextLabel@{KSqueezed\-Text\-Label}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KSqueezed\-Text\-Label::KSqueezed\-Text\-Label ({\bf QWidget} $\ast$ {\em parent}, const char $\ast$ {\em name} = {\tt 0})}\label{classKSqueezedTextLabel_a0}


Default constructor. 



Definition at line 30 of file ksqueezedtextlabel.cpp.

\subsection{Member Function Documentation}
\index{KSqueezedTextLabel@{KSqueezed\-Text\-Label}!setAlignment@{setAlignment}}
\index{setAlignment@{setAlignment}!KSqueezedTextLabel@{KSqueezed\-Text\-Label}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KSqueezed\-Text\-Label::set\-Alignment (int)\hspace{0.3cm}{\tt  [virtual]}}\label{classKSqueezedTextLabel_a4}


Overridden for internal reasons; the API remains unaffected. 



Reimplemented from {\bf QLabel}.

Definition at line 76 of file ksqueezedtextlabel.cpp.

References QLabel::set\-Alignment().\index{KSqueezedTextLabel@{KSqueezed\-Text\-Label}!resizeEvent@{resizeEvent}}
\index{resizeEvent@{resizeEvent}!KSqueezedTextLabel@{KSqueezed\-Text\-Label}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KSqueezed\-Text\-Label::resize\-Event ({\bf QResize\-Event} $\ast$)\hspace{0.3cm}{\tt  [protected]}}\label{classKSqueezedTextLabel_b0}


used when widget is resized 



Definition at line 35 of file ksqueezedtextlabel.cpp.

References squeeze\-Text\-To\-Label().\index{KSqueezedTextLabel@{KSqueezed\-Text\-Label}!squeezeTextToLabel@{squeezeTextToLabel}}
\index{squeezeTextToLabel@{squeezeTextToLabel}!KSqueezedTextLabel@{KSqueezed\-Text\-Label}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KSqueezed\-Text\-Label::squeeze\-Text\-To\-Label ()\hspace{0.3cm}{\tt  [protected]}}\label{classKSqueezedTextLabel_b1}


does the dirty work 



Definition at line 56 of file ksqueezedtextlabel.cpp.

References QTool\-Tip::add(), KString\-Handler::c\-Pixel\-Squeeze(), QTool\-Tip::hide(), QTool\-Tip::remove(), QLabel::set\-Text(), and QFont\-Metrics::width().

Referenced by resize\-Event().

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
ksqueezedtextlabel.h\item 
ksqueezedtextlabel.cpp\end{CompactItemize}
