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
00024 #include <kdelibs_export.h>
00025
00043
00044
00045
00046 class KDEUI_EXPORT KSqueezedTextLabel : public QLabel {
00047 Q_OBJECT
00048
00049 public:
00053 KSqueezedTextLabel( QWidget *parent, const char *name = 0 );
00054 KSqueezedTextLabel( const QString &text, QWidget *parent, const char *name = 0 );
00055
00056 virtual QSize minimumSizeHint() const;
00057 virtual QSize sizeHint() const;
00058
00059 public slots:
00060 void setText( const QString & );
00061
00062 protected:
00066 void resizeEvent( QResizeEvent * );
00070 void squeezeTextToLabel();
00071 QString fullText;
00072
00073 protected:
00074 virtual void virtual_hook( int id, void* data );
00075 private:
00076 class KSqueezedTextLabelPrivate;
00077 KSqueezedTextLabelPrivate *d;
00078 };
00079
00080 #endif // KSQUEEZEDTEXTLABEL_H
This file is part of the documentation for kdeui Library Version 3.3.90.