summaryrefslogtreecommitdiffstats
path: root/ksvg/plugin/ksvg_widget.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-11-06 11:39:17 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-11-07 11:44:25 +0900
commitb93a9330d8b06f081d4ea3d2d48cdba2b6b2ce46 (patch)
treea322378de9225faac7c5226d1aaa01c4bfcdf527 /ksvg/plugin/ksvg_widget.cpp
parent0181791a29594df4dbf38706d0b9ed509b3141f4 (diff)
downloadtdegraphics-b93a9330d8b06f081d4ea3d2d48cdba2b6b2ce46.tar.gz
tdegraphics-b93a9330d8b06f081d4ea3d2d48cdba2b6b2ce46.zip
Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'ksvg/plugin/ksvg_widget.cpp')
-rw-r--r--ksvg/plugin/ksvg_widget.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/ksvg/plugin/ksvg_widget.cpp b/ksvg/plugin/ksvg_widget.cpp
index bd64899c..be8d0559 100644
--- a/ksvg/plugin/ksvg_widget.cpp
+++ b/ksvg/plugin/ksvg_widget.cpp
@@ -74,11 +74,11 @@ KSVG::SVGMouseEventImpl *KSVGWidget::newMouseEvent(KSVG::SVGEvent::EventId id, T
}
int button = 0;
- if(event->stateAfter() & Qt::LeftButton)
+ if(event->stateAfter() & TQt::LeftButton)
button = 1;
- else if(event->stateAfter() & Qt::MidButton)
+ else if(event->stateAfter() & TQt::MidButton)
button = 2;
- else if(event->stateAfter() & Qt::RightButton)
+ else if(event->stateAfter() & TQt::RightButton)
button = 3;
KSVG::SVGMouseEventImpl *mev = new KSVG::SVGMouseEventImpl(id, // type
@@ -104,7 +104,7 @@ KSVG::SVGMouseEventImpl *KSVGWidget::newMouseEvent(KSVG::SVGEvent::EventId id, T
void KSVGWidget::mouseMoveEvent(TQMouseEvent *event)
{
- if(event->state() & TQt::ControlButton && event->state() & Qt::LeftButton)
+ if(event->state() & TQt::ControlButton && event->state() & TQt::LeftButton)
{
if(m_panningPos.isNull())
m_panningPos = event->pos();
@@ -186,7 +186,7 @@ void KSVGWidget::mousePressEvent(TQMouseEvent *event)
if(event->state() & TQt::ControlButton)
return;
- if(event->button() == Qt::RightButton)
+ if(event->button() == TQt::RightButton)
{
if(part() && part()->factory())
{