summaryrefslogtreecommitdiffstats
path: root/kbarcode/labeleditor.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-12-03 00:37:29 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-12-03 18:46:52 +0900
commitd9f688ddbd88ddbac7dec1ab360d43b74edd022c (patch)
treea8eefbc9d7e37fdd4ac90e73cc69b464e7ba692b /kbarcode/labeleditor.cpp
parent9503185fc6f36b949e32376e43a1df4ef7bfff18 (diff)
downloadkbarcode-d9f688ddbd88ddbac7dec1ab360d43b74edd022c.tar.gz
kbarcode-d9f688ddbd88ddbac7dec1ab360d43b74edd022c.zip
Replaced various '#define' with actual strings - part 5
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kbarcode/labeleditor.cpp')
-rw-r--r--kbarcode/labeleditor.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/kbarcode/labeleditor.cpp b/kbarcode/labeleditor.cpp
index 41f58d5..09d5ac1 100644
--- a/kbarcode/labeleditor.cpp
+++ b/kbarcode/labeleditor.cpp
@@ -131,7 +131,7 @@ LabelEditor::LabelEditor( TQWidget *parent, TQString _filename, const char *name
description = TQString();
d = new Definition();
- m_token = new TokenProvider( TQT_TQPAINTDEVICE(TDEApplication::desktop()) );
+ m_token = new TokenProvider( TDEApplication::desktop() );
statusBar()->insertItem( "", STATUS_ID_TEMPLATE, 0, true );
statusBar()->insertItem( "", STATUS_ID_SIZE, 0, true );
@@ -303,7 +303,7 @@ bool LabelEditor::save( TQString name )
if ( !f.open( IO_WriteOnly ) )
return false;
- save( TQT_TQIODEVICE(&f) );
+ save( &f );
m_token->setLabelName( filename.right( filename.length() - filename.findRev( "/" ) - 1 ) );
// maybe we should redraw all items on the canvas now.
@@ -798,7 +798,7 @@ void LabelEditor::batchPrint( BatchPrinter* batch, int copies, int mode )
if( !buffer.open( IO_WriteOnly ) )
return;
- save( TQT_TQIODEVICE(&buffer) );
+ save( &buffer );
batch->setBuffer( &buffer );
batch->setSerial( TQString(), 1 );
@@ -944,10 +944,10 @@ void LabelEditor::preview()
if( !buffer.open( IO_WriteOnly ) )
return;
- save( TQT_TQIODEVICE(&buffer) );
+ save( &buffer );
// No need to delete pd as it has WDestructiveClose set!
- PreviewDialog* pd = new PreviewDialog( TQT_TQIODEVICE(&buffer), d, fileName(), this );
+ PreviewDialog* pd = new PreviewDialog( &buffer, d, fileName(), this );
pd->exec();
}