summaryrefslogtreecommitdiffstats
path: root/kig/filters/svgexporter.cc
diff options
context:
space:
mode:
Diffstat (limited to 'kig/filters/svgexporter.cc')
-rw-r--r--kig/filters/svgexporter.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/kig/filters/svgexporter.cc b/kig/filters/svgexporter.cc
index 57413004..93801b3b 100644
--- a/kig/filters/svgexporter.cc
+++ b/kig/filters/svgexporter.cc
@@ -59,7 +59,7 @@ TQString SVGExporter::menuIcon() const
void SVGExporter::run( const KigPart& part, KigWidget& w )
{
KigFileDialog* kfd = new KigFileDialog(
- TQString::null, i18n( "*.svg|Scalable Vector Graphics (*.svg)" ),
+ TQString(), i18n( "*.svg|Scalable Vector Graphics (*.svg)" ),
i18n( "Export as SVG" ), &w );
kfd->setOptionCaption( i18n( "SVG Options" ) );
SVGExporterOptions* opts = new SVGExporterOptions( 0L );
@@ -81,7 +81,7 @@ void SVGExporter::run( const KigPart& part, KigWidget& w )
{
KMessageBox::sorry( &w, i18n( "The file \"%1\" could not be opened. Please "
"check if the file permissions are set correctly." )
- .arg( file_name ) );
+ .tqarg( file_name ) );
return;
};
@@ -91,12 +91,12 @@ void SVGExporter::run( const KigPart& part, KigWidget& w )
TQPicture pic;
pic.setBoundingRect( r );
KigPainter* p = new KigPainter( ScreenInfo( w.screenInfo().shownRect(), viewrect ),
- &pic, part.document() );
+ TQT_TQPAINTDEVICE(&pic), part.document() );
// p->setWholeWinOverlay();
-// p->setBrushColor( Qt::white );
-// p->setBrushStyle( Qt::SolidPattern );
+// p->setBrushColor( TQt::white );
+// p->setBrushStyle( TQt::SolidPattern );
// p->drawRect( r );
-// p->setBrushStyle( Qt::NoBrush );
+// p->setBrushStyle( TQt::NoBrush );
// p->setWholeWinOverlay();
p->drawGrid( part.document().coordinateSystem(), showgrid, showaxes );
p->drawObjects( part.document().objects(), false );
@@ -105,7 +105,7 @@ void SVGExporter::run( const KigPart& part, KigWidget& w )
if ( !pic.save( file_name, "SVG" ) )
{
- KMessageBox::error( &w, i18n( "Sorry, something went wrong while saving to SVG file \"%1\"" ).arg( file_name ) );
+ KMessageBox::error( &w, i18n( "Sorry, something went wrong while saving to SVG file \"%1\"" ).tqarg( file_name ) );
}
}