ksqueezedtextlabel.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
#ifndef KSQUEEZEDTEXTLABEL_H
00020
#define KSQUEEZEDTEXTLABEL_H
00021
00022
#include <qlabel.h>
00023
00042
00043
00044
00045 class KSqueezedTextLabel :
public QLabel {
00046 Q_OBJECT
00047
00048
public:
00052
KSqueezedTextLabel(
QWidget *parent,
const char *name = 0 );
00053
KSqueezedTextLabel(
const QString &text,
QWidget *parent,
const char *name = 0 );
00054
00055
virtual QSize minimumSizeHint()
const;
00056
virtual QSize sizeHint()
const;
00057
00058
public slots:
00059
void setText(
const QString & );
00060
00061
protected:
00065
void resizeEvent(
QResizeEvent * );
00069
void squeezeTextToLabel();
00070
QString fullText;
00071
00072
protected:
00073
virtual void virtual_hook(
int id,
void* data );
00074
private:
00075
class KSqueezedTextLabelPrivate;
00076 KSqueezedTextLabelPrivate *d;
00077 };
00078
00079
#endif // KSQUEEZEDTEXTLABEL_H
This file is part of the documentation for kdeui Library Version 3.3.1.