diff options
Diffstat (limited to 'karbon/plugins/zoomtool/vzoomtool.cc')
| -rw-r--r-- | karbon/plugins/zoomtool/vzoomtool.cc | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/karbon/plugins/zoomtool/vzoomtool.cc b/karbon/plugins/zoomtool/vzoomtool.cc index 60142481b..01a80aaac 100644 --- a/karbon/plugins/zoomtool/vzoomtool.cc +++ b/karbon/plugins/zoomtool/vzoomtool.cc @@ -18,8 +18,8 @@ */ -#include <qcursor.h> -#include <qevent.h> +#include <tqcursor.h> +#include <tqevent.h> #include <klocale.h> @@ -34,7 +34,7 @@ VZoomTool::VZoomTool(KarbonView *view ): VTool( view, "tool_zoom_plugin" ) { - m_plusCursor = new QCursor( VCursor::createCursor( VCursor::ZoomPlus ) ); + m_plusCursor = new TQCursor( VCursor::createCursor( VCursor::ZoomPlus ) ); registerTool( this ); } @@ -44,10 +44,10 @@ VZoomTool::~VZoomTool() delete m_plusCursor; } -QString +TQString VZoomTool::contextHelp() { - QString s = i18n( "<qt><b>Zoom tool:</b><br>" ); + TQString s = i18n( "<qt><b>Zoom tool:</b><br>" ); s += i18n( "<i>Click and drag</i> to zoom into a rectangular area.<br>" ); s += i18n( "<i>Right click</i> to zoom out of canvas.<br>" ); s += i18n( "<i>Pressing +/- keys</i><br>to zoom into/out of canvas." ); @@ -61,7 +61,7 @@ VZoomTool::activate() view()->setCursor( *m_plusCursor ); } -QString +TQString VZoomTool::statusText() { return i18n( "Zoom Tool" ); @@ -76,11 +76,11 @@ void VZoomTool::draw() { VPainter *painter = view()->painterFactory()->editpainter(); - painter->setRasterOp( Qt::NotROP ); + painter->setRasterOp( TQt::NotROP ); if( isDragging() ) { - painter->setPen( Qt::DotLine ); + painter->setPen( TQt::DotLine ); painter->newPath(); painter->moveTo( KoPoint( first().x(), first().y() ) ); painter->lineTo( KoPoint( m_current.x(), first().y() ) ); @@ -132,12 +132,12 @@ VZoomTool::mouseDragRelease() } bool -VZoomTool::keyReleased( Qt::Key key ) +VZoomTool::keyReleased( TQt::Key key ) { double zoomChange = 0; - if( key == Qt::Key_Minus ) + if( key == TQt::Key_Minus ) zoomChange = 0.75; - else if( key == Qt::Key_Plus ) + else if( key == TQt::Key_Plus ) zoomChange = 1.50; if( zoomChange != 0 ) @@ -161,7 +161,7 @@ VZoomTool::setup( KActionCollection *collection ) if( m_action == 0 ) { - m_action = new KRadioAction( i18n( "Zoom Tool" ), "14_zoom", Qt::SHIFT+Qt::Key_H, this, SLOT( activate() ), collection, name() ); + m_action = new KRadioAction( i18n( "Zoom Tool" ), "14_zoom", TQt::SHIFT+TQt::Key_H, this, TQT_SLOT( activate() ), collection, name() ); m_action->setToolTip( i18n( "Zoom" ) ); m_action->setExclusiveGroup( "misc" ); //m_ownAction = true; |
