From 5f5ee2367157176ed223b86343eb0a9e4022e020 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:52:55 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1157653 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- superkaramba/src/sklineedit.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'superkaramba/src/sklineedit.cpp') diff --git a/superkaramba/src/sklineedit.cpp b/superkaramba/src/sklineedit.cpp index a384e44..7047dde 100644 --- a/superkaramba/src/sklineedit.cpp +++ b/superkaramba/src/sklineedit.cpp @@ -22,7 +22,7 @@ #include "karamba.h" #include "kdebug.h" -SKLineEdit::SKLineEdit(QWidget *w, Input *i) : QLineEdit(w), m_input(i) +SKLineEdit::SKLineEdit(TQWidget *w, Input *i) : TQLineEdit(w), m_input(i) { frameColor = Qt::gray; setBackgroundColor(Qt::white); @@ -32,37 +32,37 @@ SKLineEdit::~SKLineEdit() { } -void SKLineEdit::drawFrame(QPainter *p) +void SKLineEdit::drawFrame(TQPainter *p) { p->setPen(frameColor); p->drawRect(frameRect()); } -void SKLineEdit::drawContents(QPainter *p) +void SKLineEdit::drawContents(TQPainter *p) { - QLineEdit::drawContents(p); + TQLineEdit::drawContents(p); } -void SKLineEdit::setFrameColor(QColor c) +void SKLineEdit::setFrameColor(TQColor c) { frameColor = c; repaint(); } -void SKLineEdit::setBackgroundColor(QColor c) +void SKLineEdit::setBackgroundColor(TQColor c) { - QLineEdit::setBackgroundColor(c); + TQLineEdit::setBackgroundColor(c); repaint(); } -QColor SKLineEdit::getFrameColor() const +TQColor SKLineEdit::getFrameColor() const { return frameColor; } -void SKLineEdit::keyPressEvent(QKeyEvent* e) +void SKLineEdit::keyPressEvent(TQKeyEvent* e) { - QLineEdit::keyPressEvent(e); + TQLineEdit::keyPressEvent(e); if(!e->text().isEmpty()) { @@ -71,9 +71,9 @@ void SKLineEdit::keyPressEvent(QKeyEvent* e) } } -void SKLineEdit::keyReleaseEvent(QKeyEvent* e) +void SKLineEdit::keyReleaseEvent(TQKeyEvent* e) { - QLineEdit::keyReleaseEvent(e); + TQLineEdit::keyReleaseEvent(e); } Input* SKLineEdit::getInput() -- cgit v1.2.1