• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kdeui

KSqueezedTextLabel Class Reference

A replacement for QLabel that squeezes its text. More...

#include <ksqueezedtextlabel.h>

Inheritance diagram for KSqueezedTextLabel:

Inheritance graph
[legend]

List of all members.


Public Slots

void setText (const QString &)

Public Member Functions

 KSqueezedTextLabel (const QString &text, QWidget *parent, const char *name=0)
 KSqueezedTextLabel (QWidget *parent, const char *name=0)
virtual QSize minimumSizeHint () const
virtual void setAlignment (int)
virtual QSize sizeHint () const

Protected Member Functions

void resizeEvent (QResizeEvent *)
void squeezeTextToLabel ()
virtual void virtual_hook (int id, void *data)

Protected Attributes

QString fullText

Detailed Description

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.png

KSqueezedTextLabel Widget

Author:
Ronny Standtke <Ronny.Standtke@gmx.de>

Definition at line 46 of file ksqueezedtextlabel.h.


Constructor & Destructor Documentation

KSqueezedTextLabel::KSqueezedTextLabel ( QWidget *  parent,
const char *  name = 0 
)

Default constructor.

Definition at line 30 of file ksqueezedtextlabel.cpp.

KSqueezedTextLabel::KSqueezedTextLabel ( const QString &  text,
QWidget *  parent,
const char *  name = 0 
)

Definition at line 23 of file ksqueezedtextlabel.cpp.


Member Function Documentation

QSize KSqueezedTextLabel::minimumSizeHint ( void   )  const [virtual]

Definition at line 39 of file ksqueezedtextlabel.cpp.

void KSqueezedTextLabel::resizeEvent ( QResizeEvent *   )  [protected]

used when widget is resized

Definition at line 35 of file ksqueezedtextlabel.cpp.

void KSqueezedTextLabel::setAlignment ( int  alignment  )  [virtual]

Overridden for internal reasons; the API remains unaffected.

Reimplemented from QLabel.

Definition at line 76 of file ksqueezedtextlabel.cpp.

void KSqueezedTextLabel::setText ( const QString &  text  )  [slot]

Reimplemented from QLabel.

Definition at line 51 of file ksqueezedtextlabel.cpp.

QSize KSqueezedTextLabel::sizeHint ( void   )  const [virtual]

Definition at line 46 of file ksqueezedtextlabel.cpp.

void KSqueezedTextLabel::squeezeTextToLabel (  )  [protected]

does the dirty work

Definition at line 56 of file ksqueezedtextlabel.cpp.

void KSqueezedTextLabel::virtual_hook ( int  id,
void *  data 
) [protected, virtual]

Definition at line 84 of file ksqueezedtextlabel.cpp.


Member Data Documentation

QString KSqueezedTextLabel::fullText [protected]

Definition at line 75 of file ksqueezedtextlabel.h.


The documentation for this class was generated from the following files:
  • ksqueezedtextlabel.h
  • ksqueezedtextlabel.cpp

kdeui

Skip menu "kdeui"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal