libtdepim

#include <krsqueezedtextlabel.h>

Inherits TQLabel.

Public Slots

void setText (const TQString &)
 

Public Member Functions

 KRSqueezedTextLabel (TQWidget *parent, const char *name=0)
 
 KRSqueezedTextLabel (const TQString &text, TQWidget *parent, const char *name=0)
 
virtual TQSize minimumSizeHint () const
 
virtual TQSize sizeHint () const
 
virtual void setAlignment (int)
 

Protected Member Functions

void resizeEvent (TQResizeEvent *)
 
void squeezeTextToLabel ()
 

Protected Attributes

TQString fullText
 

Detailed Description

A replacement for TQLabel 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.

Author
Ronny Standtke Ronny.nosp@m..Sta.nosp@m.ndtke.nosp@m.@gmx.nosp@m..de

Definition at line 41 of file krsqueezedtextlabel.h.

Constructor & Destructor Documentation

◆ KRSqueezedTextLabel()

KRSqueezedTextLabel::KRSqueezedTextLabel ( TQWidget *  parent,
const char *  name = 0 
)

Default constructor.

Definition at line 32 of file krsqueezedtextlabel.cpp.

Member Function Documentation

◆ resizeEvent()

void KRSqueezedTextLabel::resizeEvent ( TQResizeEvent *  )
protected

used when widget is resized

Definition at line 37 of file krsqueezedtextlabel.cpp.

◆ setAlignment()

void KRSqueezedTextLabel::setAlignment ( int  alignment)
virtual

Overridden for internal reasons; the API remains unaffected.

Definition at line 78 of file krsqueezedtextlabel.cpp.

◆ squeezeTextToLabel()

void KRSqueezedTextLabel::squeezeTextToLabel ( )
protected

does the dirty work

Definition at line 58 of file krsqueezedtextlabel.cpp.


The documentation for this class was generated from the following files: