diff options
Diffstat (limited to 'ksvg/test/external/SVGTestWidget.cpp')
| -rw-r--r-- | ksvg/test/external/SVGTestWidget.cpp | 12 | 
1 files changed, 6 insertions, 6 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 | 
