summaryrefslogtreecommitdiffstats
path: root/languages/sql/sqloutputwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'languages/sql/sqloutputwidget.cpp')
-rw-r--r--languages/sql/sqloutputwidget.cpp20
1 files changed, 10 insertions, 10 deletions
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 <tqsqlrecord.h>
#include <tqwidgetstack.h>
#include <tqdatatable.h>
-#include <textedit.h>
-#include <layout.h>
-#include <stylesheet.h>
+#include <tqtextedit.h>
+#include <tqlayout.h>
+#include <tqstylesheet.h>
#include <klocale.h>
@@ -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 );
}