diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-26 02:33:14 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-26 17:32:41 +0900 |
commit | d31a7027d0b8e2237b1b398e436e82e9944b38cb (patch) | |
tree | 1cd933e46759d2209dad0c74090f1e3487ab4b3e /kdevdesigner/designer/sourceeditor.cpp | |
parent | 8308ebcedcc01c7588346da09b69b97b5c8e8059 (diff) | |
download | tdevelop-d31a7027d0b8e2237b1b398e436e82e9944b38cb.tar.gz tdevelop-d31a7027d0b8e2237b1b398e436e82e9944b38cb.zip |
Replaced various '#define' with actual strings - part 4
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 676a13490dc7163e5c99a0f39094a2a4148d3963)
Diffstat (limited to 'kdevdesigner/designer/sourceeditor.cpp')
-rw-r--r-- | kdevdesigner/designer/sourceeditor.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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<FormWindow*>(o) ) + if ( ::tqt_cast<FormWindow*>(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<FormWindow*>(o) ) + if ( ::tqt_cast<FormWindow*>(o) ) txt = ( (FormWindow*)o )->formFile()->code(); - else if ( ::tqqt_cast<SourceFile*>(o) ) + else if ( ::tqt_cast<SourceFile*>(o) ) txt = ( (SourceFile*)o )->text(); return txt; } @@ -307,14 +307,14 @@ bool SourceEditor::saveAs() SourceFile *SourceEditor::sourceFile() const { - if ( !::tqqt_cast<SourceFile*>((TQObject *)obj) ) + if ( !::tqt_cast<SourceFile*>((TQObject *)obj) ) return 0; return (SourceFile*)(TQObject*)obj; } FormWindow *SourceEditor::formWindow() const { - if ( !::tqqt_cast<FormWindow*>((TQObject *)obj) ) + if ( !::tqt_cast<FormWindow*>((TQObject *)obj) ) return 0; return (FormWindow*)(TQObject*)obj; } |