summaryrefslogtreecommitdiffstats
path: root/languages/sql
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:51:21 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:51:21 -0600
commitb6ba5d642f3fc7d320e3d6f4650eb259a3a52b04 (patch)
tree76f49820693d443128d3720322ff1605e9bcd558 /languages/sql
parent247f828db1b8dcdc9346c1568d81cfa00db99c9e (diff)
downloadtdevelop-b6ba5d642f3fc7d320e3d6f4650eb259a3a52b04.tar.gz
tdevelop-b6ba5d642f3fc7d320e3d6f4650eb259a3a52b04.zip
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'languages/sql')
-rw-r--r--languages/sql/README.dox2
-rw-r--r--languages/sql/sqlactions.cpp2
-rw-r--r--languages/sql/sqlconfigwidget.ui4
-rw-r--r--languages/sql/sqloutputwidget.cpp20
-rw-r--r--languages/sql/sqlsupport_part.cpp10
5 files changed, 19 insertions, 19 deletions
diff --git a/languages/sql/README.dox b/languages/sql/README.dox
index 8642d2b4..14634fba 100644
--- a/languages/sql/README.dox
+++ b/languages/sql/README.dox
@@ -6,7 +6,7 @@ This is a SQL support plugin
\maintainer <a href="mailto:harry AT tdevelop.org">Harald Fernengel</a>
\feature SQL language support
-\feature Consult \ref LangSupporttqStatus for a up to date features/status of this programming language support part.
+\feature Consult \ref LangSupportStatus 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 b1881811..633a687d 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("<error - no connection %1>").tqarg( *it ) );
+ m_combo->insertItem( SmallIcon( "no" ), i18n("<error - no connection %1>").arg( *it ) );
continue;
}
cName = db->driverName();
diff --git a/languages/sql/sqlconfigwidget.ui b/languages/sql/sqlconfigwidget.ui
index e8be196f..5f836677 100644
--- a/languages/sql/sqlconfigwidget.ui
+++ b/languages/sql/sqlconfigwidget.ui
@@ -88,7 +88,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>tqlayout5</cstring>
+ <cstring>layout5</cstring>
</property>
<hbox>
<property name="name">
@@ -104,7 +104,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>81</width>
<height>20</height>
diff --git a/languages/sql/sqloutputwidget.cpp b/languages/sql/sqloutputwidget.cpp
index 548ba0e8..9c488d93 100644
--- a/languages/sql/sqloutputwidget.cpp
+++ b/languages/sql/sqloutputwidget.cpp
@@ -16,9 +16,9 @@
#include <tqsqlrecord.h>
#include <tqwidgetstack.h>
#include <tqdatatable.h>
-#include <tqtextedit.h>
-#include <tqlayout.h>
-#include <tqstylesheet.h>
+#include <textedit.h>
+#include <layout.h>
+#include <stylesheet.h>
#include <klocale.h>
@@ -44,11 +44,11 @@ public:
{ return exec( lastQuery() ); }
TQSqlIndex primaryIndex( bool /*prime*/ = TRUE ) const
{ return TQSqlIndex(); }
- int insert( bool /*tqinvalidate*/ = TRUE )
+ int insert( bool /*invalidate*/ = TRUE )
{ return FALSE; }
- int update( bool /*tqinvalidate*/ = TRUE )
+ int update( bool /*invalidate*/ = TRUE )
{ return FALSE; }
- int del( bool /*tqinvalidate*/ = TRUE )
+ int del( bool /*invalidate*/ = 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* tqlayout = new TQVBoxLayout( this );
- tqlayout->addWidget( m_stack );
+ TQVBoxLayout* layout = new TQVBoxLayout( this );
+ layout->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").tqarg( connectionName ) );
+ showError( i18n("No such connection: %1").arg( 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").tqarg( rowsAffected ) );
+ m_textEdit->setText( i18n("Query successful, number of rows affected: %1").arg( rowsAffected ) );
m_stack->raiseWidget( m_textEdit );
}
diff --git a/languages/sql/sqlsupport_part.cpp b/languages/sql/sqlsupport_part.cpp
index 81098a85..78c1c1f2 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].tqunicode() < 0x20) ? aStr[i] :
- TQChar(0x1001F - aStr[i].tqunicode());
+ result += (aStr[i].unicode() < 0x20) ? aStr[i] :
+ TQChar(0x1001F - aStr[i].unicode());
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" ).tqarg( i ) );
+ TQSqlDatabase* db = TQSqlDatabase::addDatabase( sdb[0], TQString( "KDEVSQLSUPPORT_%1" ).arg( 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::tqfromLatin1("@");
+ res += TQString::fromLatin1("@");
res += db->hostName();
if (db->port() >= 0)
- res += TQString::tqfromLatin1(":") + TQString::number(db->port());
+ res += TQString::fromLatin1(":") + TQString::number(db->port());
return res;
}
#endif