libkdepim
krsqueezedtextlabel.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef KRSQUEEZEDTEXTLABEL_H
00022 #define KRSQUEEZEDTEXTLABEL_H
00023
00024 #include <tqlabel.h>
00025 #include <kdepimmacros.h>
00026
00038
00039
00040
00041 class KDE_EXPORT KRSqueezedTextLabel : public TQLabel {
00042 Q_OBJECT
00043
00044 public:
00048 KRSqueezedTextLabel( TQWidget *parent, const char *name = 0 );
00049 KRSqueezedTextLabel( const TQString &text, TQWidget *parent, const char *name = 0 );
00050
00051 virtual TQSize minimumSizeHint() const;
00052 virtual TQSize sizeHint() const;
00056 virtual void setAlignment( int );
00057
00058 public slots:
00059 void setText( const TQString & );
00060
00061 protected:
00065 void resizeEvent( TQResizeEvent * );
00069 void squeezeTextToLabel();
00070 TQString fullText;
00071
00072 };
00073
00074 #endif // KRSQUEEZEDTEXTLABEL_H
|