summaryrefslogtreecommitdiffstats
path: root/kodo
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:50:42 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:50:42 -0600
commit6cdf35ab11c322f33feca5baf090ef56068b6049 (patch)
treeca493b21887096329578b1c02530fd4ca9388cfc /kodo
parent44b2e94b380d4e5ec1539874823ffc06f05515cb (diff)
downloadtdetoys-6cdf35ab11c322f33feca5baf090ef56068b6049.tar.gz
tdetoys-6cdf35ab11c322f33feca5baf090ef56068b6049.zip
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'kodo')
-rw-r--r--kodo/kimagenumber.cpp8
-rw-r--r--kodo/kimagenumber.h2
2 files changed, 5 insertions, 5 deletions
diff --git a/kodo/kimagenumber.cpp b/kodo/kimagenumber.cpp
index 911f718..b01c4b6 100644
--- a/kodo/kimagenumber.cpp
+++ b/kodo/kimagenumber.cpp
@@ -30,7 +30,7 @@ KImageNumber::KImageNumber(const TQString& font, TQWidget* parent,const char* na
m_value(0)
{
fontPix = new TQPixmap(font);
- resize(tqsizeHint());
+ resize(sizeHint());
}
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.tqat(i).latin1() - '0';
+ int wl = data.at(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;
- tqrepaint(false);
+ repaint(false);
}
double KImageNumber::value() const
@@ -65,7 +65,7 @@ double KImageNumber::value() const
return m_value;
}
-TQSize KImageNumber::tqsizeHint() const
+TQSize KImageNumber::sizeHint() const
{
int w = fontPix->width();
int each = w/11;
diff --git a/kodo/kimagenumber.h b/kodo/kimagenumber.h
index 0500d76..5719e1b 100644
--- a/kodo/kimagenumber.h
+++ b/kodo/kimagenumber.h
@@ -40,7 +40,7 @@ public:
virtual ~KImageNumber();
void paintEvent(TQPaintEvent*);
- virtual TQSize tqsizeHint() const;
+ virtual TQSize sizeHint() const;
double value() const;
public slots: