From 1623fe64102c18ab098b79656b80f28cef840756 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 16 Dec 2011 10:00:25 -0600 Subject: Revert "Rename a number of old tq methods that are no longer tq specific" This reverts commit b6ba5d642f3fc7d320e3d6f4650eb259a3a52b04. --- languages/sql/README.dox | 2 +- languages/sql/sqlactions.cpp | 2 +- languages/sql/sqlconfigwidget.ui | 4 ++-- languages/sql/sqloutputwidget.cpp | 20 ++++++++++---------- languages/sql/sqlsupport_part.cpp | 10 +++++----- 5 files changed, 19 insertions(+), 19 deletions(-) (limited to 'languages/sql') diff --git a/languages/sql/README.dox b/languages/sql/README.dox index 14634fba..8642d2b4 100644 --- a/languages/sql/README.dox +++ b/languages/sql/README.dox @@ -6,7 +6,7 @@ This is a SQL support plugin \maintainer Harald Fernengel \feature SQL language support -\feature Consult \ref LangSupportStatus for a up to date features/status of this programming language support part. +\feature Consult \ref LangSupporttqStatus for a up to date features/status of this programming language support part. \bug Describe a the 1st bug that you know of, but probably hasn't been reported yet. .. diff --git a/languages/sql/sqlactions.cpp b/languages/sql/sqlactions.cpp index 633a687d..b1881811 100644 --- a/languages/sql/sqlactions.cpp +++ b/languages/sql/sqlactions.cpp @@ -86,7 +86,7 @@ void SqlListAction::refresh() TQSqlDatabase* db = TQSqlDatabase::database( (*it), false ); if ( !db ) { kdDebug( 9000 ) << "Could not find database connection " << (*it) << endl; - m_combo->insertItem( SmallIcon( "no" ), i18n("").arg( *it ) ); + m_combo->insertItem( SmallIcon( "no" ), i18n("").tqarg( *it ) ); continue; } cName = db->driverName(); diff --git a/languages/sql/sqlconfigwidget.ui b/languages/sql/sqlconfigwidget.ui index 5f836677..e8be196f 100644 --- a/languages/sql/sqlconfigwidget.ui +++ b/languages/sql/sqlconfigwidget.ui @@ -88,7 +88,7 @@ - layout5 + tqlayout5 @@ -104,7 +104,7 @@ Expanding - + 81 20 diff --git a/languages/sql/sqloutputwidget.cpp b/languages/sql/sqloutputwidget.cpp index 9c488d93..548ba0e8 100644 --- a/languages/sql/sqloutputwidget.cpp +++ b/languages/sql/sqloutputwidget.cpp @@ -16,9 +16,9 @@ #include #include #include -#include -#include -#include +#include +#include +#include #include @@ -44,11 +44,11 @@ public: { return exec( lastQuery() ); } TQSqlIndex primaryIndex( bool /*prime*/ = TRUE ) const { return TQSqlIndex(); } - int insert( bool /*invalidate*/ = TRUE ) + int insert( bool /*tqinvalidate*/ = TRUE ) { return FALSE; } - int update( bool /*invalidate*/ = TRUE ) + int update( bool /*tqinvalidate*/ = TRUE ) { return FALSE; } - int del( bool /*invalidate*/ = TRUE ) + int del( bool /*tqinvalidate*/ = TRUE ) { return FALSE; } void setName( const TQString& /*name*/, bool /*autopopulate*/ = TRUE ) {} }; @@ -67,8 +67,8 @@ SqlOutputWidget::SqlOutputWidget ( TQWidget* parent, const char* name ) : m_stack->addWidget( m_textEdit ); m_stack->addWidget( m_table ); - TQVBoxLayout* layout = new TQVBoxLayout( this ); - layout->addWidget( m_stack ); + TQVBoxLayout* tqlayout = new TQVBoxLayout( this ); + tqlayout->addWidget( m_stack ); } SqlOutputWidget::~SqlOutputWidget() @@ -78,7 +78,7 @@ void SqlOutputWidget::showQuery( const TQString& connectionName, const TQString& { TQSqlDatabase* db = TQSqlDatabase::database( connectionName, true ); if ( !db ) { - showError( i18n("No such connection: %1").arg( connectionName ) ); + showError( i18n("No such connection: %1").tqarg( connectionName ) ); return; } if ( !db->isOpen() ) { @@ -101,7 +101,7 @@ void SqlOutputWidget::showQuery( const TQString& connectionName, const TQString& void SqlOutputWidget::showSuccess( int rowsAffected ) { m_textEdit->clear(); - m_textEdit->setText( i18n("Query successful, number of rows affected: %1").arg( rowsAffected ) ); + m_textEdit->setText( i18n("Query successful, number of rows affected: %1").tqarg( rowsAffected ) ); m_stack->raiseWidget( m_textEdit ); } diff --git a/languages/sql/sqlsupport_part.cpp b/languages/sql/sqlsupport_part.cpp index 78c1c1f2..81098a85 100644 --- a/languages/sql/sqlsupport_part.cpp +++ b/languages/sql/sqlsupport_part.cpp @@ -71,8 +71,8 @@ TQString SQLSupportPart::cryptStr(const TQString& aStr) { TQString result; for (unsigned int i = 0; i < aStr.length(); i++) - result += (aStr[i].unicode() < 0x20) ? aStr[i] : - TQChar(0x1001F - aStr[i].unicode()); + result += (aStr[i].tqunicode() < 0x20) ? aStr[i] : + TQChar(0x1001F - aStr[i].tqunicode()); return result; } @@ -113,7 +113,7 @@ void SQLSupportPart::loadConfig() conName = "KDEVSQLSUPPORT_"; conName += TQString::number( i ); conNames << conName; - TQSqlDatabase* db = TQSqlDatabase::addDatabase( sdb[0], TQString( "KDEVSQLSUPPORT_%1" ).arg( i ) ); + TQSqlDatabase* db = TQSqlDatabase::addDatabase( sdb[0], TQString( "KDEVSQLSUPPORT_%1" ).tqarg( i ) ); db->setDatabaseName( sdb[1] ); db->setHostName( sdb[2] ); bool ok; @@ -183,10 +183,10 @@ static TQString dbCaption(const TQSqlDatabase* db) if (!db) return res; res = db->driverName(); - res += TQString::fromLatin1("@"); + res += TQString::tqfromLatin1("@"); res += db->hostName(); if (db->port() >= 0) - res += TQString::fromLatin1(":") + TQString::number(db->port()); + res += TQString::tqfromLatin1(":") + TQString::number(db->port()); return res; } #endif -- cgit v1.2.3