diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-23 01:42:07 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-23 01:42:07 +0000 |
commit | a2277b6bc715464e83882b90c2a058139b8a6b54 (patch) | |
tree | ab09b14014f59b4d8e2ddd12226aa0b22e4dfc5d /superkaramba/src/sklineedit.cpp | |
parent | d3f79e04b34bd1f70a458b81b28fc8799498c8dc (diff) | |
download | tdeutils-a2277b6bc715464e83882b90c2a058139b8a6b54.tar.gz tdeutils-a2277b6bc715464e83882b90c2a058139b8a6b54.zip |
TQt4 port kdeutils
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1238125 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'superkaramba/src/sklineedit.cpp')
-rw-r--r-- | superkaramba/src/sklineedit.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/superkaramba/src/sklineedit.cpp b/superkaramba/src/sklineedit.cpp index 7047dde..f923fef 100644 --- a/superkaramba/src/sklineedit.cpp +++ b/superkaramba/src/sklineedit.cpp @@ -24,8 +24,8 @@ SKLineEdit::SKLineEdit(TQWidget *w, Input *i) : TQLineEdit(w), m_input(i) { - frameColor = Qt::gray; - setBackgroundColor(Qt::white); + frameColor = TQt::gray; + setBackgroundColor(TQt::white); } SKLineEdit::~SKLineEdit() @@ -46,13 +46,13 @@ void SKLineEdit::drawContents(TQPainter *p) void SKLineEdit::setFrameColor(TQColor c) { frameColor = c; - repaint(); + tqrepaint(); } void SKLineEdit::setBackgroundColor(TQColor c) { TQLineEdit::setBackgroundColor(c); - repaint(); + tqrepaint(); } TQColor SKLineEdit::getFrameColor() const @@ -66,7 +66,7 @@ void SKLineEdit::keyPressEvent(TQKeyEvent* e) if(!e->text().isEmpty()) { - karamba* k = static_cast<karamba*>(parent()); + karamba* k = static_cast<karamba*>(TQT_TQWIDGET(tqparent())); k->keyPressed(e->text(), m_input); } } |