summaryrefslogtreecommitdiffstats
path: root/karbon/plugins/imagetool/vimagetool.cc
diff options
context:
space:
mode:
Diffstat (limited to 'karbon/plugins/imagetool/vimagetool.cc')
-rw-r--r--karbon/plugins/imagetool/vimagetool.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/karbon/plugins/imagetool/vimagetool.cc b/karbon/plugins/imagetool/vimagetool.cc
index 6511fa4d..40823e99 100644
--- a/karbon/plugins/imagetool/vimagetool.cc
+++ b/karbon/plugins/imagetool/vimagetool.cc
@@ -18,7 +18,7 @@
*/
-#include <qcursor.h>
+#include <tqcursor.h>
#include <klocale.h>
#include <kfiledialog.h>
#include <kdebug.h>
@@ -33,7 +33,7 @@
VImageTool::VImageTool( KarbonView *view ) : VTool( view, "tool_image_plugin" )
{
registerTool( this );
- m_cursor = new QCursor( VCursor::createCursor( VCursor::CrossHair ) );
+ m_cursor = new TQCursor( VCursor::createCursor( VCursor::CrossHair ) );
}
VImageTool::~VImageTool()
@@ -41,10 +41,10 @@ VImageTool::~VImageTool()
delete m_cursor;
}
-QString
+TQString
VImageTool::contextHelp()
{
- QString s = i18n( "<qt><b>Image tool:</b><br>" );
+ TQString s = i18n( "<qt><b>Image tool:</b><br>" );
return s;
}
@@ -55,7 +55,7 @@ VImageTool::activate()
VTool::activate();
}
-QString
+TQString
VImageTool::statusText()
{
return i18n( "Image Tool" );
@@ -69,7 +69,7 @@ VImageTool::deactivate()
void
VImageTool::mouseButtonRelease()
{
- QString fname = KFileDialog::getOpenFileName( QString::null, "*.jpg *.gif *.png", view(), i18n( "Choose Image to Add" ) );
+ TQString fname = KFileDialog::getOpenFileName( TQString(), "*.jpg *.gif *.png", view(), i18n( "Choose Image to Add" ) );
if( !fname.isEmpty() )
{
VImage *image = new VImage( 0L, fname );
@@ -79,7 +79,7 @@ VImageTool::mouseButtonRelease()
}
}
-VImageTool::VInsertImageCmd::VInsertImageCmd( VDocument* doc, const QString& name, VImage *image, KoPoint pos )
+VImageTool::VInsertImageCmd::VInsertImageCmd( VDocument* doc, const TQString& name, VImage *image, KoPoint pos )
: VCommand( doc, name, "frame_image" ), m_image( image ), m_pos( pos )
{
}
@@ -95,7 +95,7 @@ VImageTool::VInsertImageCmd::execute()
else
{
m_image->setState( VObject::normal );
- m_image->transform( QWMatrix().translate( m_pos.x(), m_pos.y() ) );
+ m_image->transform( TQWMatrix().translate( m_pos.x(), m_pos.y() ) );
document()->append( m_image );
document()->selection()->clear();
document()->selection()->append( m_image );
@@ -123,7 +123,7 @@ VImageTool::setup( KActionCollection *collection )
if( m_action == 0 )
{
- m_action = new KRadioAction( i18n( "Image Tool" ), "14_image", Qt::SHIFT+Qt::Key_H, this, SLOT( activate() ), collection, name() );
+ m_action = new KRadioAction( i18n( "Image Tool" ), "14_image", TQt::SHIFT+TQt::Key_H, this, TQT_SLOT( activate() ), collection, name() );
m_action->setToolTip( i18n( "Image" ) );
m_action->setExclusiveGroup( "misc" );
//m_ownAction = true;