summaryrefslogtreecommitdiffstats
path: root/src/gvcore/clicklineedit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gvcore/clicklineedit.cpp')
-rw-r--r--src/gvcore/clicklineedit.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/gvcore/clicklineedit.cpp b/src/gvcore/clicklineedit.cpp
index a1728a0..f35cbe3 100644
--- a/src/gvcore/clicklineedit.cpp
+++ b/src/gvcore/clicklineedit.cpp
@@ -22,12 +22,12 @@
#include "clicklineedit.h"
-#include "qpainter.h"
+#include "tqpainter.h"
namespace Gwenview {
-ClickLineEdit::ClickLineEdit(QWidget *parent, const char* name ) :
- KLineEdit( parent, name )
+ClickLineEdit::ClickLineEdit(TQWidget *tqparent, const char* name ) :
+ KLineEdit( tqparent, name )
{
mDrawClickMsg = true;
}
@@ -37,17 +37,17 @@ ClickLineEdit::ClickLineEdit(QWidget *parent, const char* name ) :
// PUBLIC
/////////////////////////////////////////////////////////////////////////////////////
-void ClickLineEdit::setClickMessage( const QString &msg )
+void ClickLineEdit::setClickMessage( const TQString &msg )
{
mClickMessage = msg;
- repaint();
+ tqrepaint();
}
-void ClickLineEdit::setText( const QString &txt )
+void ClickLineEdit::setText( const TQString &txt )
{
mDrawClickMsg = txt.isEmpty();
- repaint();
+ tqrepaint();
KLineEdit::setText( txt );
}
@@ -57,14 +57,14 @@ void ClickLineEdit::setText( const QString &txt )
/////////////////////////////////////////////////////////////////////////////////////
//#include <kiconloader.h>
-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->drawPixmap( 3, 3, SmallIcon("filter") );
@@ -75,30 +75,30 @@ void ClickLineEdit::drawContents( QPainter *p )
}
}
-void ClickLineEdit::dropEvent( QDropEvent *ev )
+void ClickLineEdit::dropEvent( TQDropEvent *ev )
{
mDrawClickMsg = false;
KLineEdit::dropEvent( ev );
}
-void ClickLineEdit::focusInEvent( QFocusEvent *ev )
+void ClickLineEdit::focusInEvent( TQFocusEvent *ev )
{
if ( mDrawClickMsg == true ) {
mDrawClickMsg = false;
- repaint();
+ tqrepaint();
}
- QLineEdit::focusInEvent( ev );
+ TQLineEdit::focusInEvent( ev );
}
-void ClickLineEdit::focusOutEvent( QFocusEvent *ev )
+void ClickLineEdit::focusOutEvent( TQFocusEvent *ev )
{
if ( text().isEmpty() ) {
mDrawClickMsg = true;
- repaint();
+ tqrepaint();
}
- QLineEdit::focusOutEvent( ev );
+ TQLineEdit::focusOutEvent( ev );
}
} // namespace