summaryrefslogtreecommitdiffstats
path: root/kdevdesigner/designer/dbconnectionsimpl.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
commitd6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch)
treed109539636691d7b03036ca1c0ed29dbae6577cf /kdevdesigner/designer/dbconnectionsimpl.cpp
parent3331a47a9cad24795c7440ee8107143ce444ef34 (diff)
downloadtdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz
tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdevdesigner/designer/dbconnectionsimpl.cpp')
-rw-r--r--kdevdesigner/designer/dbconnectionsimpl.cpp40
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;