summaryrefslogtreecommitdiffstats
path: root/src/eventinfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/eventinfo.cpp')
-rw-r--r--src/eventinfo.cpp20
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 ) );