summaryrefslogtreecommitdiffstats
path: root/libkdepim/clicklineedit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libkdepim/clicklineedit.cpp')
-rw-r--r--libkdepim/clicklineedit.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/libkdepim/clicklineedit.cpp b/libkdepim/clicklineedit.cpp
index c53821639..dfe7cbadf 100644
--- a/libkdepim/clicklineedit.cpp
+++ b/libkdepim/clicklineedit.cpp
@@ -22,11 +22,11 @@
#include "clicklineedit.h"
-#include "qpainter.h"
+#include "tqpainter.h"
using namespace KPIM;
-ClickLineEdit::ClickLineEdit(QWidget *parent, const QString &msg, const char* name) :
+ClickLineEdit::ClickLineEdit(TQWidget *parent, const TQString &msg, const char* name) :
KLineEdit(parent, name)
{
mDrawClickMsg = true;
@@ -36,50 +36,50 @@ ClickLineEdit::ClickLineEdit(QWidget *parent, const QString &msg, const char* na
ClickLineEdit::~ClickLineEdit() {}
-void ClickLineEdit::setClickMessage( const QString &msg )
+void ClickLineEdit::setClickMessage( const TQString &msg )
{
mClickMessage = msg;
repaint();
}
-void ClickLineEdit::setText( const QString &txt )
+void ClickLineEdit::setText( const TQString &txt )
{
mDrawClickMsg = txt.isEmpty();
repaint();
KLineEdit::setText( txt );
}
-void ClickLineEdit::drawContents( QPainter *p )
+void ClickLineEdit::drawContents( TQPainter *p )
{
KLineEdit::drawContents( p );
if ( mDrawClickMsg == true && !hasFocus() ) {
- QPen tmp = p->pen();
- p->setPen( palette().color( QPalette::Disabled, QColorGroup::Text ) );
- QRect cr = contentsRect();
+ TQPen tmp = p->pen();
+ p->setPen( palette().color( TQPalette::Disabled, TQColorGroup::Text ) );
+ TQRect cr = contentsRect();
p->drawText( cr, AlignAuto|AlignVCenter, mClickMessage );
p->setPen( tmp );
}
}
-void ClickLineEdit::focusInEvent( QFocusEvent *ev )
+void ClickLineEdit::focusInEvent( TQFocusEvent *ev )
{
if ( mDrawClickMsg == true )
{
mDrawClickMsg = false;
repaint();
}
- QLineEdit::focusInEvent( ev );
+ TQLineEdit::focusInEvent( ev );
}
-void ClickLineEdit::focusOutEvent( QFocusEvent *ev )
+void ClickLineEdit::focusOutEvent( TQFocusEvent *ev )
{
if ( text().isEmpty() )
{
mDrawClickMsg = true;
repaint();
}
- QLineEdit::focusOutEvent( ev );
+ TQLineEdit::focusOutEvent( ev );
}
#include "clicklineedit.moc"