summaryrefslogtreecommitdiffstats
path: root/libkdepim/clicklineedit.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /libkdepim/clicklineedit.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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"