diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-22 21:31:21 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-22 21:31:21 +0000 |
commit | a1bd60b34891ccc77056c190d7871bc4b14fe654 (patch) | |
tree | 713f2f72c8f08a18df12f5bbeef7f9b61b19d4f1 /kodo/kimagenumber.cpp | |
parent | 8d92c3c2a4131996726cc7b625d3cd3caec296de (diff) | |
download | tdetoys-a1bd60b34891ccc77056c190d7871bc4b14fe654.tar.gz tdetoys-a1bd60b34891ccc77056c190d7871bc4b14fe654.zip |
TQt4 port kdetoys
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdetoys@1238103 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kodo/kimagenumber.cpp')
-rw-r--r-- | kodo/kimagenumber.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kodo/kimagenumber.cpp b/kodo/kimagenumber.cpp index b01c4b6..1b6d9be 100644 --- a/kodo/kimagenumber.cpp +++ b/kodo/kimagenumber.cpp @@ -25,12 +25,12 @@ #include "kimagenumber.h" -KImageNumber::KImageNumber(const TQString& font, TQWidget* parent,const char* name) : - TQFrame(parent,name), +KImageNumber::KImageNumber(const TQString& font, TQWidget* tqparent,const char* name) : + TQFrame(tqparent,name), m_value(0) { fontPix = new TQPixmap(font); - resize(sizeHint()); + resize(tqsizeHint()); } KImageNumber::~KImageNumber() @@ -47,7 +47,7 @@ void KImageNumber::paintEvent(TQPaintEvent*) data.sprintf("%06.1f", m_value); for(unsigned int i=0; i < data.length(); i++) { - int wl = data.at(i).latin1() - '0'; + int wl = data.tqat(i).latin1() - '0'; if(data.at(i) == '.') wl = 10; bitBlt(this, i*each, 0, fontPix, wl*each, 0, each, fontPix->height()); @@ -57,7 +57,7 @@ void KImageNumber::paintEvent(TQPaintEvent*) void KImageNumber::setValue(double v) { m_value = v; - repaint(false); + tqrepaint(false); } double KImageNumber::value() const @@ -65,7 +65,7 @@ double KImageNumber::value() const return m_value; } -TQSize KImageNumber::sizeHint() const +TQSize KImageNumber::tqsizeHint() const { int w = fontPix->width(); int each = w/11; |