diff options
Diffstat (limited to 'ksvg/test')
-rw-r--r-- | ksvg/test/external/SVGTestWidget.cpp | 12 | ||||
-rw-r--r-- | ksvg/test/external/SVGTestWidget.h | 2 | ||||
-rw-r--r-- | ksvg/test/external/printnodetest.cpp | 2 | ||||
-rw-r--r-- | ksvg/test/external/printnodetest.h | 2 |
4 files changed, 9 insertions, 9 deletions
diff --git a/ksvg/test/external/SVGTestWidget.cpp b/ksvg/test/external/SVGTestWidget.cpp index 895b5357..64944736 100644 --- a/ksvg/test/external/SVGTestWidget.cpp +++ b/ksvg/test/external/SVGTestWidget.cpp @@ -18,9 +18,9 @@ SVGTestWidget::SVGTestWidget(const KURL &url) { setBackgroundColor(TQt::white); setMouseTracking(true); - setFocusPolicy(TQ_WheelFocus); + setFocusPolicy(TQWidget::WheelFocus); - m_doc = DocumentFactory::self()->requestDocument(TQT_TQOBJECT(this), TQT_SLOT(slotRenderingFinished())); + m_doc = DocumentFactory::self()->requestDocument(this, TQ_SLOT(slotRenderingFinished())); if(!m_doc) return; @@ -29,7 +29,7 @@ SVGTestWidget::SVGTestWidget(const KURL &url) if(!m_canvas) return; - m_canvas->setup(TQT_TQPAINTDEVICE(this), TQT_TQPAINTDEVICE(this)); + m_canvas->setup(this, this); if(!DocumentFactory::self()->attachCanvas(m_canvas, m_doc)) return; @@ -88,11 +88,11 @@ KSVG::SVGMouseEventImpl *newMouseEvent(SVGDocument *doc, KSVG::SVGEventImpl::Eve } 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 diff --git a/ksvg/test/external/SVGTestWidget.h b/ksvg/test/external/SVGTestWidget.h index 0e7cb478..f1fae4fe 100644 --- a/ksvg/test/external/SVGTestWidget.h +++ b/ksvg/test/external/SVGTestWidget.h @@ -8,7 +8,7 @@ class SVGTestWidget : public TQWidget { -Q_OBJECT +TQ_OBJECT public: SVGTestWidget(const KURL &url); diff --git a/ksvg/test/external/printnodetest.cpp b/ksvg/test/external/printnodetest.cpp index 3597d5bb..355e4f0e 100644 --- a/ksvg/test/external/printnodetest.cpp +++ b/ksvg/test/external/printnodetest.cpp @@ -21,7 +21,7 @@ static TDECmdLineOptions options[] = Worker::Worker(const KURL &url) { - m_doc = DocumentFactory::self()->requestDocument(this, TQT_SLOT(slotParsingFinished(bool, const TQString &))); + m_doc = DocumentFactory::self()->requestDocument(this, TQ_SLOT(slotParsingFinished(bool, const TQString &))); if(!m_doc) return; diff --git a/ksvg/test/external/printnodetest.h b/ksvg/test/external/printnodetest.h index 39903b75..f42e93ad 100644 --- a/ksvg/test/external/printnodetest.h +++ b/ksvg/test/external/printnodetest.h @@ -10,7 +10,7 @@ namespace KSVG class SVGDocument; class Worker : public TQObject { -Q_OBJECT +TQ_OBJECT public: Worker(const KURL &url); |