diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:49:52 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:49:52 +0000 |
commit | cfc42a28c327b96c6a2afee92af3bac1a479eb8a (patch) | |
tree | e3219edf5f827eaa4db3feb509a17846a1a5a752 /kodo/kimagenumber.cpp | |
parent | a73fc4d7e66fe0824313aa4e9a650c4cddef6e9f (diff) | |
download | tdetoys-cfc42a28c327b96c6a2afee92af3bac1a479eb8a.tar.gz tdetoys-cfc42a28c327b96c6a2afee92af3bac1a479eb8a.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdetoys@1157650 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kodo/kimagenumber.cpp')
-rw-r--r-- | kodo/kimagenumber.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kodo/kimagenumber.cpp b/kodo/kimagenumber.cpp index 391fb97..b01c4b6 100644 --- a/kodo/kimagenumber.cpp +++ b/kodo/kimagenumber.cpp @@ -25,11 +25,11 @@ #include "kimagenumber.h" -KImageNumber::KImageNumber(const QString& font, QWidget* parent,const char* name) : - QFrame(parent,name), +KImageNumber::KImageNumber(const TQString& font, TQWidget* parent,const char* name) : + TQFrame(parent,name), m_value(0) { - fontPix = new QPixmap(font); + fontPix = new TQPixmap(font); resize(sizeHint()); } @@ -38,12 +38,12 @@ KImageNumber::~KImageNumber() delete fontPix; } -void KImageNumber::paintEvent(QPaintEvent*) +void KImageNumber::paintEvent(TQPaintEvent*) { int w = fontPix->width(); int each = w/11; - QString data; + TQString data; data.sprintf("%06.1f", m_value); for(unsigned int i=0; i < data.length(); i++) { @@ -65,15 +65,15 @@ double KImageNumber::value() const return m_value; } -QSize KImageNumber::sizeHint() const +TQSize KImageNumber::sizeHint() const { int w = fontPix->width(); int each = w/11; - QString data; + TQString data; data.sprintf("%06.1f", m_value); - return QSize(data.length()*each, fontPix->height()); + return TQSize(data.length()*each, fontPix->height()); } #include "kimagenumber.moc" |