summaryrefslogtreecommitdiffstats
path: root/tqtinterface/qt4/src/sql/tqsqlrecord.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tqtinterface/qt4/src/sql/tqsqlrecord.cpp')
-rw-r--r--tqtinterface/qt4/src/sql/tqsqlrecord.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/tqtinterface/qt4/src/sql/tqsqlrecord.cpp b/tqtinterface/qt4/src/sql/tqsqlrecord.cpp
index c082d16..00a7acc 100644
--- a/tqtinterface/qt4/src/sql/tqsqlrecord.cpp
+++ b/tqtinterface/qt4/src/sql/tqsqlrecord.cpp
@@ -137,7 +137,7 @@ public:
{
return cnt;
}
- bool tqcontains( int i ) const
+ bool contains( int i ) const
{
return i >= 0 && i < (int)fi.count() && fi[ i ].isValid();
}
@@ -302,7 +302,7 @@ int TQSqlRecord::position( const TQString& name ) const
return i;
}
#ifdef TQT_CHECK_RANGE
- qWarning( "TQSqlRecord::position: unable to tqfind field %s", name.latin1() );
+ qWarning( "TQSqlRecord::position: unable to find field %s", name.latin1() );
#endif
return -1;
}
@@ -315,7 +315,7 @@ int TQSqlRecord::position( const TQString& name ) const
TQSqlField* TQSqlRecord::field( int i )
{
checkDetach();
- if ( !sh->d->tqcontains( i ) ) {
+ if ( !sh->d->contains( i ) ) {
#ifdef TQT_CHECK_RANGE
qWarning( "TQSqlRecord::field: index out of range: %d", i );
#endif
@@ -334,7 +334,7 @@ TQSqlField* TQSqlRecord::field( int i )
TQSqlField* TQSqlRecord::field( const TQString& name )
{
checkDetach();
- if ( !sh->d->tqcontains( position( name ) ) )
+ if ( !sh->d->contains( position( name ) ) )
return 0;
return &sh->d->fieldInfo( position( name ) )->field;
}
@@ -346,7 +346,7 @@ TQSqlField* TQSqlRecord::field( const TQString& name )
const TQSqlField* TQSqlRecord::field( int i ) const
{
- if ( !sh->d->tqcontains( i ) ) {
+ if ( !sh->d->contains( i ) ) {
#ifdef TQT_CHECK_RANGE
qWarning( "TQSqlRecord::field: index out of range: %d", i );
#endif // TQT_CHECK_RANGE
@@ -364,7 +364,7 @@ const TQSqlField* TQSqlRecord::field( int i ) const
const TQSqlField* TQSqlRecord::field( const TQString& name ) const
{
- if( !sh->d->tqcontains( position( name ) ) )
+ if( !sh->d->contains( position( name ) ) )
return 0;
return &sh->d->fieldInfo( position( name ) )->field;
}
@@ -384,7 +384,7 @@ void TQSqlRecord::append( const TQSqlField& field )
exists at \a pos, it is removed.
*/
-void TQSqlRecord::insert( int pos, const TQSqlField& field ) // ### 4.0: rename to ::tqreplace
+void TQSqlRecord::insert( int pos, const TQSqlField& field ) // ### 4.0: rename to ::replace
{
checkDetach();
sh->d->insert( pos, field );
@@ -429,7 +429,7 @@ bool TQSqlRecord::isEmpty() const
otherwise returns FALSE.
*/
-bool TQSqlRecord::tqcontains( const TQString& name ) const
+bool TQSqlRecord::contains( const TQString& name ) const
{
for ( uint i = 0; i < count(); ++i ) {
if ( fieldName(i).upper() == name.upper() )
@@ -695,8 +695,8 @@ void TQSqlRecord::setValue( const TQString& name, const TQVariant& val )
\module sql
This class is a TQValueList that holds a set of database field meta
- data. Use tqcontains() to see if a given field name exists in the
- record, and use tqfind() to get a TQSqlFieldInfo record for a named
+ data. Use contains() to see if a given field name exists in the
+ record, and use find() to get a TQSqlFieldInfo record for a named
field.
\sa TQValueList, TQSqlFieldInfo
@@ -718,7 +718,7 @@ TQSqlRecordInfo::TQSqlRecordInfo( const TQSqlRecord& other )
Returns the number of times a field called \a fieldName occurs in
the record. Returns 0 if no field by that name could be found.
*/
-TQSqlRecordInfo::size_type TQSqlRecordInfo::tqcontains( const TQString& fieldName ) const
+TQSqlRecordInfo::size_type TQSqlRecordInfo::contains( const TQString& fieldName ) const
{
size_type i = 0;
TQString fName = fieldName.upper();
@@ -735,7 +735,7 @@ TQSqlRecordInfo::size_type TQSqlRecordInfo::tqcontains( const TQString& fieldNam
which has the field name \a fieldName. If no matching field is
found then an empty TQSqlFieldInfo object is returned.
*/
-TQSqlFieldInfo TQSqlRecordInfo::tqfind( const TQString& fieldName ) const
+TQSqlFieldInfo TQSqlRecordInfo::find( const TQString& fieldName ) const
{
TQString fName = fieldName.upper();
for( const_iterator it = begin(); it != end(); ++it ) {