diff options
Diffstat (limited to 'kdevdesigner/designer/sourceeditor.cpp')
| -rw-r--r-- | kdevdesigner/designer/sourceeditor.cpp | 42 | 
1 files changed, 21 insertions, 21 deletions
| 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 <qregexp.h> +#include <tqregexp.h>  #include "project.h"  #include "sourcefile.h"  #include "hierarchyview.h" -#include <qmessagebox.h> -#include <qtextstream.h> +#include <tqmessagebox.h> +#include <tqtextstream.h>  #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<FormWindow*>(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<uint> l; +    TQValueList<uint> 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<SourceFile*>((QObject *)obj) ) +    if ( !::qt_cast<SourceFile*>((TQObject *)obj) )  	return 0; -    return (SourceFile*)(QObject*)obj; +    return (SourceFile*)(TQObject*)obj;  }  FormWindow *SourceEditor::formWindow() const  { -    if ( !::qt_cast<FormWindow*>((QObject *)obj) ) +    if ( !::qt_cast<FormWindow*>((TQObject *)obj) )  	return 0; -    return (FormWindow*)(QObject*)obj; +    return (FormWindow*)(TQObject*)obj;  } | 
