Replace 'Event' #define strings

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 26d900d083)
pull/34/head
Michele Calgaro 12 months ago
parent 20b4653fd0
commit 5a71f93b01
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -47,7 +47,7 @@ bool CursorTracker::eventFilter(TQObject* object, TQEvent* _event) {
switch (_event->type()) {
case TQEvent::MouseMove: {
TQMouseEvent* event=TQT_TQMOUSEEVENT(_event);
TQMouseEvent* event=static_cast<TQMouseEvent*>(_event);
if (widget->rect().contains(event->pos()) || (event->stateAfter() & TQt::LeftButton)) {
show();
move(event->globalPos().x() + 15, event->globalPos().y() + 15);
@ -58,7 +58,7 @@ bool CursorTracker::eventFilter(TQObject* object, TQEvent* _event) {
}
case TQEvent::MouseButtonRelease: {
TQMouseEvent* event=TQT_TQMOUSEEVENT(_event);
TQMouseEvent* event=static_cast<TQMouseEvent*>(_event);
if ( !widget->rect().contains(event->pos()) ) {
hide();
}

@ -487,7 +487,7 @@ void FileViewController::setFocus() {
bool FileViewController::eventFilter(TQObject*, TQEvent* event) {
if (event->type()!=TQEvent::MouseButtonDblClick) return false;
TQMouseEvent* mouseEvent=TQT_TQMOUSEEVENT(event);
TQMouseEvent* mouseEvent=static_cast<TQMouseEvent*>(event);
if (mouseEvent->state() & TQt::ControlButton || mouseEvent->state() & TQt::ShiftButton) {
return true;
}

@ -280,7 +280,7 @@ public:
case TQEvent::KeyRelease:
case TQEvent::AccelOverride:
return static_cast< ImageView* >( TQT_TQWIDGET(parent()))
->viewportKeyEvent(TQT_TQKEYEVENT(event));
->viewportKeyEvent(static_cast<TQKeyEvent*>(event));
default:
break;
}
@ -1015,7 +1015,7 @@ bool ImageView::eventFilter(TQObject* obj, TQEvent* event) {
case TQEvent::KeyPress:
case TQEvent::KeyRelease:
case TQEvent::AccelOverride:
return viewportKeyEvent(TQT_TQKEYEVENT(event));
return viewportKeyEvent(static_cast<TQKeyEvent*>(event));
case TQEvent::MouseButtonDblClick:
if (d->mToolID==ZOOM) return false;

Loading…
Cancel
Save