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
00057 public slots:
00058 void setText( const QString & );
00059
00060 protected:
00064 void resizeEvent( QResizeEvent * );
00068 void squeezeTextToLabel();
00069 QString fullText;
00070
00071 protected:
00072 virtual void virtual_hook( int id, void* data );
00073 private:
00074 class KSqueezedTextLabelPrivate;
00075 KSqueezedTextLabelPrivate *d;
00076 };
00077
00078 #endif // KSQUEEZEDTEXTLABEL_H
This file is part of the documentation for kdeui Library Version 3.2.2.