21 #ifndef CLICKLINEEDIT_H 22 #define CLICKLINEEDIT_H 24 #include <klineedit.h> 25 #include <tdepimmacros.h> 40 TQ_PROPERTY( TQString clickMessage READ clickMessage WRITE setClickMessage ) 42 ClickLineEdit( TQWidget *parent, const TQString &msg = TQString(), const char* name = 0 ); 45 void setClickMessage( const TQString &msg ); 46 TQString clickMessage() const { return mClickMessage; } 48 virtual void setText( const TQString& txt ); 51 virtual void drawContents( TQPainter *p ); 52 virtual void focusInEvent( TQFocusEvent *ev ); 53 virtual void focusOutEvent( TQFocusEvent *ev ); 56 TQString mClickMessage; 63 #endif // CLICKLINEEDIT_H TDEPIM classes for drag and drop of mails.
This class provides a KLineEdit which contains a greyed-out hinting text as long as the user didn't e...
|