diff options
Diffstat (limited to 'kword/mailmerge/sql/KWQtSqlSerialDataSourceBase.cpp')
-rw-r--r-- | kword/mailmerge/sql/KWQtSqlSerialDataSourceBase.cpp | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/kword/mailmerge/sql/KWQtSqlSerialDataSourceBase.cpp b/kword/mailmerge/sql/KWQtSqlSerialDataSourceBase.cpp index 781c1ab5..ddb32794 100644 --- a/kword/mailmerge/sql/KWQtSqlSerialDataSourceBase.cpp +++ b/kword/mailmerge/sql/KWQtSqlSerialDataSourceBase.cpp @@ -17,20 +17,20 @@ * Boston, MA 02110-1301, USA. */ -#include "KWQtSqlSerialDataSourceBase.h" -#include "KWQtSqlSerialDataSourceBase.moc" -#include "KWQtSqlMailMergeOpen.h" -#include <qlayout.h> -#include <qdom.h> +#include "KWTQtSqlSerialDataSourceBase.h" +#include "KWTQtSqlSerialDataSourceBase.moc" +#include "KWTQtSqlMailMergeOpen.h" +#include <tqlayout.h> +#include <tqdom.h> #include <kcombobox.h> #include <klineedit.h> #include <kpushbutton.h> -#include <qsqldatabase.h> -#include <qmessagebox.h> +#include <tqsqldatabase.h> +#include <tqmessagebox.h> #include <kpassdlg.h> -#include <qsqlrecord.h> -#include <qsqlcursor.h> -#include <qdatatable.h> +#include <tqsqlrecord.h> +#include <tqsqlcursor.h> +#include <tqdatatable.h> #include <kdebug.h> #include <klocale.h> #include <kiconloader.h> @@ -40,31 +40,31 @@ /****************************************************************** * - * Class: KWQtSqlSerialDataSourceBase + * Class: KWTQtSqlSerialDataSourceBase * ******************************************************************/ -int KWQtSqlSerialDataSourceBase::connectionId=0; +int KWTQtSqlSerialDataSourceBase::connectionId=0; -KWQtSqlSerialDataSourceBase::KWQtSqlSerialDataSourceBase(KInstance *inst,QObject *parent) - : KWMailMergeDataSource(inst,parent) +KWTQtSqlSerialDataSourceBase::KWTQtSqlSerialDataSourceBase(KInstance *inst,TQObject *tqparent) + : KWMailMergeDataSource(inst,tqparent) { - DataBaseConnection=QString("KWQTSQLPOWER")+parent->name()+QString("--%1").arg(connectionId++); + DataBaseConnection=TQString("KWTQTSTQLPOWER")+tqparent->name()+TQString("--%1").tqarg(connectionId++); port=i18n("default"); } -KWQtSqlSerialDataSourceBase::~KWQtSqlSerialDataSourceBase() +KWTQtSqlSerialDataSourceBase::~KWTQtSqlSerialDataSourceBase() { - QSqlDatabase::removeDatabase(DataBaseConnection); + TQSqlDatabase::removeDatabase(DataBaseConnection); } -bool KWQtSqlSerialDataSourceBase::showConfigDialog(QWidget *par,int action) +bool KWTQtSqlSerialDataSourceBase::showConfigDialog(TQWidget *par,int action) { bool ret=false; if (action==KWSLOpen) { - KWQtSqlMailMergeOpen *dia=new KWQtSqlMailMergeOpen(par,this); + KWTQtSqlMailMergeOpen *dia=new KWTQtSqlMailMergeOpen(par,this); ret=dia->exec(); if (ret) openDatabase(); @@ -73,16 +73,16 @@ bool KWQtSqlSerialDataSourceBase::showConfigDialog(QWidget *par,int action) return ret; } -bool KWQtSqlSerialDataSourceBase::openDatabase() +bool KWTQtSqlSerialDataSourceBase::openDatabase() { - QCString pwd; - QSqlDatabase::removeDatabase(DataBaseConnection); - database=QSqlDatabase::addDatabase(driver,DataBaseConnection); + TQCString pwd; + TQSqlDatabase::removeDatabase(DataBaseConnection); + database=TQSqlDatabase::addDatabase(driver,DataBaseConnection); if (database) { - if (database->lastError().type()!=QSqlError::None) + if (database->lastError().type()!=TQSqlError::None) { - QMessageBox::critical(0,i18n("Error"),database->lastError().databaseText(),QMessageBox::Abort,QMessageBox::NoButton,QMessageBox::NoButton); + TQMessageBox::critical(0,i18n("Error"),database->lastError().databaseText(),TQMessageBox::Abort,TQMessageBox::NoButton,TQMessageBox::NoButton); return false; } database->setDatabaseName(databasename); @@ -97,9 +97,9 @@ bool KWQtSqlSerialDataSourceBase::openDatabase() { return true; } - QMessageBox::critical(0,i18n("Error"),database->lastError().databaseText(),QMessageBox::Abort,QMessageBox::NoButton,QMessageBox::NoButton); + TQMessageBox::critical(0,i18n("Error"),database->lastError().databaseText(),TQMessageBox::Abort,TQMessageBox::NoButton,TQMessageBox::NoButton); return false; } - QMessageBox::critical(0,i18n("Error"),i18n("Unable to create database object"),QMessageBox::Abort,QMessageBox::NoButton,QMessageBox::NoButton); + TQMessageBox::critical(0,i18n("Error"),i18n("Unable to create database object"),TQMessageBox::Abort,TQMessageBox::NoButton,TQMessageBox::NoButton); return false; } |