summaryrefslogtreecommitdiffstats
path: root/kword/mailmerge/sql/KWMySqlCursor.h
diff options
context:
space:
mode:
Diffstat (limited to 'kword/mailmerge/sql/KWMySqlCursor.h')
-rw-r--r--kword/mailmerge/sql/KWMySqlCursor.h48
1 files changed, 24 insertions, 24 deletions
diff --git a/kword/mailmerge/sql/KWMySqlCursor.h b/kword/mailmerge/sql/KWMySqlCursor.h
index e5e998b6e..a7843f6a9 100644
--- a/kword/mailmerge/sql/KWMySqlCursor.h
+++ b/kword/mailmerge/sql/KWMySqlCursor.h
@@ -17,12 +17,12 @@
* Boston, MA 02110-1301, USA.
*/
-#ifndef _SERIALLETTER_QtSql_SQLCURSOR_H_
-#define _SERIALLETTER_QtSql_SQLCURSOR_H_
+#ifndef _SERIALLETTER_TQtSql_STQLCURSOR_H_
+#define _SERIALLETTER_TQtSql_STQLCURSOR_H_
/* FOR THE DIRTY HACK */
-#include <qsqlcursor.h>
-#include <qsqldriver.h>
+#include <tqsqlcursor.h>
+#include <tqsqldriver.h>
/* END FOR THE DIRTY HACK */
/******************************************************************
@@ -34,35 +34,35 @@
-class KWMySqlCursor: public QSqlCursor
+class KWMySqlCursor: public TQSqlCursor
{
public:
- KWMySqlCursor( const QString & query = QString::null, bool autopopulate =
-TRUE, QSqlDatabase* db = 0 ): QSqlCursor( QString::null, autopopulate, db )
+ KWMySqlCursor( const TQString & query = TQString(), bool autopopulate =
+TRUE, TQSqlDatabase* db = 0 ): TQSqlCursor( TQString(), autopopulate, db )
{
exec( query );
if ( autopopulate )
- *(QSqlRecord*)this = ((QSqlQuery*)this)->driver()->record(
-*(QSqlQuery*)this );
- setMode( QSqlCursor::ReadOnly );
+ *(TQSqlRecord*)this = ((TQSqlQuery*)this)->driver()->record(
+*(TQSqlQuery*)this );
+ setMode( TQSqlCursor::ReadOnly );
}
- KWMySqlCursor( const KWMySqlCursor & other ): QSqlCursor( other ) {}
- KWMySqlCursor( const QSqlQuery & query, bool autopopulate = TRUE ):
-QSqlCursor( QString::null, autopopulate )
+ KWMySqlCursor( const KWMySqlCursor & other ): TQSqlCursor( other ) {}
+ KWMySqlCursor( const TQSqlQuery & query, bool autopopulate = TRUE ):
+TQSqlCursor( TQString(), autopopulate )
{
- *(QSqlQuery*)this = query;
+ *(TQSqlQuery*)this = query;
if ( autopopulate )
- *(QSqlRecord*)this = query.driver()->record( query );
- setMode( QSqlCursor::ReadOnly );
+ *(TQSqlRecord*)this = query.driver()->record( query );
+ setMode( TQSqlCursor::ReadOnly );
}
- bool select( const QString & /*filter*/, const QSqlIndex & /*sort*/ =
-QSqlIndex() ) { return exec( lastQuery() ); }
- QSqlIndex primaryIndex( bool /*prime*/ = TRUE ) const { return
-QSqlIndex(); }
- int insert( bool /*invalidate*/ = TRUE ) { return FALSE; }
- int update( bool /*invalidate*/ = TRUE ) { return FALSE; }
- int del( bool /*invalidate*/ = TRUE ) { return FALSE; }
- void setName( const QString& /*name*/, bool /*autopopulate*/ = TRUE ) {}
+ bool select( const TQString & /*filter*/, const TQSqlIndex & /*sort*/ =
+TQSqlIndex() ) { return exec( lastQuery() ); }
+ TQSqlIndex primaryIndex( bool /*prime*/ = TRUE ) const { return
+TQSqlIndex(); }
+ int insert( bool /*tqinvalidate*/ = TRUE ) { return FALSE; }
+ int update( bool /*tqinvalidate*/ = TRUE ) { return FALSE; }
+ int del( bool /*tqinvalidate*/ = TRUE ) { return FALSE; }
+ void setName( const TQString& /*name*/, bool /*autopopulate*/ = TRUE ) {}
};