clicklineedit.h
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
namespace KPIM {
00027
00035 class ClickLineEdit :
public KLineEdit
00036 {
00037 Q_OBJECT
00038
public:
00039
ClickLineEdit(
QWidget *parent,
const QString &msg = QString::null,
const char* name = 0 );
00040 ~
ClickLineEdit();
00041
00042
void setClickMessage(
const QString &msg );
00043
QString clickMessage()
const {
return mClickMessage; }
00044
00045
virtual void setText(
const QString& txt );
00046
00047
protected:
00048
virtual void drawContents(
QPainter *p );
00049
virtual void focusInEvent(
QFocusEvent *ev );
00050
virtual void focusOutEvent(
QFocusEvent *ev );
00051
00052
private:
00053
QString mClickMessage;
00054
bool mDrawClickMsg;
00055
00056 };
00057
00058 }
00059
00060
#endif // CLICKLINEEDIT_H
00061
00062
This file is part of the documentation for libkdepim Library Version 3.3.0.