libtdepim
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 <tdepimmacros.h>
00026
00038
00039
00040
00041 class KDE_EXPORT KRSqueezedTextLabel : public TQLabel {
00042 Q_OBJECT
00043
00044
00045 public:
00049 KRSqueezedTextLabel( TQWidget *parent, const char *name = 0 );
00050 KRSqueezedTextLabel( const TQString &text, TQWidget *parent, const char *name = 0 );
00051
00052 virtual TQSize minimumSizeHint() const;
00053 virtual TQSize sizeHint() const;
00057 virtual void setAlignment( int );
00058
00059 public slots:
00060 void setText( const TQString & );
00061
00062 protected:
00066 void resizeEvent( TQResizeEvent * );
00070 void squeezeTextToLabel();
00071 TQString fullText;
00072
00073 };
00074
00075 #endif // KRSQUEEZEDTEXTLABEL_H
|