diff options
Diffstat (limited to 'kexi/widget/relations/kexirelationviewtable.cpp')
-rw-r--r-- | kexi/widget/relations/kexirelationviewtable.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kexi/widget/relations/kexirelationviewtable.cpp b/kexi/widget/relations/kexirelationviewtable.cpp index 347805be..7053c778 100644 --- a/kexi/widget/relations/kexirelationviewtable.cpp +++ b/kexi/widget/relations/kexirelationviewtable.cpp @@ -208,10 +208,10 @@ bool KexiRelationViewTableContainerHeader::eventFilter(TQObject *, TQEvent *ev) { if (ev->type()==TQEvent::MouseMove) { - if (m_dragging && TQT_TQMOUSEEVENT(ev)->state()==TQt::LeftButton) { + if (m_dragging && static_cast<TQMouseEvent*>(ev)->state()==TQt::LeftButton) { int diffX,diffY; - diffX=TQT_TQMOUSEEVENT(ev)->globalPos().x()-m_grabX; - diffY=TQT_TQMOUSEEVENT(ev)->globalPos().y()-m_grabY; + diffX=static_cast<TQMouseEvent*>(ev)->globalPos().x()-m_grabX; + diffY=static_cast<TQMouseEvent*>(ev)->globalPos().y()-m_grabY; if ((abs(diffX)>2) || (abs(diffY)>2)) { TQPoint newPos=parentWidget()->pos()+TQPoint(diffX,diffY); @@ -245,8 +245,8 @@ bool KexiRelationViewTableContainerHeader::eventFilter(TQObject *, TQEvent *ev) //move and update helpers parentWidget()->move(newPos); - m_grabX=TQT_TQMOUSEEVENT(ev)->globalPos().x(); - m_grabY=TQT_TQMOUSEEVENT(ev)->globalPos().y(); + m_grabX=static_cast<TQMouseEvent*>(ev)->globalPos().x(); + m_grabY=static_cast<TQMouseEvent*>(ev)->globalPos().y(); // kdDebug()<<"HEADER:emitting moved"<<endl; emit moved(); } |