Logo Search packages:      
Sourcecode: kmess version File versions  Download package

GradientElideLabel Class Reference

#include <gradientelidelabel.h>

List of all members.

Detailed Description

This class is a subclass of QLabel that provides gradient Elide support. It properly supports rich text in the underlying QLabel.

It does this by forcing the underlying QLabel to draw itself onto a pixmap and then compositing this pixmap with a transparent gradient.

It will only draw the gradient if the text width exceeds the width of the label.

Adam Goossens (fontknocker@gmail.com)

Definition at line 33 of file gradientelidelabel.h.

Public Slots

void setText (const QString &text)

Public Member Functions

 GradientElideLabel (const QString &text, QWidget *parent=0)
 GradientElideLabel (QWidget *parent=0)
void paintEvent (QPaintEvent *event)

Private Attributes

QString cleanText

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

Generated by  Doxygen 1.6.0   Back to index