00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef CLICKLINEEDIT_H
00022 #define CLICKLINEEDIT_H
00023
00024 #include <klineedit.h>
00025
00026
00027 namespace KPIM {
00028
00036 class KDE_EXPORT ClickLineEdit : public KLineEdit
00037 {
00038 Q_OBJECT
00039 public:
00040 ClickLineEdit( TQWidget *parent, const TQString &msg = TQString::null, const char* name = 0 );
00041 ~ClickLineEdit();
00042
00043 void setClickMessage( const TQString &msg );
00044 TQString clickMessage() const { return mClickMessage; }
00045
00046 virtual void setText( const TQString& txt );
00047
00048 protected:
00049 virtual void drawContents( TQPainter *p );
00050 virtual void focusInEvent( TQFocusEvent *ev );
00051 virtual void focusOutEvent( TQFocusEvent *ev );
00052
00053 private:
00054 TQString mClickMessage;
00055 bool mDrawClickMsg;
00056
00057 };
00058
00059 }
00060
00061 #endif // CLICKLINEEDIT_H
00062
00063