summaryrefslogtreecommitdiffstats
path: root/kig/modes/base_mode.cc
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-04 02:22:38 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-04 02:22:38 +0000
commit98a12d05a48814bec3870b9a6d5865475cfa1c95 (patch)
treea711801e47696fb0cf162abd7330e0b5b480ba39 /kig/modes/base_mode.cc
parent421a1845137c7c396b5d03bce53237fcb149d602 (diff)
downloadtdeedu-98a12d05a48814bec3870b9a6d5865475cfa1c95.tar.gz
tdeedu-98a12d05a48814bec3870b9a6d5865475cfa1c95.zip
Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1211429 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kig/modes/base_mode.cc')
-rw-r--r--kig/modes/base_mode.cc24
1 files changed, 12 insertions, 12 deletions
diff --git a/kig/modes/base_mode.cc b/kig/modes/base_mode.cc
index d968566b..86de684d 100644
--- a/kig/modes/base_mode.cc
+++ b/kig/modes/base_mode.cc
@@ -46,9 +46,9 @@ void BaseMode::leftClicked( TQMouseEvent* e, KigWidget* v )
v->updateWidget();
mplc = e->pos();
- moco = mdoc.document().whatAmIOn( v->fromScreen( mplc ), *v );
+ tqmoco = mdoc.document().whatAmIOn( v->fromScreen( mplc ), *v );
- if( moco.empty() )
+ if( tqmoco.empty() )
{
// clicked on an empty spot --> we show the rectangle for
// selecting stuff...
@@ -66,8 +66,8 @@ void BaseMode::leftClicked( TQMouseEvent* e, KigWidget* v )
void BaseMode::leftMouseMoved( TQMouseEvent* e, KigWidget* w )
{
- if( !moco.empty() && ( mplc - e->pos() ).manhattanLength() > 3 )
- dragObject( moco, mplc, *w,
+ if( !tqmoco.empty() && ( mplc - e->pos() ).manhattanLength() > 3 )
+ dragObject( tqmoco, mplc, *w,
( e->state() & (ShiftButton | ControlButton ) ) != 0
);
}
@@ -79,16 +79,16 @@ void BaseMode::leftReleased( TQMouseEvent* e, KigWidget* v )
ObjectHolder* o = 0;
bool keyCtrl = ( e->state() & ControlButton ) != 0;
bool keyShift = ( e->state() & ShiftButton ) != 0;
- if ( ! moco.empty() )
+ if ( ! tqmoco.empty() )
{
if ( keyShift )
{
- int id = ObjectChooserPopup::getObjectFromList( e->pos(), v, moco );
+ int id = ObjectChooserPopup::getObjectFromList( e->pos(), v, tqmoco );
if ( id >= 0 )
- o = moco[id];
+ o = tqmoco[id];
}
else
- o = moco.front();
+ o = tqmoco.front();
}
leftClickedObject( o, e->pos(), *v, keyCtrl );
}
@@ -100,7 +100,7 @@ void BaseMode::midClicked( TQMouseEvent* e, KigWidget* v )
v->updateWidget();
mplc = e->pos();
- moco = mdoc.document().whatAmIOn( v->fromScreen( e->pos() ), *v );
+ tqmoco = mdoc.document().whatAmIOn( v->fromScreen( e->pos() ), *v );
}
void BaseMode::midReleased( TQMouseEvent* e, KigWidget* v )
@@ -119,9 +119,9 @@ void BaseMode::rightClicked( TQMouseEvent* e, KigWidget* w )
w->setCursor( KCursor::arrowCursor() );
mplc = e->pos();
- moco = mdoc.document().whatAmIOn( w->fromScreen( mplc ), *w );
+ tqmoco = mdoc.document().whatAmIOn( w->fromScreen( mplc ), *w );
- rightClicked( moco, mplc, *w );
+ rightClicked( tqmoco, mplc, *w );
}
void BaseMode::mouseMoved( TQMouseEvent* e, KigWidget* w )
@@ -151,7 +151,7 @@ void BaseMode::enableActions()
std::vector<ObjectHolder*> BaseMode::oco()
{
- return moco;
+ return tqmoco;
}
TQPoint BaseMode::pointLocation()