summaryrefslogtreecommitdiffstats
path: root/kig/modes/normal.cc
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:39:55 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:39:55 +0000
commit0a6e0958c03e41c87b15557b6f407874f20c2f8d (patch)
tree2cdd58c4013b1be09cfcbb4ddae2b05712b9aeee /kig/modes/normal.cc
parent83f9dfafc157ff7823804b3ff457b43d021a5b4b (diff)
downloadtdeedu-0a6e0958c03e41c87b15557b6f407874f20c2f8d.tar.gz
tdeedu-0a6e0958c03e41c87b15557b6f407874f20c2f8d.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1157642 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kig/modes/normal.cc')
-rw-r--r--kig/modes/normal.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/kig/modes/normal.cc b/kig/modes/normal.cc
index ecf5f5c1..1fa45d00 100644
--- a/kig/modes/normal.cc
+++ b/kig/modes/normal.cc
@@ -128,7 +128,7 @@ NormalMode::~NormalMode()
{
}
-void NormalMode::dragRect( const QPoint& p, KigWidget& w )
+void NormalMode::dragRect( const TQPoint& p, KigWidget& w )
{
DragRectMode d( p, mdoc, w );
mdoc.runMode( &d );
@@ -153,7 +153,7 @@ void NormalMode::dragRect( const QPoint& p, KigWidget& w )
w.updateWidget();
}
-void NormalMode::dragObject( const std::vector<ObjectHolder*>& oco, const QPoint& pco,
+void NormalMode::dragObject( const std::vector<ObjectHolder*>& oco, const TQPoint& pco,
KigWidget& w, bool ctrlOrShiftDown )
{
// first determine what to move...
@@ -171,7 +171,7 @@ void NormalMode::dragObject( const std::vector<ObjectHolder*>& oco, const QPoint
mdoc.runMode( &m );
}
-void NormalMode::leftClickedObject( ObjectHolder* o, const QPoint&,
+void NormalMode::leftClickedObject( ObjectHolder* o, const TQPoint&,
KigWidget& w, bool ctrlOrShiftDown )
{
KigPainter pter( w.screenInfo(), &w.stillPix, mdoc.document() );
@@ -202,7 +202,7 @@ void NormalMode::leftClickedObject( ObjectHolder* o, const QPoint&,
w.updateWidget();
}
-void NormalMode::midClicked( const QPoint& p, KigWidget& w )
+void NormalMode::midClicked( const TQPoint& p, KigWidget& w )
{
ObjectHolder* pto = ObjectFactory::instance()->sensiblePoint( w.fromScreen( p ), mdoc.document(), w );
pto->calc( mdoc.document() );
@@ -215,11 +215,11 @@ void NormalMode::midClicked( const QPoint& p, KigWidget& w )
}
void NormalMode::rightClicked( const std::vector<ObjectHolder*>& os,
- const QPoint& plc,
+ const TQPoint& plc,
KigWidget& w )
{
// saving the current cursor position
- QPoint pt = QCursor::pos();
+ TQPoint pt = TQCursor::pos();
if( !os.empty() )
{
ObjectHolder* o = 0;
@@ -246,7 +246,7 @@ void NormalMode::rightClicked( const std::vector<ObjectHolder*>& os,
}
void NormalMode::mouseMoved( const std::vector<ObjectHolder*>& os,
- const QPoint& plc,
+ const TQPoint& plc,
KigWidget& w,
bool )
{
@@ -265,14 +265,14 @@ void NormalMode::mouseMoved( const std::vector<ObjectHolder*>& os,
w.setCursor( KCursor::handCursor() );
int id = ObjectChooserPopup::getObjectFromList( plc, &w, os, false );
- QString stat = id == 0 ? os.front()->selectStatement() : i18n( "Which object?" );
+ TQString stat = id == 0 ? os.front()->selectStatement() : i18n( "Which object?" );
// statusbar text
mdoc.emitStatusBarText( stat );
KigPainter p( w.screenInfo(), &w.curPix, mdoc.document() );
// set the text next to the arrow cursor
- QPoint point = plc;
+ TQPoint point = plc;
point.setX(point.x()+15);
p.drawTextStd( point, stat );