summaryrefslogtreecommitdiffstats
path: root/kword/mailmerge/sql/KWQtSqlSerialDataSource.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-26 00:41:16 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-26 00:41:16 +0000
commit698569f8428ca088f764d704034a1330517b98c0 (patch)
treebf45be6946ebbbee9cce5a5bcf838f4c952d87e6 /kword/mailmerge/sql/KWQtSqlSerialDataSource.cpp
parent2785103a6bd4de55bd26d79e34d0fdd4b329a73a (diff)
downloadkoffice-698569f8428ca088f764d704034a1330517b98c0.tar.gz
koffice-698569f8428ca088f764d704034a1330517b98c0.zip
Finish rebranding of Krita as Chalk
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238363 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kword/mailmerge/sql/KWQtSqlSerialDataSource.cpp')
-rw-r--r--kword/mailmerge/sql/KWQtSqlSerialDataSource.cpp50
1 files changed, 25 insertions, 25 deletions
diff --git a/kword/mailmerge/sql/KWQtSqlSerialDataSource.cpp b/kword/mailmerge/sql/KWQtSqlSerialDataSource.cpp
index fa5bc8f6..4476b4d3 100644
--- a/kword/mailmerge/sql/KWQtSqlSerialDataSource.cpp
+++ b/kword/mailmerge/sql/KWQtSqlSerialDataSource.cpp
@@ -17,9 +17,9 @@
* Boston, MA 02110-1301, USA.
*/
-#include "KWTQtSqlSerialDataSource.h"
-#include "KWTQtSqlSerialDataSource.moc"
-#include "KWTQtSqlEasyFilter.h"
+#include "KWQtSqlSerialDataSource.h"
+#include "KWQtSqlSerialDataSource.moc"
+#include "KWQtSqlEasyFilter.h"
#include <klocale.h>
#include <tqlayout.h>
@@ -30,28 +30,28 @@
#include <tqsqlquery.h>
#include <kdebug.h>
-#define KWTQtSqlBarIcon( x ) BarIcon( x, db->KWInstance() )
+#define KWQtSqlBarIcon( x ) BarIcon( x, db->KWInstance() )
/******************************************************************
*
- * Class: KWTQtSqlSerialDataSource
+ * Class: KWQtSqlSerialDataSource
*
******************************************************************/
-KWTQtSqlSerialDataSource::KWTQtSqlSerialDataSource(KInstance *inst,TQObject *tqparent)
- : KWTQtSqlSerialDataSourceBase(inst,tqparent)
+KWQtSqlSerialDataSource::KWQtSqlSerialDataSource(KInstance *inst,TQObject *tqparent)
+ : KWQtSqlSerialDataSourceBase(inst,tqparent)
{
myquery=0;
}
-KWTQtSqlSerialDataSource::~KWTQtSqlSerialDataSource()
+KWQtSqlSerialDataSource::~KWQtSqlSerialDataSource()
{
delete myquery;
- TQSqlDatabase::removeDatabase("KWTQTSTQLPOWER");
+ TQSqlDatabase::removeDatabase("KWTQTSQLPOWER");
}
-TQString KWTQtSqlSerialDataSource::getValue( const TQString &name, int record ) const
+TQString KWQtSqlSerialDataSource::getValue( const TQString &name, int record ) const
{
int num=record;
@@ -63,7 +63,7 @@ TQString KWTQtSqlSerialDataSource::getValue( const TQString &name, int record )
return (myquery->value(name)).toString();
}
-void KWTQtSqlSerialDataSource::save( TQDomDocument & /*doc*/, TQDomElement & /*tqparent*/)
+void KWQtSqlSerialDataSource::save( TQDomDocument & /*doc*/, TQDomElement & /*tqparent*/)
{
/*
TQDomElement def=doc.createElement(TQString::tqfromLatin1("DEFINITION"));
@@ -91,7 +91,7 @@ void KWTQtSqlSerialDataSource::save( TQDomDocument & /*doc*/, TQDomElement & /*t
*/
}
-void KWTQtSqlSerialDataSource::load( TQDomElement& /*tqparentElem*/ )
+void KWQtSqlSerialDataSource::load( TQDomElement& /*tqparentElem*/ )
{
/*
db.clear();
@@ -117,21 +117,21 @@ void KWTQtSqlSerialDataSource::load( TQDomElement& /*tqparentElem*/ )
*/
}
-bool KWTQtSqlSerialDataSource::showConfigDialog(TQWidget *par,int action)
+bool KWQtSqlSerialDataSource::showConfigDialog(TQWidget *par,int action)
{
bool ret=false;
if (action==KWSLEdit)
{
- KWTQtSqlDataSourceEditor *dia=new KWTQtSqlDataSourceEditor(par,this);
+ KWQtSqlDataSourceEditor *dia=new KWQtSqlDataSourceEditor(par,this);
ret=dia->exec();
delete dia;
}
- else ret=KWTQtSqlSerialDataSourceBase::showConfigDialog(par,action);
+ else ret=KWQtSqlSerialDataSourceBase::showConfigDialog(par,action);
return ret;
}
-void KWTQtSqlSerialDataSource::refresh(bool force)
+void KWQtSqlSerialDataSource::refresh(bool force)
{
if ((force) || (myquery==0))
{
@@ -156,19 +156,19 @@ void KWTQtSqlSerialDataSource::refresh(bool force)
/******************************************************************
*
- * Class: KWTQtSqlDataSourceEditor
+ * Class: KWQtSqlDataSourceEditor
*
******************************************************************/
-KWTQtSqlDataSourceEditor::KWTQtSqlDataSourceEditor( TQWidget *tqparent, KWTQtSqlSerialDataSource *db_ )
+KWQtSqlDataSourceEditor::KWQtSqlDataSourceEditor( TQWidget *tqparent, KWQtSqlSerialDataSource *db_ )
:KDialogBase( Plain, i18n( "Mail Merge - Editor" ), Ok | Cancel, Ok, tqparent, "", true ), db( db_ )
{
tableName=db->tableName;
filter=db->filter;
(new TQVBoxLayout(plainPage()))->setAutoAdd(true);
- setMainWidget(widget=new TQtSqlDataSourceEditor(plainPage()));
+ setMainWidget(widget=new QtSqlDataSourceEditor(plainPage()));
connect(widget->tableCombo,TQT_SIGNAL(activated(int)),this,TQT_SLOT(tableChanged(int)));
connect(widget->editFilter,TQT_SIGNAL(clicked()),this,TQT_SLOT(editFilter()));
updateTableCombo();
@@ -176,7 +176,7 @@ KWTQtSqlDataSourceEditor::KWTQtSqlDataSourceEditor( TQWidget *tqparent, KWTQtSql
// connect(this,TQT_SIGNAL(okClicked()),this,TQT_SLOT(slotSetQuery()));
}
-void KWTQtSqlDataSourceEditor::tableChanged(int item)
+void KWQtSqlDataSourceEditor::tableChanged(int item)
{
tableName=widget->tableCombo->text(item);
TQSqlCursor *tmpCursor=new TQSqlCursor(tableName,true,db->database);
@@ -188,7 +188,7 @@ void KWTQtSqlDataSourceEditor::tableChanged(int item)
widget->DataTable->refresh(TQDataTable::RefreshAll);
}
-void KWTQtSqlDataSourceEditor::updateTableCombo()
+void KWQtSqlDataSourceEditor::updateTableCombo()
{
widget->tableCombo->clear();
if (!db->database) return;
@@ -196,7 +196,7 @@ void KWTQtSqlDataSourceEditor::updateTableCombo()
widget->tableCombo->insertStringList(db->database->tables());
}
-void KWTQtSqlDataSourceEditor::slotSetQuery()
+void KWQtSqlDataSourceEditor::slotSetQuery()
{
db->tableName=tableName;
db->filter=filter;
@@ -204,15 +204,15 @@ void KWTQtSqlDataSourceEditor::slotSetQuery()
}
-void KWTQtSqlDataSourceEditor::editFilter()
+void KWQtSqlDataSourceEditor::editFilter()
{
- KWTQtSqlEasyFilter *f=new KWTQtSqlEasyFilter(static_cast<TQWidget*>(tqparent()));
+ KWQtSqlEasyFilter *f=new KWQtSqlEasyFilter(static_cast<TQWidget*>(tqparent()));
f->exec();
}
extern "C" {
KWORD_MAILMERGE_EXPORT KWMailMergeDataSource *create_kwmailmerge_qtsqldb(KInstance *inst,TQObject *tqparent)
{
- return new KWTQtSqlSerialDataSource(inst,tqparent);
+ return new KWQtSqlSerialDataSource(inst,tqparent);
}
}