diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-30 20:43:20 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-30 21:03:28 +0900 |
commit | d7ae9fb514226c126e04cfe4f34800beb9f4ea19 (patch) | |
tree | 4d12f786f3541b9ff0225f0ceb2bec0b9268a163 /lib | |
parent | b727f4b3b1957bec28a350575237b93f8f278cdb (diff) | |
download | koffice-d7ae9fb514226c126e04cfe4f34800beb9f4ea19.tar.gz koffice-d7ae9fb514226c126e04cfe4f34800beb9f4ea19.zip |
Replace 'Event' #define strings
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/kofficecore/KoContainerHandler.cpp | 4 | ||||
-rw-r--r-- | lib/kofficeui/KoTooluButton.cpp | 4 | ||||
-rw-r--r-- | lib/koproperty/editor.cpp | 2 | ||||
-rw-r--r-- | lib/koproperty/editoritem.cpp | 4 | ||||
-rw-r--r-- | lib/koproperty/editors/booledit.cpp | 2 | ||||
-rw-r--r-- | lib/koproperty/editors/fontedit.cpp | 2 | ||||
-rw-r--r-- | lib/koproperty/editors/pixmapedit.cpp | 4 | ||||
-rw-r--r-- | lib/koproperty/editors/spinbox.cpp | 4 | ||||
-rw-r--r-- | lib/koproperty/widget.cpp | 2 |
9 files changed, 14 insertions, 14 deletions
diff --git a/lib/kofficecore/KoContainerHandler.cpp b/lib/kofficecore/KoContainerHandler.cpp index ff81b632..74c49a7e 100644 --- a/lib/kofficecore/KoContainerHandler.cpp +++ b/lib/kofficecore/KoContainerHandler.cpp @@ -302,7 +302,7 @@ bool KoContainerHandler::eventFilter( TQObject*, TQEvent* ev ) { KoChild::Gadget gadget; TQPoint pos; - TQMouseEvent *e=TQT_TQMOUSEEVENT(ev); + TQMouseEvent *e=static_cast<TQMouseEvent*>(ev); KoChild *ch=child(gadget, pos, e); if ( e->button() == TQt::RightButton && gadget != KoChild::NoGadget ) @@ -327,7 +327,7 @@ bool KoContainerHandler::eventFilter( TQObject*, TQEvent* ev ) TQWidget *targetWidget = TQT_TQWIDGET( target() ); KoChild::Gadget gadget; TQPoint pos; - TQMouseEvent *e=TQT_TQMOUSEEVENT(ev); + TQMouseEvent *e=static_cast<TQMouseEvent*>(ev); child(gadget, pos, e); bool retval = true; diff --git a/lib/kofficeui/KoTooluButton.cpp b/lib/kofficeui/KoTooluButton.cpp index 1c5f5f1f..bbe4145a 100644 --- a/lib/kofficeui/KoTooluButton.cpp +++ b/lib/kofficeui/KoTooluButton.cpp @@ -811,7 +811,7 @@ bool KoToolButton::eventFilter( TQObject* o, TQEvent* e ) { if ( o == m_popup ) { if ( e->type() == TQEvent::MouseButtonPress ) - if ( hitArrow( mapFromGlobal( TQT_TQMOUSEEVENT( e )->globalPos() ) ) ) { + if ( hitArrow( mapFromGlobal( static_cast<TQMouseEvent*>( e )->globalPos() ) ) ) { kdDebug() << "KoToolButton::eventFilter-------------->" << endl; m_popup->close(); m_arrowPressed = false; @@ -821,7 +821,7 @@ bool KoToolButton::eventFilter( TQObject* o, TQEvent* e ) } if ( e->type() == TQEvent::MouseButtonPress ) { - m_arrowPressed = hitArrow( TQT_TQMOUSEEVENT( e )->pos() ); + m_arrowPressed = hitArrow( static_cast<TQMouseEvent*>( e )->pos() ); if ( m_arrowPressed ) m_popup->popup( mapToGlobal( TQPoint( 0, height() ) ) ); } diff --git a/lib/koproperty/editor.cpp b/lib/koproperty/editor.cpp index 2a72fdbe..ddd23539 100644 --- a/lib/koproperty/editor.cpp +++ b/lib/koproperty/editor.cpp @@ -916,7 +916,7 @@ bool Editor::eventFilter( TQObject * watched, TQEvent * e ) { if ((watched==this || watched==viewport()) && e->type()==TQEvent::KeyPress) { - if (handleKeyPress(TQT_TQKEYEVENT(e))) + if (handleKeyPress(static_cast<TQKeyEvent*>(e))) return true; } return TDEListView::eventFilter(watched, e); diff --git a/lib/koproperty/editoritem.cpp b/lib/koproperty/editoritem.cpp index 2d2b99de..1d186c4c 100644 --- a/lib/koproperty/editoritem.cpp +++ b/lib/koproperty/editoritem.cpp @@ -157,7 +157,7 @@ class GroupWidgetBase : public TQWidget virtual bool event( TQEvent * e ) { if (e->type()==TQEvent::MouseButtonPress || e->type()==TQEvent::MouseButtonRelease) { - TQMouseEvent* me = TQT_TQMOUSEEVENT(e); + TQMouseEvent* me = static_cast<TQMouseEvent*>(e); if (me->button() == TQt::LeftButton) { m_mouseDown = e->type()==TQEvent::MouseButtonPress; update(); @@ -238,7 +238,7 @@ void GroupContainer::setContents( TQWidget* contents ) bool GroupContainer::event( TQEvent * e ) { if (e->type()==TQEvent::MouseButtonPress) { - TQMouseEvent* me = TQT_TQMOUSEEVENT(e); + TQMouseEvent* me = static_cast<TQMouseEvent*>(e); if (me->button() == TQt::LeftButton && d->contents && d->groupWidget->rect().contains(me->pos())) { d->groupWidget->setOpen(!d->groupWidget->isOpen()); if (d->groupWidget->isOpen()) diff --git a/lib/koproperty/editors/booledit.cpp b/lib/koproperty/editors/booledit.cpp index 0e14bf27..fb71a445 100644 --- a/lib/koproperty/editors/booledit.cpp +++ b/lib/koproperty/editors/booledit.cpp @@ -131,7 +131,7 @@ bool BoolEdit::eventFilter(TQObject* watched, TQEvent* e) { if(e->type() == TQEvent::KeyPress) { - TQKeyEvent* ev = TQT_TQKEYEVENT(e); + TQKeyEvent* ev = static_cast<TQKeyEvent*>(e); const int k = ev->key(); if(k == TQt::Key_Space || k == TQt::Key_Enter || k == TQt::Key_Return) { if (m_toggle) diff --git a/lib/koproperty/editors/fontedit.cpp b/lib/koproperty/editors/fontedit.cpp index 0ea29b6e..e53e785f 100644 --- a/lib/koproperty/editors/fontedit.cpp +++ b/lib/koproperty/editors/fontedit.cpp @@ -138,7 +138,7 @@ bool FontEdit::eventFilter(TQObject* watched, TQEvent* e) { if(e->type() == TQEvent::KeyPress) { - TQKeyEvent* ev = TQT_TQKEYEVENT(e); + TQKeyEvent* ev = static_cast<TQKeyEvent*>(e); if(ev->key() == Key_Space) { m_edit->button()->animateClick(); return true; diff --git a/lib/koproperty/editors/pixmapedit.cpp b/lib/koproperty/editors/pixmapedit.cpp index b6454a96..070de038 100644 --- a/lib/koproperty/editors/pixmapedit.cpp +++ b/lib/koproperty/editors/pixmapedit.cpp @@ -206,7 +206,7 @@ bool PixmapEdit::eventFilter(TQObject *o, TQEvent *ev) { if(o == m_edit) { - if(ev->type() == TQEvent::MouseButtonPress && TQT_TQMOUSEEVENT(ev)->button()==TQt::LeftButton) { + if(ev->type() == TQEvent::MouseButtonPress && static_cast<TQMouseEvent*>(ev)->button()==TQt::LeftButton) { if(m_previewPixmap.height() <= m_edit->height() && m_previewPixmap.width() <= m_edit->width()) return false; @@ -227,7 +227,7 @@ PixmapEdit::eventFilter(TQObject *o, TQEvent *ev) m_popup->hide(); } else if(ev->type() == TQEvent::KeyPress) { - TQKeyEvent* e = TQT_TQKEYEVENT(ev); + TQKeyEvent* e = static_cast<TQKeyEvent*>(ev); if((e->key() == Key_Enter) || (e->key()== Key_Space) || (e->key() == Key_Return)) { m_button->animateClick(); return true; diff --git a/lib/koproperty/editors/spinbox.cpp b/lib/koproperty/editors/spinbox.cpp index e76ca930..81f0c1cb 100644 --- a/lib/koproperty/editors/spinbox.cpp +++ b/lib/koproperty/editors/spinbox.cpp @@ -63,7 +63,7 @@ IntSpinBox::eventFilter(TQObject *o, TQEvent *e) { if(e->type() == TQEvent::KeyPress) { - TQKeyEvent* ev = TQT_TQKEYEVENT(e); + TQKeyEvent* ev = static_cast<TQKeyEvent*>(e); if((ev->key()==Key_Up || ev->key()==Key_Down) && ev->state() !=ControlButton) { parentWidget()->eventFilter(o, e); @@ -196,7 +196,7 @@ DoubleSpinBox::eventFilter(TQObject *o, TQEvent *e) { if(e->type() == TQEvent::KeyPress) { - TQKeyEvent* ev = TQT_TQKEYEVENT(e); + TQKeyEvent* ev = static_cast<TQKeyEvent*>(e); if((ev->key()==Key_Up || ev->key()==Key_Down) && ev->state()!=ControlButton) { parentWidget()->eventFilter(o, e); diff --git a/lib/koproperty/widget.cpp b/lib/koproperty/widget.cpp index 1e1593db..99724979 100644 --- a/lib/koproperty/widget.cpp +++ b/lib/koproperty/widget.cpp @@ -109,7 +109,7 @@ Widget::eventFilter(TQObject*, TQEvent* e) { if(e->type() == TQEvent::KeyPress) { - TQKeyEvent* ev = TQT_TQKEYEVENT(e); + TQKeyEvent* ev = static_cast<TQKeyEvent*>(e); if(ev->key() == Key_Escape) { emit rejectInput(this); |