summaryrefslogtreecommitdiffstats
path: root/kmymoney2/widgets/kmymoneylineedit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmymoney2/widgets/kmymoneylineedit.cpp')
-rw-r--r--kmymoney2/widgets/kmymoneylineedit.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/kmymoney2/widgets/kmymoneylineedit.cpp b/kmymoney2/widgets/kmymoneylineedit.cpp
index 2250c30..254d400 100644
--- a/kmymoney2/widgets/kmymoneylineedit.cpp
+++ b/kmymoney2/widgets/kmymoneylineedit.cpp
@@ -22,7 +22,7 @@
#include <tqrect.h>
#include <tqpainter.h>
-#include <tqpalette.h>
+#include <palette.h>
// ----------------------------------------------------------------------------
// KDE Includes
@@ -35,11 +35,11 @@
#include "kmymoneylineedit.h"
-kMyMoneyLineEdit::kMyMoneyLineEdit(TQWidget *w, const char* name, bool forceMonetaryDecimalSymbol, int tqalignment) :
+kMyMoneyLineEdit::kMyMoneyLineEdit(TQWidget *w, const char* name, bool forceMonetaryDecimalSymbol, int alignment) :
KLineEdit(w, name),
m_forceMonetaryDecimalSymbol(forceMonetaryDecimalSymbol)
{
- tqsetAlignment(tqalignment);
+ setAlignment(alignment);
}
kMyMoneyLineEdit::~kMyMoneyLineEdit()
@@ -69,7 +69,7 @@ void kMyMoneyLineEdit::focusOutEvent(TQFocusEvent *ev)
// force update of hint
if(text().isEmpty())
- tqrepaint();
+ repaint();
}
void kMyMoneyLineEdit::keyReleaseEvent(TQKeyEvent* k)
@@ -141,7 +141,7 @@ void kMyMoneyLineEdit::drawContents( TQPainter *p)
f.setItalic(true);
f.setWeight(TQFont::Light);
p->setFont(f);
- p->setPen(tqpalette().disabled().text());
+ p->setPen(palette().disabled().text());
p->drawText(topLeft, m_hint);