summaryrefslogtreecommitdiffstats
path: root/languages/cpp/creategettersetterdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'languages/cpp/creategettersetterdialog.cpp')
-rw-r--r--languages/cpp/creategettersetterdialog.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/languages/cpp/creategettersetterdialog.cpp b/languages/cpp/creategettersetterdialog.cpp
index 41a2f27e..e63fcf23 100644
--- a/languages/cpp/creategettersetterdialog.cpp
+++ b/languages/cpp/creategettersetterdialog.cpp
@@ -13,16 +13,16 @@
#include "cppsupportpart.h"
#include <klineedit.h>
-#include <qcheckbox.h>
-#include <qregexp.h>
+#include <tqcheckbox.h>
+#include <tqregexp.h>
#include "creategettersetterconfiguration.h"
CreateGetterSetterDialog::CreateGetterSetterDialog( CppSupportPart* part, ClassDom aClass,
- VariableDom aVar, QWidget *parent, const char *pName )
+ VariableDom aVar, TQWidget *parent, const char *pName )
: CreateGetterSetterDialogBase( parent, pName ), m_part( part ), m_class( aClass ), m_var( aVar )
{
- QString name = aVar->name();
+ TQString name = aVar->name();
setCaption( "Create methods for " + name );
if ( aVar->type().startsWith( "const" ) && !aVar->type().endsWith( "*" ) )
@@ -35,11 +35,11 @@ CreateGetterSetterDialog::CreateGetterSetterDialog( CppSupportPart* part, ClassD
if ( config == 0 )
return ;
- QStringList prefixes = config->prefixVariable();
+ TQStringList prefixes = config->prefixVariable();
unsigned int len = 0;
- QStringList::ConstIterator theend = prefixes.end(); //find longest fitting prefix and remove it
- for ( QStringList::ConstIterator ci = prefixes.begin(); ci != theend; ++ci )
+ TQStringList::ConstIterator theend = prefixes.end(); //find longest fitting prefix and remove it
+ for ( TQStringList::ConstIterator ci = prefixes.begin(); ci != theend; ++ci )
{
if ( name.startsWith( *ci ) && ( *ci ).length() > len )
len = ( *ci ).length();
@@ -50,11 +50,11 @@ CreateGetterSetterDialog::CreateGetterSetterDialog( CppSupportPart* part, ClassD
m_edtGet->setText( name );
- QString getName = name;
+ TQString getName = name;
if ( ! config->prefixGet().isEmpty() )
getName[ 0 ] = getName[ 0 ].upper();
- QString setName = name;
+ TQString setName = name;
if ( ! config->prefixSet().isEmpty() )
setName[ 0 ] = setName[ 0 ].upper();
@@ -81,7 +81,7 @@ void CreateGetterSetterDialog::accept( )
if ( m_chkSet->isChecked() && !m_edtSet->text().isEmpty() )
{
- QString parameterStr;
+ TQString parameterStr;
if ( m_var->type().endsWith( "*" ) )
{
@@ -89,7 +89,7 @@ void CreateGetterSetterDialog::accept( )
}
else
{
- QRegExp basicTypes( "((unsigned)?\\s*(char|byte|short|int|long))|double|float|bool" );
+ TQRegExp basicTypes( "((unsigned)?\\s*(char|byte|short|int|long))|double|float|bool" );
if ( basicTypes.exactMatch( m_var->type() ) )
parameterStr = m_var->type() + " " + config->parameterName();
else
@@ -100,7 +100,7 @@ void CreateGetterSetterDialog::accept( )
"\t" + m_var->name() + " = " + config->parameterName() + ";" );
}
//@todo illegale eingaben nicht akzeptieren wie z.b. int& ...
- QDialog::accept();
+ TQDialog::accept();
}
/**