\section{KSqueezed\-Text\-Label Class Reference}
\label{classKSqueezedTextLabel}\index{KSqueezedTextLabel@{KSqueezedTextLabel}}
A label class that squeezes its text into the label 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=75pt]{classKSqueezedTextLabel__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KSqueezed\-Text\-Label:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=88pt]{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)
\begin{CompactList}\small\item\em Default constructor. \item\end{CompactList}\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}

\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
void {\bf resize\-Event} ({\bf QResize\-Event} $\ast$)
\begin{CompactList}\small\item\em used when widget is resized \item\end{CompactList}\item 
void {\bf squeeze\-Text\-To\-Label} ()
\begin{CompactList}\small\item\em does the dirty work \item\end{CompactList}\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 label class that squeezes its text into the label A replacement for {\bf 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: {\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}
\begin{Desc}
\item[Version:]\begin{Desc}
\item[Id]{\bf ksqueezedtextlabel.h}{\rm (p.\,\pageref{ksqueezedtextlabel_8h})},v 1.6 2002/03/04 00:51:51 lunakl Exp \end{Desc}
\end{Desc}




Definition at line 43 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} = 0)}\label{classKSqueezedTextLabel_a0}


Default constructor. 



Definition at line 29 of file ksqueezedtextlabel.cpp.

References KStd\-Accel::name().

\subsection{Member Function Documentation}
\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 34 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 50 of file ksqueezedtextlabel.cpp.

References QTool\-Tip::add(), QTool\-Tip::hide(), QString::left(), QString::length(), QTool\-Tip::remove(), QString::right(), 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}
