From 138bb80efac020c7e78871d3f05127eb37f18274 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 26 Nov 2023 02:32:50 +0900 Subject: Replaced various '#define' with actual strings - part 4 Signed-off-by: Michele Calgaro --- interfaces/khexedit/clipboardinterface.h | 2 +- interfaces/khexedit/zoominterface.h | 2 +- interfaces/kregexpeditor/kregexpeditorinterface.h | 4 ++-- interfaces/terminal/kde_terminal_interface.h | 2 +- interfaces/terminal/test/main.cpp | 6 +++--- 5 files changed, 8 insertions(+), 8 deletions(-) (limited to 'interfaces') diff --git a/interfaces/khexedit/clipboardinterface.h b/interfaces/khexedit/clipboardinterface.h index c63c5a88e..ca69baf8c 100644 --- a/interfaces/khexedit/clipboardinterface.h +++ b/interfaces/khexedit/clipboardinterface.h @@ -78,7 +78,7 @@ ClipboardInterface *clipboardInterface( T *t ) if( !t ) return 0; - return ::tqqt_cast( t ); + return ::tqt_cast( t ); } } diff --git a/interfaces/khexedit/zoominterface.h b/interfaces/khexedit/zoominterface.h index 9c6f0f677..21145cb9a 100644 --- a/interfaces/khexedit/zoominterface.h +++ b/interfaces/khexedit/zoominterface.h @@ -71,7 +71,7 @@ ZoomInterface *zoomInterface( T *t ) if( !t ) return 0; - return ::tqqt_cast( t ); + return ::tqt_cast( t ); } } diff --git a/interfaces/kregexpeditor/kregexpeditorinterface.h b/interfaces/kregexpeditor/kregexpeditorinterface.h index 4124849d6..c58ab7dc9 100644 --- a/interfaces/kregexpeditor/kregexpeditorinterface.h +++ b/interfaces/kregexpeditor/kregexpeditorinterface.h @@ -25,7 +25,7 @@ * TQDialog *editorDialog = KParts::ComponentFactory::createInstanceFromQuery( "KRegExpEditor/KRegExpEditor" ); * if ( editorDialog ) { * // tdeutils was installed, so the dialog was found fetch the editor interface - * KRegExpEditorInterface *editor = ::tqqt_cast( editorDialog ); + * KRegExpEditorInterface *editor = ::tqt_cast( editorDialog ); * Q_ASSERT( editor ); // This should not fail! * * // now use the editor. @@ -53,7 +53,7 @@ * "KRegExpEditor/KRegExpEditor", TQString::null, parent ); * if ( editorWidget ) { * // tdeutils was installed, so the widget was found fetch the editor interface - * KRegExpEditorInterface *editor = ::tqqt_cast( editorWidget ); + * KRegExpEditorInterface *editor = ::tqt_cast( editorWidget ); * Q_ASSERT( editor ); // This should not fail! * * // now use the editor. diff --git a/interfaces/terminal/kde_terminal_interface.h b/interfaces/terminal/kde_terminal_interface.h index 67edaea3e..406fdf1ec 100644 --- a/interfaces/terminal/kde_terminal_interface.h +++ b/interfaces/terminal/kde_terminal_interface.h @@ -59,7 +59,7 @@ class TQStrList; * setCentralWidget( p->widget() ); * * // cast the part to the TerminalInterface.. - * TerminalInterface* t = ::tqqt_cast( p ); + * TerminalInterface* t = ::tqt_cast( p ); * if( ! t ) * { * // This probably happens because the konsole that is installed diff --git a/interfaces/terminal/test/main.cpp b/interfaces/terminal/test/main.cpp index bdf5b6764..07e31bead 100644 --- a/interfaces/terminal/test/main.cpp +++ b/interfaces/terminal/test/main.cpp @@ -20,7 +20,7 @@ Win::Win() KParts::Part* p = factory->create( this, "tralala", "TQObject", "KParts::ReadOnlyPart" ) ; setCentralWidget( p->widget() ); - TerminalInterface* t = ::tqqt_cast( p ); + TerminalInterface* t = ::tqt_cast( p ); t->showShellInDir( TQDir::home().path() ); // TQStrList l; // l.append( "python" ); @@ -46,11 +46,11 @@ int main( int argc, char** argv ) void Win::pythonExited() { std::cerr << "hee, " << p << std::endl; - std::cerr << ( ::tqqt_cast(p) ) << std::endl; + std::cerr << ( ::tqt_cast(p) ) << std::endl; // KMessageBox::sorry( this, TQString::fromUtf8( "Exited, status was %1" ).arg( status ) ); disconnect(p, TQT_SIGNAL( processExited() ), this, TQT_SLOT( pythonExited() )); - TerminalInterface* t = ::tqqt_cast( p ); + TerminalInterface* t = ::tqt_cast( p ); TQStrList l; l.append( "echo" ); l.append( "hello world" ); -- cgit v1.2.1