From d31a7027d0b8e2237b1b398e436e82e9944b38cb Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 26 Nov 2023 02:33:14 +0900 Subject: Replaced various '#define' with actual strings - part 4 Signed-off-by: Michele Calgaro (cherry picked from commit 676a13490dc7163e5c99a0f39094a2a4148d3963) --- kdevdesigner/designer/sourceeditor.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'kdevdesigner/designer/sourceeditor.cpp') diff --git a/kdevdesigner/designer/sourceeditor.cpp b/kdevdesigner/designer/sourceeditor.cpp index 2850e20e..1efbe164 100644 --- a/kdevdesigner/designer/sourceeditor.cpp +++ b/kdevdesigner/designer/sourceeditor.cpp @@ -77,7 +77,7 @@ void SourceEditor::setObject( TQObject *o, Project *p ) formWindow()->formFile()->setCodeEdited( FALSE ); formWindow()->formFile()->setEditor( 0 ); } - if ( ::tqqt_cast(o) ) + if ( ::tqt_cast(o) ) ( (FormWindow*)o )->formFile()->setCodeEdited( TRUE ); save(); bool changed = FALSE; @@ -119,9 +119,9 @@ TQString SourceEditor::sourceOfObject( TQObject *o, const TQString &, TQString txt; if ( !o ) return txt; - if ( ::tqqt_cast(o) ) + if ( ::tqt_cast(o) ) txt = ( (FormWindow*)o )->formFile()->code(); - else if ( ::tqqt_cast(o) ) + else if ( ::tqt_cast(o) ) txt = ( (SourceFile*)o )->text(); return txt; } @@ -307,14 +307,14 @@ bool SourceEditor::saveAs() SourceFile *SourceEditor::sourceFile() const { - if ( !::tqqt_cast((TQObject *)obj) ) + if ( !::tqt_cast((TQObject *)obj) ) return 0; return (SourceFile*)(TQObject*)obj; } FormWindow *SourceEditor::formWindow() const { - if ( !::tqqt_cast((TQObject *)obj) ) + if ( !::tqt_cast((TQObject *)obj) ) return 0; return (FormWindow*)(TQObject*)obj; } -- cgit v1.2.3