summaryrefslogtreecommitdiffstats
path: root/languages/cpp/addmethoddialog.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 10:00:25 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 10:00:25 -0600
commit1623fe64102c18ab098b79656b80f28cef840756 (patch)
tree78f35fef11ea3dbbca1ba4c99937736a1a0894cf /languages/cpp/addmethoddialog.cpp
parentb6ba5d642f3fc7d320e3d6f4650eb259a3a52b04 (diff)
downloadtdevelop-1623fe64102c18ab098b79656b80f28cef840756.tar.gz
tdevelop-1623fe64102c18ab098b79656b80f28cef840756.zip
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit b6ba5d642f3fc7d320e3d6f4650eb259a3a52b04.
Diffstat (limited to 'languages/cpp/addmethoddialog.cpp')
-rw-r--r--languages/cpp/addmethoddialog.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/languages/cpp/addmethoddialog.cpp b/languages/cpp/addmethoddialog.cpp
index dfb6c314..6f13ed91 100644
--- a/languages/cpp/addmethoddialog.cpp
+++ b/languages/cpp/addmethoddialog.cpp
@@ -41,7 +41,7 @@
#include <tqcheckbox.h>
#include <tqpushbutton.h>
#include <tqtoolbutton.h>
-#include <textstream.h>
+#include <tqtextstream.h>
AddMethodDialog::AddMethodDialog( CppSupportPart* cppSupport, ClassDom klass,
TQWidget* parent, const char* name, bool modal, WFlags fl )
@@ -119,24 +119,24 @@ void AddMethodDialog::reject()
TQString AddMethodDialog::accessID( FunctionDom fun ) const
{
if ( fun->isSignal() )
- return TQString::fromLatin1( "Signals" );
+ return TQString::tqfromLatin1( "Signals" );
switch ( fun->access() )
{
case CodeModelItem::Public:
if ( fun->isSlot() )
- return TQString::fromLatin1( "Public Slots" );
- return TQString::fromLatin1( "Public" );
+ return TQString::tqfromLatin1( "Public Slots" );
+ return TQString::tqfromLatin1( "Public" );
case CodeModelItem::Protected:
if ( fun->isSlot() )
- return TQString::fromLatin1( "Protected Slots" );
- return TQString::fromLatin1( "Protected" );
+ return TQString::tqfromLatin1( "Protected Slots" );
+ return TQString::tqfromLatin1( "Protected" );
case CodeModelItem::Private:
if ( fun->isSlot() )
- return TQString::fromLatin1( "Private Slots" );
- return TQString::fromLatin1( "Private" );
+ return TQString::tqfromLatin1( "Private Slots" );
+ return TQString::tqfromLatin1( "Private" );
}
return TQString();
@@ -248,7 +248,7 @@ void AddMethodDialog::accept()
bool isInline = currentItem->text( 0 ) == "True";
if ( !isInline )
{
- editIface->insertLine( editIface->numLines(), TQString::fromLatin1( "" ) );
+ editIface->insertLine( editIface->numLines(), TQString::tqfromLatin1( "" ) );
editIface->insertText( editIface->numLines() - 1, 0, str );
m_cppSupport->backgroundParser() ->addFile( implementationFile );
}
@@ -293,7 +293,7 @@ void AddMethodDialog::updateGUI()
void AddMethodDialog::addMethod()
{
TQListViewItem * item = new TQListViewItem( methods, "False", "Public", "Normal",
- "void", TQString( "method_%1()" ).arg( ++m_count ),
+ "void", TQString( "method_%1()" ).tqarg( ++m_count ),
sourceFile->currentText() );
methods->setCurrentItem( item );
methods->setSelected( item, true );
@@ -387,7 +387,7 @@ TQString AddMethodDialog::functionDefinition( TQListViewItem* item ) const
<< ind << " */\n";
stream
- << ind << item->text( 3 ) << " " << ( isInline ? TQString::fromLatin1( "" ) : fullName + "::" )
+ << ind << item->text( 3 ) << " " << ( isInline ? TQString::tqfromLatin1( "" ) : fullName + "::" )
<< item->text( 4 ) << "\n"
<< ind << "{\n"
<< ind << " /// @todo implement me\n"