Noatun API Documentation

ScrollingLabel Class Reference

#include <scrollinglabel.h>

Inheritance diagram for ScrollingLabel:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 ScrollingLabel (const QString &initialText, QWidget *parent, const char *name=0)
virtual void setText (const QString &text, int time=-1)
virtual QSize sizeHint () const
virtual QSize minimumSizeHint () const
virtual QString text () const
virtual void setScroll (bool on)

Protected Slots

virtual void scroll ()
virtual void restoreText ()

Protected Member Functions

virtual void paintEvent (QPaintEvent *)
virtual void resizeEvent (QResizeEvent *)

Detailed Description

A clever label that scrolls its contents as soon as there is not enough space to show everything at once.

Definition at line 31 of file scrollinglabel.h.


Member Function Documentation

virtual void ScrollingLabel::setScroll bool  on  )  [virtual]
 

Used to enable/disable scrolling manually

virtual void ScrollingLabel::setText const QString &  text,
int  time = -1
[virtual]
 

Sets the label's text set time (ms) if you want to display a temporary message

virtual QString ScrollingLabel::text  )  const [virtual]
 

Returns:
the label's text.


The documentation for this class was generated from the following file:
KDE Logo
This file is part of the documentation for Noatun 2.6.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Oct 21 23:49:48 2004 by doxygen 1.3.8-20040913 written by Dimitri van Heesch, © 1997-2003