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
00040
00041
00042
00043 class KSqueezedTextLabel : public QLabel {
00044 Q_OBJECT
00045
00046 public:
00050 KSqueezedTextLabel( QWidget *parent, const char *name = 0 );
00051 KSqueezedTextLabel( const QString &text, QWidget *parent, const char *name = 0 );
00052
00053 virtual QSize minimumSizeHint() const;
00054
00055 public slots:
00056 void setText( const QString & );
00057
00058 protected:
00062 void resizeEvent( QResizeEvent * );
00066 void squeezeTextToLabel();
00067 QString fullText;
00068
00069 protected:
00070 virtual void virtual_hook( int id, void* data );
00071 private:
00072 class KSqueezedTextLabelPrivate;
00073 KSqueezedTextLabelPrivate *d;
00074 };
00075
00076 #endif // KSQUEEZEDTEXTLABEL_H
This file is part of the documentation for kdelibs Version 3.1.5.