diff options
author | Michele Calgaro <[email protected]> | 2023-11-04 22:03:54 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-11-05 11:34:05 +0900 |
commit | 420fcb6c991b2c21d5919db2af202e7f444f9326 (patch) | |
tree | c6a2c38cdd7ab8a193f25a0a51ebb5aa7fe8c386 /src/eventinfo.cpp | |
parent | 4f72176a0ff3c10fa366a67a45a11cf538d1c4eb (diff) | |
download | ktechlab-420fcb6c991b2c21d5919db2af202e7f444f9326.tar.gz ktechlab-420fcb6c991b2c21d5919db2af202e7f444f9326.zip |
Replace Qt with TQt
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit c5554a5f82ebc79fbda3940ee904e71490fb13d6)
Diffstat (limited to 'src/eventinfo.cpp')
-rw-r--r-- | src/eventinfo.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/eventinfo.cpp b/src/eventinfo.cpp index 3a63c30..39bf877 100644 --- a/src/eventinfo.cpp +++ b/src/eventinfo.cpp @@ -30,7 +30,7 @@ EventInfo::EventInfo( ItemView *itemView, TQMouseEvent *e ) { pos = e->pos()/itemView->zoomLevel(); globalPos = e->globalPos(); - isRightClick = e->button() == Qt::RightButton; + isRightClick = e->button() == TQt::RightButton; ctrlPressed = e->state() & TQt::ControlButton; shiftPressed = e->state() & TQt::ShiftButton; altPressed = e->state() & TQt::AltButton; @@ -38,7 +38,7 @@ EventInfo::EventInfo( ItemView *itemView, TQMouseEvent *e ) qcanvasItemClickedOn = id->itemAtTop(pos); itemRtti = qcanvasItemClickedOn ? qcanvasItemClickedOn->rtti() : ItemDocument::RTTI::None; scrollDelta = 0; - scrollOrientation = Qt::Vertical; + scrollOrientation = TQt::Vertical; } @@ -69,7 +69,7 @@ void EventInfo::reset() qcanvasItemClickedOn = 0l; itemRtti = ItemDocument::RTTI::None; scrollDelta = 0; - scrollOrientation = Qt::Vertical; + scrollOrientation = TQt::Vertical; } @@ -77,8 +77,8 @@ TQMouseEvent *EventInfo::mousePressEvent( int dx, int dy ) const { return new TQMouseEvent( TQEvent::MouseButtonPress, pos + TQPoint( dx, dy ), - (isRightClick ? Qt::RightButton : Qt::LeftButton), - (isRightClick ? Qt::RightButton : Qt::LeftButton) | + (isRightClick ? TQt::RightButton : TQt::LeftButton), + (isRightClick ? TQt::RightButton : TQt::LeftButton) | (ctrlPressed ? TQt::ControlButton : 0 ) | (shiftPressed ? TQt::ShiftButton : 0 ) | (altPressed ? TQt::AltButton : 0 ) ); @@ -89,8 +89,8 @@ TQMouseEvent *EventInfo::mouseReleaseEvent( int dx, int dy ) const { return new TQMouseEvent( TQEvent::MouseButtonRelease, pos + TQPoint( dx, dy ), - (isRightClick ? Qt::RightButton : Qt::LeftButton), - (isRightClick ? Qt::RightButton : Qt::LeftButton) | + (isRightClick ? TQt::RightButton : TQt::LeftButton), + (isRightClick ? TQt::RightButton : TQt::LeftButton) | (ctrlPressed ? TQt::ControlButton : 0 ) | (shiftPressed ? TQt::ShiftButton : 0 ) | (altPressed ? TQt::AltButton : 0 ) ); @@ -101,8 +101,8 @@ TQMouseEvent *EventInfo::mouseDoubleClickEvent( int dx, int dy ) const { return new TQMouseEvent( TQEvent::MouseButtonDblClick, pos + TQPoint( dx, dy ), - (isRightClick ? Qt::RightButton : Qt::LeftButton), - (isRightClick ? Qt::RightButton : Qt::LeftButton) | + (isRightClick ? TQt::RightButton : TQt::LeftButton), + (isRightClick ? TQt::RightButton : TQt::LeftButton) | (ctrlPressed ? TQt::ControlButton : 0 ) | (shiftPressed ? TQt::ShiftButton : 0 ) | (altPressed ? TQt::AltButton : 0 ) ); @@ -113,7 +113,7 @@ TQMouseEvent *EventInfo::mouseMoveEvent( int dx, int dy ) const { return new TQMouseEvent( TQEvent::MouseMove, pos + TQPoint( dx, dy ), - Qt::NoButton, + TQt::NoButton, (ctrlPressed ? TQt::ControlButton : 0 ) | (shiftPressed ? TQt::ShiftButton : 0 ) | (altPressed ? TQt::AltButton : 0 ) ); |