From d6f8bbb45b267065a6907e71ff9c98bb6d161241 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:56:07 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kdevdesigner/designer/sourceeditor.cpp | 42 +++++++++++++++++----------------- 1 file changed, 21 insertions(+), 21 deletions(-) (limited to 'kdevdesigner/designer/sourceeditor.cpp') diff --git a/kdevdesigner/designer/sourceeditor.cpp b/kdevdesigner/designer/sourceeditor.cpp index f3a035b5..f5915664 100644 --- a/kdevdesigner/designer/sourceeditor.cpp +++ b/kdevdesigner/designer/sourceeditor.cpp @@ -32,22 +32,22 @@ #include "project.h" #include "mainwindow.h" #include "../interfaces/languageinterface.h" -#include +#include #include "project.h" #include "sourcefile.h" #include "hierarchyview.h" -#include -#include +#include +#include #include "kdevdesigner_part.h" -SourceEditor::SourceEditor( QWidget *parent, EditorInterface *iface, LanguageInterface *liface ) - : QVBox( parent, 0, WDestructiveClose ), iFace( iface ), lIface( liface ), obj( 0 ), pro( 0 ) +SourceEditor::SourceEditor( TQWidget *parent, EditorInterface *iface, LanguageInterface *liface ) + : TQVBox( parent, 0, WDestructiveClose ), iFace( iface ), lIface( liface ), obj( 0 ), pro( 0 ) { iFace->addRef(); lIface->addRef(); editor = iFace->editor( MainWindow::self->areEditorsReadOnly(), this, MainWindow::self->designerInterface() ); - iFace->onBreakPointChange( MainWindow::self, SLOT( breakPointsChanged() ) ); + iFace->onBreakPointChange( MainWindow::self, TQT_SLOT( breakPointsChanged() ) ); resize( 600, 400 ); setIcon( SmallIcon( "designer_filenew.png" , KDevDesignerPartFactory::instance()) ); } @@ -69,7 +69,7 @@ SourceEditor::~SourceEditor() MainWindow::self->editorClosed( this ); } -void SourceEditor::setObject( QObject *o, Project *p ) +void SourceEditor::setObject( TQObject *o, Project *p ) { if ( sourceFile() ) sourceFile()->setEditor( 0 ); @@ -113,10 +113,10 @@ void SourceEditor::setObject( QObject *o, Project *p ) MainWindow::self->objectHierarchy()->showClasses( this ); } -QString SourceEditor::sourceOfObject( QObject *o, const QString &, +TQString SourceEditor::sourceOfObject( TQObject *o, const TQString &, EditorInterface *, LanguageInterface * ) { - QString txt; + TQString txt; if ( !o ) return txt; if ( ::qt_cast(o) ) @@ -126,17 +126,17 @@ QString SourceEditor::sourceOfObject( QObject *o, const QString &, return txt; } -void SourceEditor::setFunction( const QString &func, const QString &clss ) +void SourceEditor::setFunction( const TQString &func, const TQString &clss ) { iFace->scrollTo( lIface->createFunctionStart( obj->name(), func, "", "" ), clss ); } -void SourceEditor::setClass( const QString &clss ) +void SourceEditor::setClass( const TQString &clss ) { - iFace->scrollTo( clss, QString::null ); + iFace->scrollTo( clss, TQString::null ); } -void SourceEditor::closeEvent( QCloseEvent *e ) +void SourceEditor::closeEvent( TQCloseEvent *e ) { e->accept(); if ( !obj ) @@ -160,12 +160,12 @@ void SourceEditor::save() sourceFile()->setText( iFace->text() ); } -QString SourceEditor::language() const +TQString SourceEditor::language() const { return lang; } -void SourceEditor::setLanguage( const QString &l ) +void SourceEditor::setLanguage( const TQString &l ) { lang = l; } @@ -258,7 +258,7 @@ void SourceEditor::saveBreakPoints() { if ( !obj ) return; - QValueList l; + TQValueList l; iFace->breakPoints( l ); MetaDataBase::setBreakPoints( obj, l ); } @@ -278,7 +278,7 @@ void SourceEditor::resetBreakPoints() iFace->setBreakPoints( MetaDataBase::breakPoints( obj ) ); } -QString SourceEditor::text() const +TQString SourceEditor::text() const { return iFace->text(); } @@ -307,14 +307,14 @@ bool SourceEditor::saveAs() SourceFile *SourceEditor::sourceFile() const { - if ( !::qt_cast((QObject *)obj) ) + if ( !::qt_cast((TQObject *)obj) ) return 0; - return (SourceFile*)(QObject*)obj; + return (SourceFile*)(TQObject*)obj; } FormWindow *SourceEditor::formWindow() const { - if ( !::qt_cast((QObject *)obj) ) + if ( !::qt_cast((TQObject *)obj) ) return 0; - return (FormWindow*)(QObject*)obj; + return (FormWindow*)(TQObject*)obj; } -- cgit v1.2.3