summaryrefslogtreecommitdiffstats
path: root/kword/mailmerge/sql
diff options
context:
space:
mode:
Diffstat (limited to 'kword/mailmerge/sql')
-rw-r--r--kword/mailmerge/sql/KWQtSqlEasyFilter.cpp4
-rw-r--r--kword/mailmerge/sql/KWQtSqlEasyFilter.h2
-rw-r--r--kword/mailmerge/sql/KWQtSqlMailMergeOpen.cpp4
-rw-r--r--kword/mailmerge/sql/KWQtSqlMailMergeOpen.h2
-rw-r--r--kword/mailmerge/sql/KWQtSqlPowerSerialDataSource.cpp18
-rw-r--r--kword/mailmerge/sql/KWQtSqlPowerSerialDataSource.h4
-rw-r--r--kword/mailmerge/sql/KWQtSqlSerialDataSource.cpp20
-rw-r--r--kword/mailmerge/sql/KWQtSqlSerialDataSource.h4
-rw-r--r--kword/mailmerge/sql/KWQtSqlSerialDataSourceBase.cpp6
-rw-r--r--kword/mailmerge/sql/KWQtSqlSerialDataSourceBase.h2
10 files changed, 33 insertions, 33 deletions
diff --git a/kword/mailmerge/sql/KWQtSqlEasyFilter.cpp b/kword/mailmerge/sql/KWQtSqlEasyFilter.cpp
index aec361a3..3db1d9d6 100644
--- a/kword/mailmerge/sql/KWQtSqlEasyFilter.cpp
+++ b/kword/mailmerge/sql/KWQtSqlEasyFilter.cpp
@@ -6,8 +6,8 @@
#include <tqlayout.h>
#include <tqcheckbox.h>
-KWQtSqlEasyFilter::KWQtSqlEasyFilter( TQWidget *tqparent)
- :KDialogBase( Swallow, i18n( "Mail Merge - Editor" ), Ok | Cancel, Ok, tqparent, "", true)
+KWQtSqlEasyFilter::KWQtSqlEasyFilter( TQWidget *parent)
+ :KDialogBase( Swallow, i18n( "Mail Merge - Editor" ), Ok | Cancel, Ok, parent, "", true)
{
m_fieldList << "" <<"one" << "two" << "three" << "four";
m_sortingList << ""<<i18n("ascending")<<i18n("descending");
diff --git a/kword/mailmerge/sql/KWQtSqlEasyFilter.h b/kword/mailmerge/sql/KWQtSqlEasyFilter.h
index 1384dec7..f95f46b3 100644
--- a/kword/mailmerge/sql/KWQtSqlEasyFilter.h
+++ b/kword/mailmerge/sql/KWQtSqlEasyFilter.h
@@ -12,7 +12,7 @@ class KWQtSqlEasyFilter: public KDialogBase
Q_OBJECT
TQ_OBJECT
public:
- KWQtSqlEasyFilter( TQWidget *tqparent);
+ KWQtSqlEasyFilter( TQWidget *parent);
virtual ~KWQtSqlEasyFilter();
protected:
void createColumn(int i);
diff --git a/kword/mailmerge/sql/KWQtSqlMailMergeOpen.cpp b/kword/mailmerge/sql/KWQtSqlMailMergeOpen.cpp
index 2518399b..d3feca22 100644
--- a/kword/mailmerge/sql/KWQtSqlMailMergeOpen.cpp
+++ b/kword/mailmerge/sql/KWQtSqlMailMergeOpen.cpp
@@ -37,8 +37,8 @@
*
******************************************************************/
-KWQtSqlMailMergeOpen::KWQtSqlMailMergeOpen( TQWidget *tqparent, KWQtSqlSerialDataSourceBase *db_ )
- :KDialogBase( Plain, i18n( "Mail Merge - Setup Database Connection" ), Ok | Cancel, Ok, tqparent, "", true ), db( db_ ){
+KWQtSqlMailMergeOpen::KWQtSqlMailMergeOpen( TQWidget *parent, KWQtSqlSerialDataSourceBase *db_ )
+ :KDialogBase( Plain, i18n( "Mail Merge - Setup Database Connection" ), Ok | Cancel, Ok, parent, "", true ), db( db_ ){
(new TQVBoxLayout(plainPage()))->setAutoAdd(true);
setMainWidget(widget=new KWQtSqlOpenWidget(plainPage()));
widget->drivers->insertStringList(TQSqlDatabase::drivers());
diff --git a/kword/mailmerge/sql/KWQtSqlMailMergeOpen.h b/kword/mailmerge/sql/KWQtSqlMailMergeOpen.h
index 949dc2c6..39430517 100644
--- a/kword/mailmerge/sql/KWQtSqlMailMergeOpen.h
+++ b/kword/mailmerge/sql/KWQtSqlMailMergeOpen.h
@@ -39,7 +39,7 @@ class KWQtSqlMailMergeOpen : public KDialogBase
TQ_OBJECT
public:
- KWQtSqlMailMergeOpen( TQWidget *tqparent, KWQtSqlSerialDataSourceBase *db_ );
+ KWQtSqlMailMergeOpen( TQWidget *parent, KWQtSqlSerialDataSourceBase *db_ );
~KWQtSqlMailMergeOpen();
private:
KWQtSqlSerialDataSourceBase *db;
diff --git a/kword/mailmerge/sql/KWQtSqlPowerSerialDataSource.cpp b/kword/mailmerge/sql/KWQtSqlPowerSerialDataSource.cpp
index c091184e..bbaf97d6 100644
--- a/kword/mailmerge/sql/KWQtSqlPowerSerialDataSource.cpp
+++ b/kword/mailmerge/sql/KWQtSqlPowerSerialDataSource.cpp
@@ -41,8 +41,8 @@
*
******************************************************************/
-KWQtSqlPowerSerialDataSource::KWQtSqlPowerSerialDataSource(KInstance *inst,TQObject *tqparent)
- : KWQtSqlSerialDataSourceBase(inst,tqparent),myquery(0)
+KWQtSqlPowerSerialDataSource::KWQtSqlPowerSerialDataSource(KInstance *inst,TQObject *parent)
+ : KWQtSqlSerialDataSourceBase(inst,parent),myquery(0)
{
port=i18n("default");
}
@@ -83,10 +83,10 @@ TQString KWQtSqlPowerSerialDataSource::getValue( const TQString &name, int recor
return (myquery->value(name)).toString();
}
-void KWQtSqlPowerSerialDataSource::save( TQDomDocument &doc, TQDomElement &tqparent)
+void KWQtSqlPowerSerialDataSource::save( TQDomDocument &doc, TQDomElement &parent)
{
TQDomElement def=doc.createElement(TQString::tqfromLatin1("DEFINITION"));
- tqparent.appendChild(def);
+ parent.appendChild(def);
{
TQDomElement defEnt=doc.createElement(TQString::tqfromLatin1("DATABASE"));
defEnt.setAttribute(TQString::tqfromLatin1("hostname"),hostname);
@@ -101,7 +101,7 @@ void KWQtSqlPowerSerialDataSource::save( TQDomDocument &doc, TQDomElement &tqpar
def.appendChild(defEnt);
TQDomElement sampleEnt=doc.createElement(TQString::tqfromLatin1("SAMPLERECORD"));
- tqparent.appendChild(sampleEnt);
+ parent.appendChild(sampleEnt);
for (DbRecord::Iterator it=sampleRecord.begin();it!=sampleRecord.end();++it)
{
TQDomElement fieldEnt=doc.createElement(TQString::tqfromLatin1("FIELD"));
@@ -175,8 +175,8 @@ void KWQtSqlPowerSerialDataSource::addSampleRecordEntry(TQString name)
*
******************************************************************/
-KWQtSqlPowerMailMergeEditor::KWQtSqlPowerMailMergeEditor( TQWidget *tqparent, KWQtSqlPowerSerialDataSource *db_ )
- :KDialogBase( Plain, i18n( "Mail Merge - Editor" ), Ok | Cancel, Ok, tqparent, "", true ), db( db_ )
+KWQtSqlPowerMailMergeEditor::KWQtSqlPowerMailMergeEditor( TQWidget *parent, KWQtSqlPowerSerialDataSource *db_ )
+ :KDialogBase( Plain, i18n( "Mail Merge - Editor" ), Ok | Cancel, Ok, parent, "", true ), db( db_ )
{
(new TQVBoxLayout(plainPage()))->setAutoAdd(true);
setMainWidget(widget=new KWQtSqlPowerWidget(plainPage()));
@@ -249,8 +249,8 @@ KWQtSqlPowerMailMergeEditor::~KWQtSqlPowerMailMergeEditor(){;}
extern "C" {
- KWORD_MAILMERGE_EXPORT KWMailMergeDataSource *create_kwmailmerge_qtsqldb_power(KInstance *inst,TQObject *tqparent)
+ KWORD_MAILMERGE_EXPORT KWMailMergeDataSource *create_kwmailmerge_qtsqldb_power(KInstance *inst,TQObject *parent)
{
- return new KWQtSqlPowerSerialDataSource(inst,tqparent);
+ return new KWQtSqlPowerSerialDataSource(inst,parent);
}
}
diff --git a/kword/mailmerge/sql/KWQtSqlPowerSerialDataSource.h b/kword/mailmerge/sql/KWQtSqlPowerSerialDataSource.h
index 6870afe1..3d364338 100644
--- a/kword/mailmerge/sql/KWQtSqlPowerSerialDataSource.h
+++ b/kword/mailmerge/sql/KWQtSqlPowerSerialDataSource.h
@@ -47,7 +47,7 @@ class KWQtSqlPowerSerialDataSource: public KWQtSqlSerialDataSourceBase
Q_OBJECT
// TQ_OBJECT
public:
- KWQtSqlPowerSerialDataSource(KInstance *inst,TQObject *tqparent);
+ KWQtSqlPowerSerialDataSource(KInstance *inst,TQObject *parent);
~KWQtSqlPowerSerialDataSource();
virtual void save( TQDomDocument &doc,TQDomElement&);
@@ -81,7 +81,7 @@ class KWQtSqlPowerMailMergeEditor : public KDialogBase
// TQ_OBJECT
public:
- KWQtSqlPowerMailMergeEditor( TQWidget *tqparent, KWQtSqlPowerSerialDataSource *db_ );
+ KWQtSqlPowerMailMergeEditor( TQWidget *parent, KWQtSqlPowerSerialDataSource *db_ );
~KWQtSqlPowerMailMergeEditor();
private:
KWQtSqlPowerSerialDataSource *db;
diff --git a/kword/mailmerge/sql/KWQtSqlSerialDataSource.cpp b/kword/mailmerge/sql/KWQtSqlSerialDataSource.cpp
index 45ff85bc..ec31df35 100644
--- a/kword/mailmerge/sql/KWQtSqlSerialDataSource.cpp
+++ b/kword/mailmerge/sql/KWQtSqlSerialDataSource.cpp
@@ -38,8 +38,8 @@
*
******************************************************************/
-KWQtSqlSerialDataSource::KWQtSqlSerialDataSource(KInstance *inst,TQObject *tqparent)
- : KWQtSqlSerialDataSourceBase(inst,tqparent)
+KWQtSqlSerialDataSource::KWQtSqlSerialDataSource(KInstance *inst,TQObject *parent)
+ : KWQtSqlSerialDataSourceBase(inst,parent)
{
myquery=0;
}
@@ -63,11 +63,11 @@ TQString KWQtSqlSerialDataSource::getValue( const TQString &name, int record ) c
return (myquery->value(name)).toString();
}
-void KWQtSqlSerialDataSource::save( TQDomDocument & /*doc*/, TQDomElement & /*tqparent*/)
+void KWQtSqlSerialDataSource::save( TQDomDocument & /*doc*/, TQDomElement & /*parent*/)
{
/*
TQDomElement def=doc.createElement(TQString::tqfromLatin1("DEFINITION"));
- tqparent.appendChild(def);
+ parent.appendChild(def);
for (DbRecord::Iterator it=sampleRecord.begin();it!=sampleRecord.end();++it)
{
TQDomElement defEnt=doc.createElement(TQString::tqfromLatin1("FIELD"));
@@ -75,7 +75,7 @@ void KWQtSqlSerialDataSource::save( TQDomDocument & /*doc*/, TQDomElement & /*tq
def.appendChild(defEnt);
}
TQDomElement cont=doc.createElement(TQString::tqfromLatin1("CONTENT"));
- tqparent.appendChild(cont);
+ parent.appendChild(cont);
for (Db::Iterator dbI=db.begin();dbI!=db.end();++dbI)
{
TQDomElement rec=doc.createElement(TQString::tqfromLatin1("RECORD"));
@@ -162,8 +162,8 @@ void KWQtSqlSerialDataSource::refresh(bool force)
-KWQtSqlDataSourceEditor::KWQtSqlDataSourceEditor( TQWidget *tqparent, KWQtSqlSerialDataSource *db_ )
- :KDialogBase( Plain, i18n( "Mail Merge - Editor" ), Ok | Cancel, Ok, tqparent, "", true ), db( db_ )
+KWQtSqlDataSourceEditor::KWQtSqlDataSourceEditor( TQWidget *parent, KWQtSqlSerialDataSource *db_ )
+ :KDialogBase( Plain, i18n( "Mail Merge - Editor" ), Ok | Cancel, Ok, parent, "", true ), db( db_ )
{
tableName=db->tableName;
filter=db->filter;
@@ -206,13 +206,13 @@ void KWQtSqlDataSourceEditor::slotSetQuery()
void KWQtSqlDataSourceEditor::editFilter()
{
- KWQtSqlEasyFilter *f=new KWQtSqlEasyFilter(TQT_TQWIDGET(tqparent()));
+ KWQtSqlEasyFilter *f=new KWQtSqlEasyFilter(TQT_TQWIDGET(parent()));
f->exec();
}
extern "C" {
- KWORD_MAILMERGE_EXPORT KWMailMergeDataSource *create_kwmailmerge_qtsqldb(KInstance *inst,TQObject *tqparent)
+ KWORD_MAILMERGE_EXPORT KWMailMergeDataSource *create_kwmailmerge_qtsqldb(KInstance *inst,TQObject *parent)
{
- return new KWQtSqlSerialDataSource(inst,tqparent);
+ return new KWQtSqlSerialDataSource(inst,parent);
}
}
diff --git a/kword/mailmerge/sql/KWQtSqlSerialDataSource.h b/kword/mailmerge/sql/KWQtSqlSerialDataSource.h
index cc6061a9..ed25b4ee 100644
--- a/kword/mailmerge/sql/KWQtSqlSerialDataSource.h
+++ b/kword/mailmerge/sql/KWQtSqlSerialDataSource.h
@@ -36,7 +36,7 @@
class KWQtSqlSerialDataSource: public KWQtSqlSerialDataSourceBase
{
public:
- KWQtSqlSerialDataSource(KInstance *inst,TQObject *tqparent);
+ KWQtSqlSerialDataSource(KInstance *inst,TQObject *parent);
~KWQtSqlSerialDataSource();
virtual void save( TQDomDocument &doc,TQDomElement&);
@@ -67,7 +67,7 @@ class KWQtSqlDataSourceEditor : public KDialogBase
TQ_OBJECT
public:
- KWQtSqlDataSourceEditor( TQWidget *tqparent, KWQtSqlSerialDataSource *db_ );
+ KWQtSqlDataSourceEditor( TQWidget *parent, KWQtSqlSerialDataSource *db_ );
~KWQtSqlDataSourceEditor(){;}
private:
KWQtSqlSerialDataSource *db;
diff --git a/kword/mailmerge/sql/KWQtSqlSerialDataSourceBase.cpp b/kword/mailmerge/sql/KWQtSqlSerialDataSourceBase.cpp
index 040c657e..f31a431a 100644
--- a/kword/mailmerge/sql/KWQtSqlSerialDataSourceBase.cpp
+++ b/kword/mailmerge/sql/KWQtSqlSerialDataSourceBase.cpp
@@ -46,10 +46,10 @@
int KWQtSqlSerialDataSourceBase::connectionId=0;
-KWQtSqlSerialDataSourceBase::KWQtSqlSerialDataSourceBase(KInstance *inst,TQObject *tqparent)
- : KWMailMergeDataSource(inst,tqparent)
+KWQtSqlSerialDataSourceBase::KWQtSqlSerialDataSourceBase(KInstance *inst,TQObject *parent)
+ : KWMailMergeDataSource(inst,parent)
{
- DataBaseConnection=TQString("KWTQTSQLPOWER")+tqparent->name()+TQString("--%1").tqarg(connectionId++);
+ DataBaseConnection=TQString("KWTQTSQLPOWER")+parent->name()+TQString("--%1").tqarg(connectionId++);
port=i18n("default");
}
diff --git a/kword/mailmerge/sql/KWQtSqlSerialDataSourceBase.h b/kword/mailmerge/sql/KWQtSqlSerialDataSourceBase.h
index ee4e02a8..1f3e4396 100644
--- a/kword/mailmerge/sql/KWQtSqlSerialDataSourceBase.h
+++ b/kword/mailmerge/sql/KWQtSqlSerialDataSourceBase.h
@@ -41,7 +41,7 @@ class KWQtSqlSerialDataSourceBase: public KWMailMergeDataSource
// TQ_OBJECT
K_DCOP
public:
- KWQtSqlSerialDataSourceBase(KInstance *inst,TQObject *tqparent);
+ KWQtSqlSerialDataSourceBase(KInstance *inst,TQObject *parent);
~KWQtSqlSerialDataSourceBase();
virtual bool showConfigDialog(TQWidget *par,int action);