From 560378aaca1784ba19806a0414a32b20c744de39 Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 3 Jan 2011 04:12:51 +0000 Subject: Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1 NOTE: This will not compile with Qt4 (yet), however it does compile with Qt3 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1211081 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kdeui/kruler.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'kdeui/kruler.cpp') diff --git a/kdeui/kruler.cpp b/kdeui/kruler.cpp index c50cf9620..2e48c9cc5 100644 --- a/kdeui/kruler.cpp +++ b/kdeui/kruler.cpp @@ -432,19 +432,19 @@ KRuler::setRulerMetricStyle(KRuler::MetricStyle style) } switch (style) { case Pixel: - setEndLabel(TQString::fromLatin1("pixel")); + setEndLabel(TQString::tqfromLatin1("pixel")); break; case Inch: - setEndLabel(TQString::fromLatin1("inch")); + setEndLabel(TQString::tqfromLatin1("inch")); break; case Millimetres: - setEndLabel(TQString::fromLatin1("mm")); + setEndLabel(TQString::tqfromLatin1("mm")); break; case Centimetres: - setEndLabel(TQString::fromLatin1("cm")); + setEndLabel(TQString::tqfromLatin1("cm")); break; case Metres: - setEndLabel(TQString::fromLatin1("m")); + setEndLabel(TQString::tqfromLatin1("m")); default: /* never reached, see above switch */ /* empty command */; } @@ -550,16 +550,16 @@ KRuler::slotNewValue(int _value) return; } // get the rectangular of the old and the new ruler pointer - // and repaint only him + // and tqrepaint only him if (dir == Horizontal) { TQRect oldrec(-5+oldvalue,10, 11,6); TQRect newrec(-5+_value,10, 11,6); - repaint( oldrec.unite(newrec) ); + tqrepaint( oldrec.unite(newrec) ); } else { TQRect oldrec(10,-5+oldvalue, 6,11); TQRect newrec(10,-5+_value, 6,11); - repaint( oldrec.unite(newrec) ); + tqrepaint( oldrec.unite(newrec) ); } } @@ -569,7 +569,7 @@ KRuler::slotNewOffset(int _offset) if (offset_ != _offset) { //setOffset(_offset); offset_ = _offset; - repaint(contentsRect()); + tqrepaint(contentsRect()); } } @@ -586,7 +586,7 @@ KRuler::slotEndOffset(int offset) } if (d->endOffset_length != tmp) { d->endOffset_length = tmp; - repaint(contentsRect()); + tqrepaint(contentsRect()); } } -- cgit v1.2.3