diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:52:55 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:52:55 +0000 |
commit | 5f5ee2367157176ed223b86343eb0a9e4022e020 (patch) | |
tree | 6a9c87f14ee38e90eff3c77c784f14e4f38fd5a1 /superkaramba/src/sklineedit.cpp | |
parent | 4facf42feec57b22dcf46badc115ad6c5b5cc512 (diff) | |
download | tdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.tar.gz tdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1157653 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'superkaramba/src/sklineedit.cpp')
-rw-r--r-- | superkaramba/src/sklineedit.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
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() |