summaryrefslogtreecommitdiffstats
path: root/kig/scripting
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-12-03 00:48:10 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-12-03 22:54:07 +0900
commitf08f58fdc18573fbdf637e872a0a4646be58628c (patch)
tree32f6f2b36cfb27b11ed74eafef1933fc3fddf3bd /kig/scripting
parent82c5609d05e453863a10f1d77a925dc1c7abdd31 (diff)
downloadtdeedu-f08f58fdc18573fbdf637e872a0a4646be58628c.tar.gz
tdeedu-f08f58fdc18573fbdf637e872a0a4646be58628c.zip
Replaced various '#define' with actual strings - part 5
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kig/scripting')
-rw-r--r--kig/scripting/script_mode.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/kig/scripting/script_mode.cpp b/kig/scripting/script_mode.cpp
index 1fd88405..228ad739 100644
--- a/kig/scripting/script_mode.cpp
+++ b/kig/scripting/script_mode.cpp
@@ -45,7 +45,7 @@ void ScriptModeBase::dragRect( const TQPoint& p, KigWidget& w )
mdoc.runMode( &dm );
std::vector<ObjectHolder*> ret = dm.ret();
- KigPainter pter( w.screenInfo(), TQT_TQPAINTDEVICE(&w.stillPix), mdoc.document() );
+ KigPainter pter( w.screenInfo(), &w.stillPix, mdoc.document() );
if ( dm.needClear() )
{
std::vector<ObjectHolder*> tmp( margs.begin(), margs.begin() );
@@ -67,7 +67,7 @@ void ScriptModeBase::leftClickedObject( ObjectHolder* o, const TQPoint&,
if ( mwawd != SelectingArgs ) return;
- KigPainter pter( w.screenInfo(), TQT_TQPAINTDEVICE(&w.stillPix), mdoc.document() );
+ KigPainter pter( w.screenInfo(), &w.stillPix, mdoc.document() );
if ( (dup_o = std::find( margs.begin(), margs.end(), o )) != margs.end() )
{
@@ -105,7 +105,7 @@ void ScriptModeBase::mouseMoved( const std::vector<ObjectHolder*>& os,
// statusbar text
mdoc.emitStatusBarText( selectstat );
- KigPainter p( w.screenInfo(), TQT_TQPAINTDEVICE(&w.curPix), mdoc.document() );
+ KigPainter p( w.screenInfo(), &w.curPix, mdoc.document() );
// set the text next to the arrow cursor
TQPoint point = pt;
@@ -246,7 +246,7 @@ void ScriptModeBase::setScriptType( ScriptType::Type type )
void ScriptModeBase::addArgs( const std::vector<ObjectHolder*>& obj, KigWidget& w )
{
- KigPainter pter( w.screenInfo(), TQT_TQPAINTDEVICE(&w.stillPix), mdoc.document() );
+ KigPainter pter( w.screenInfo(), &w.stillPix, mdoc.document() );
std::copy( obj.begin(), obj.end(), std::inserter( margs, margs.begin() ) );
pter.drawObjects( obj, true );