diff options
Diffstat (limited to 'kdevdesigner/designer/dbconnectionsimpl.cpp')
-rw-r--r-- | kdevdesigner/designer/dbconnectionsimpl.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/kdevdesigner/designer/dbconnectionsimpl.cpp b/kdevdesigner/designer/dbconnectionsimpl.cpp index 6f059336..1d3c1a0b 100644 --- a/kdevdesigner/designer/dbconnectionsimpl.cpp +++ b/kdevdesigner/designer/dbconnectionsimpl.cpp @@ -25,18 +25,18 @@ **********************************************************************/ #include "dbconnectionsimpl.h" -#include <qptrlist.h> -#include <qgroupbox.h> -#include <qlayout.h> +#include <tqptrlist.h> +#include <tqgroupbox.h> +#include <tqlayout.h> #include "project.h" -#include <qlistbox.h> -#include <qcombobox.h> -#include <qspinbox.h> +#include <tqlistbox.h> +#include <tqcombobox.h> +#include <tqspinbox.h> #include <klineedit.h> -#include <qpushbutton.h> -#include <qsqldatabase.h> -#include <qmessagebox.h> -#include <qapplication.h> +#include <tqpushbutton.h> +#include <tqsqldatabase.h> +#include <tqmessagebox.h> +#include <tqapplication.h> #include "mainwindow.h" #include "asciivalidator.h" @@ -51,17 +51,17 @@ static bool blockChanges = FALSE; * The dialog will by default be modeless, unless you set 'modal' to * TRUE to construct a modal dialog. */ -DatabaseConnectionsEditor::DatabaseConnectionsEditor( Project *pro, QWidget* parent, const char* name, bool modal, WFlags fl ) +DatabaseConnectionsEditor::DatabaseConnectionsEditor( Project *pro, TQWidget* parent, const char* name, bool modal, WFlags fl ) : DatabaseConnectionBase( parent, name, modal, fl ), project( pro ) { - connect( buttonHelp, SIGNAL( clicked() ), MainWindow::self, SLOT( showDialogHelp() ) ); + connect( buttonHelp, TQT_SIGNAL( clicked() ), MainWindow::self, TQT_SLOT( showDialogHelp() ) ); connectionWidget = new DatabaseConnectionWidget( grp ); grpLayout->addWidget( connectionWidget, 0, 0 ); #ifndef QT_NO_SQL - QPtrList<DatabaseConnection> lst = project->databaseConnections(); + TQPtrList<DatabaseConnection> lst = project->databaseConnections(); for ( DatabaseConnection *conn = lst.first(); conn; conn = lst.next() ) listConnections->insertItem( conn->name() ); - connectionWidget->comboDriver->insertStringList( QSqlDatabase::drivers() ); + connectionWidget->comboDriver->insertStringList( TQSqlDatabase::drivers() ); #endif connectionWidget->editName->setValidator( new AsciiValidator( connectionWidget->editName ) ); enableAll( FALSE ); @@ -90,13 +90,13 @@ void DatabaseConnectionsEditor::newConnection() { blockChanges = TRUE; enableAll( TRUE ); - QString n( "(default)" ); + TQString n( "(default)" ); if ( project->databaseConnection( n ) ) { n = "connection"; int i = 2; - while ( project->databaseConnection( n + QString::number( i ) ) ) + while ( project->databaseConnection( n + TQString::number( i ) ) ) ++i; - n = n + QString::number( i ); + n = n + TQString::number( i ); } connectionWidget->editName->setText( n ); listConnections->clearSelection(); @@ -125,7 +125,7 @@ void DatabaseConnectionsEditor::doConnect() listConnections->setCurrentItem( listConnections->count() - 1 ); project->saveConnections(); } else { - QMessageBox::warning( MainWindow::self, i18n( "Connection" ), + TQMessageBox::warning( MainWindow::self, i18n( "Connection" ), i18n( "Could not connect to the database.\n" "Please ensure that the database server is running " "and that all the connection information is correct.\n" @@ -147,7 +147,7 @@ void DatabaseConnectionsEditor::doConnect() #endif } -void DatabaseConnectionsEditor::currentConnectionChanged( const QString &s ) +void DatabaseConnectionsEditor::currentConnectionChanged( const TQString &s ) { #ifndef QT_NO_SQL DatabaseConnection *conn = project->databaseConnection( s ); @@ -169,7 +169,7 @@ void DatabaseConnectionsEditor::currentConnectionChanged( const QString &s ) #endif } -void DatabaseConnectionsEditor::connectionNameChanged( const QString &s ) +void DatabaseConnectionsEditor::connectionNameChanged( const TQString &s ) { if ( listConnections->currentItem() == 0 || blockChanges ) return; |