summaryrefslogtreecommitdiffstats
path: root/kpercentage
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-12-20 22:30:18 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-12-20 22:34:10 +0900
commitcf40f006901966bdf86163dbe5d1c7cb55f099ec (patch)
treeada95d7786d3412ed5b002061f6d1529c210c8f1 /kpercentage
parent0c53c58d50e69e4fb032e073e0bd40c9acde69d3 (diff)
downloadtdeedu-cf40f006901966bdf86163dbe5d1c7cb55f099ec.tar.gz
tdeedu-cf40f006901966bdf86163dbe5d1c7cb55f099ec.zip
Replace various '#define' strings - part 6
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kpercentage')
-rw-r--r--kpercentage/kpercentage/kanswer.cpp4
-rw-r--r--kpercentage/kpercentage/ksplashscreen.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/kpercentage/kpercentage/kanswer.cpp b/kpercentage/kpercentage/kanswer.cpp
index 4177cbe9..d809b79e 100644
--- a/kpercentage/kpercentage/kanswer.cpp
+++ b/kpercentage/kpercentage/kanswer.cpp
@@ -217,7 +217,7 @@ void KAnswer::setupSprite()
advPer = 80;
- canvas = new TQCanvas( TQT_TQOBJECT(this) );
+ canvas = new TQCanvas( this );
canvas->resize( size().width(), size().height() );
pixs = new TQCanvasPixmapArray( locate( "data", "kpercentage/pics/" )+"smily%1.png", 7 );
@@ -241,7 +241,7 @@ void KAnswer::timerEvent( TQTimerEvent *event )
int KAnswer::exec()
{
- TQT_TQOBJECT(this)->killTimers();
+ this->killTimers();
startTimer( 3000 ); // 5 seconds
return KDialog::exec();
}
diff --git a/kpercentage/kpercentage/ksplashscreen.cpp b/kpercentage/kpercentage/ksplashscreen.cpp
index 07c5b0d7..54848104 100644
--- a/kpercentage/kpercentage/ksplashscreen.cpp
+++ b/kpercentage/kpercentage/ksplashscreen.cpp
@@ -39,7 +39,7 @@ KSplashScreen::KSplashScreen( KPercentage *percentage, const char *name ) :
/* load the background pixmap */
TQPixmap bgp( locate( "data", "kpercentage/pics/splash.png" ) );
/* wait some time and start the main window */
- TQCanvas *canvas = new TQCanvas( TQT_TQOBJECT(this) );
+ TQCanvas *canvas = new TQCanvas( this );
canvas->resize( 400, 300 );
/* set the background pixmap */
canvas->setBackgroundPixmap( bgp );