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 --- languages/cpp/classgeneratorconfig.cpp | 48 +++++++++++++++++----------------- 1 file changed, 24 insertions(+), 24 deletions(-) (limited to 'languages/cpp/classgeneratorconfig.cpp') diff --git a/languages/cpp/classgeneratorconfig.cpp b/languages/cpp/classgeneratorconfig.cpp index c6049801..70ad5d10 100644 --- a/languages/cpp/classgeneratorconfig.cpp +++ b/languages/cpp/classgeneratorconfig.cpp @@ -9,11 +9,11 @@ * * ***************************************************************************/ -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include #include #include @@ -21,7 +21,7 @@ #include "cppsupportfactory.h" #include "classgeneratorconfig.h" -ClassGeneratorConfig::ClassGeneratorConfig( QWidget* parent, const char* name, WFlags fl ) +ClassGeneratorConfig::ClassGeneratorConfig( TQWidget* parent, const char* name, WFlags fl ) : ClassGeneratorConfigBase( parent, name, fl ) { readConfig(); @@ -29,12 +29,12 @@ ClassGeneratorConfig::ClassGeneratorConfig( QWidget* parent, const char* name, W template_edit->setText( *currTemplate ); } -ClassGeneratorConfig::ClassGeneratorConfig( QString v_cppHeaderText, QString v_cppSourceText, - QString v_objcHeaderText, QString v_objcSourceText, - QString v_gtkHeaderText, QString v_gtkSourceText, +ClassGeneratorConfig::ClassGeneratorConfig( TQString v_cppHeaderText, TQString v_cppSourceText, + TQString v_objcHeaderText, TQString v_objcSourceText, + TQString v_gtkHeaderText, TQString v_gtkSourceText, NameCase v_fileCase, NameCase v_defCase, NameCase v_superCase, bool v_showAuthor, bool v_genDoc, bool v_reformat, - QWidget* parent, const char* name, WFlags fl ) + TQWidget* parent, const char* name, WFlags fl ) : ClassGeneratorConfigBase( parent, name, fl ), cppHeaderText( v_cppHeaderText ), cppSourceText( v_cppSourceText ), objcHeaderText( v_objcHeaderText ), objcSourceText( v_objcSourceText ), @@ -62,42 +62,42 @@ void ClassGeneratorConfig::templateTypeChanged( int type ) template_edit->setText( *currTemplate ); } -QString ClassGeneratorConfig::cppHeader() +TQString ClassGeneratorConfig::cppHeader() { if ( currTemplate == &cppHeaderText ) * currTemplate = template_edit->text(); return cppHeaderText; } -QString ClassGeneratorConfig::cppSource() +TQString ClassGeneratorConfig::cppSource() { if ( currTemplate == &cppSourceText ) * currTemplate = template_edit->text(); return cppSourceText; } -QString ClassGeneratorConfig::objcHeader() +TQString ClassGeneratorConfig::objcHeader() { if ( currTemplate == &objcHeaderText ) * currTemplate = template_edit->text(); return objcHeaderText; } -QString ClassGeneratorConfig::objcSource() +TQString ClassGeneratorConfig::objcSource() { if ( currTemplate == &objcSourceText ) * currTemplate = template_edit->text(); return objcSourceText; } -QString ClassGeneratorConfig::gtkHeader() +TQString ClassGeneratorConfig::gtkHeader() { if ( currTemplate == >kHeaderText ) * currTemplate = template_edit->text(); return gtkHeaderText; } -QString ClassGeneratorConfig::gtkSource() +TQString ClassGeneratorConfig::gtkSource() { if ( currTemplate == >kSourceText ) * currTemplate = template_edit->text(); @@ -129,7 +129,7 @@ bool ClassGeneratorConfig::genDoc() return doc_box->isChecked(); } -QString *ClassGeneratorConfig::identifyTemplate( int value ) +TQString *ClassGeneratorConfig::identifyTemplate( int value ) { switch ( value ) { @@ -177,15 +177,15 @@ void ClassGeneratorConfig::readConfig() } -QString ClassGeneratorConfig::templateText( QString path ) +TQString ClassGeneratorConfig::templateText( TQString path ) { - QFileInfo f( path ); + TQFileInfo f( path ); if ( f.exists() ) { - QFile file( path ); + TQFile file( path ); if ( file.open( IO_ReadOnly ) ) { - QTextStream stream( &file ); + TQTextStream stream( &file ); return stream.read(); } else @@ -222,12 +222,12 @@ void ClassGeneratorConfig::storeConfig() } } -void ClassGeneratorConfig::saveTemplateText( QString path, QString content ) +void ClassGeneratorConfig::saveTemplateText( TQString path, TQString content ) { - QFile f( path ); + TQFile f( path ); if ( f.open( IO_WriteOnly ) ) { - QTextStream stream( &f ); + TQTextStream stream( &f ); stream << content; f.close(); } -- cgit v1.2.3