diff options
author | Michele Calgaro <[email protected]> | 2023-12-03 00:49:24 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-12-04 00:22:09 +0900 |
commit | 0ac52a652e631e24ac4989414b2c27b7b55ec239 (patch) | |
tree | 0517e5050037eabfcb03f1e80f9b39ab16f6737d /kdevdesigner/designer | |
parent | 33b2598a0e14810025fd31406a689f561015e074 (diff) | |
download | tdevelop-0ac52a652e631e24ac4989414b2c27b7b55ec239.tar.gz tdevelop-0ac52a652e631e24ac4989414b2c27b7b55ec239.zip |
Replaced various '#define' with actual strings - part 5
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'kdevdesigner/designer')
-rw-r--r-- | kdevdesigner/designer/mainwindow.cpp | 4 | ||||
-rw-r--r-- | kdevdesigner/designer/resource.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/kdevdesigner/designer/mainwindow.cpp b/kdevdesigner/designer/mainwindow.cpp index 8c4f1d73..af4c4b78 100644 --- a/kdevdesigner/designer/mainwindow.cpp +++ b/kdevdesigner/designer/mainwindow.cpp @@ -596,12 +596,12 @@ TQWidget* MainWindow::previewFormInternal( TQStyle* style, TQPalette* palet ) Resource resource( this ); resource.setWidget( fw ); TQValueList<Resource::Image> images; - resource.save( TQT_TQIODEVICE(&buffer) ); + resource.save( &buffer ); buffer.close(); buffer.open( IO_ReadOnly ); - TQWidget *w = TQWidgetFactory::create( TQT_TQIODEVICE(&buffer) ); + TQWidget *w = TQWidgetFactory::create( &buffer ); if ( w ) { previewedForm = w; if ( palet ) { diff --git a/kdevdesigner/designer/resource.cpp b/kdevdesigner/designer/resource.cpp index 192e4ffc..48da59b4 100644 --- a/kdevdesigner/designer/resource.cpp +++ b/kdevdesigner/designer/resource.cpp @@ -319,7 +319,7 @@ bool Resource::load( FormFile *ff, Project *defProject ) TQFile f( ff->absFileName() ); f.open( IO_ReadOnly | IO_Translate ); - bool b = load( ff, TQT_TQIODEVICE(&f), defProject ); + bool b = load( ff, &f, defProject ); f.close(); return b; @@ -695,7 +695,7 @@ bool Resource::save( const TQString& filename, bool formCodeOnly ) TQFile f( filename ); if ( !f.open( IO_WriteOnly | IO_Translate ) ) return FALSE; - bool b = save( TQT_TQIODEVICE(&f) ); + bool b = save( &f ); f.close(); return b; } |