summaryrefslogtreecommitdiffstats
path: root/tqtinterface/qt4/src/sql/tqdatatable.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tqtinterface/qt4/src/sql/tqdatatable.cpp')
-rw-r--r--tqtinterface/qt4/src/sql/tqdatatable.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/tqtinterface/qt4/src/sql/tqdatatable.cpp b/tqtinterface/qt4/src/sql/tqdatatable.cpp
index 496da9d..647c3a2 100644
--- a/tqtinterface/qt4/src/sql/tqdatatable.cpp
+++ b/tqtinterface/qt4/src/sql/tqdatatable.cpp
@@ -197,7 +197,7 @@ void qt_debug_buffer( const TQString& msg, TQSqlRecord* cursor )
The contents of a cell is available as a TQString with text() or as
a TQVariant with value(). The current record is returned by
- currentRecord(). Use the tqfind() function to search for a string in
+ currentRecord(). Use the find() function to search for a string in
the table.
Editing actions can be applied programatically. For example, the
@@ -377,7 +377,7 @@ void TQDataTable::setColumnWidth( int col, int w )
/*!
Resizes column \a col so that the column width is wide enough to
- display the widest item the column tqcontains (including the column
+ display the widest item the column contains (including the column
label). If the table's TQSqlCursor is not currently active, the
cursor will be refreshed before the column width is calculated. Be
aware that this function may be slow on tables that contain large
@@ -475,7 +475,7 @@ void TQDataTable::setSort( const TQStringList& sort )
\overload
Sets the sort to be applied to the displayed data to \a sort. If
- there is no current cursor, nothing happens. A TQSqlIndex tqcontains
+ there is no current cursor, nothing happens. A TQSqlIndex contains
field names and their ordering (ASC or DESC); these are used to
compose the ORDER BY clause.
@@ -821,7 +821,7 @@ void TQDataTable::contentsMousePressEvent( TQMouseEvent* e )
}
/*! \reimp */
-TQWidget* TQDataTable::beginEdit ( int row, int col, bool tqreplace )
+TQWidget* TQDataTable::beginEdit ( int row, int col, bool replace )
{
d->editRow = -1;
d->editCol = -1;
@@ -837,12 +837,12 @@ TQWidget* TQDataTable::beginEdit ( int row, int col, bool tqreplace )
// see comment in beginInsert()
bool fakeReadOnly = isColumnReadOnly( col );
setColumnReadOnly( col, FALSE );
- TQWidget* w = TQTable::beginEdit( row, col, tqreplace );
+ TQWidget* w = TQTable::beginEdit( row, col, replace );
setColumnReadOnly( col, fakeReadOnly );
return w;
}
if ( d->dat.mode() == TQSql::None && sqlCursor()->canUpdate() && sqlCursor()->primaryIndex().count() > 0 )
- return beginUpdate( row, col, tqreplace );
+ return beginUpdate( row, col, replace );
return 0;
}
@@ -1009,11 +1009,11 @@ bool TQDataTable::beginInsert()
\a row and \a col refer to the row and column in the TQDataTable.
- (\a tqreplace is provided for reimplementors and reflects the API of
+ (\a replace is provided for reimplementors and reflects the API of
TQTable::beginEdit().)
*/
-TQWidget* TQDataTable::beginUpdate ( int row, int col, bool tqreplace )
+TQWidget* TQDataTable::beginUpdate ( int row, int col, bool replace )
{
if ( !sqlCursor() || isReadOnly() || isColumnReadOnly( col ) )
return 0;
@@ -1023,7 +1023,7 @@ TQWidget* TQDataTable::beginUpdate ( int row, int col, bool tqreplace )
d->editBuffer = sqlCursor()->primeUpdate();
sqlCursor()->seek( currentRow() );
emit primeUpdate( d->editBuffer );
- return TQTable::beginEdit( row, col, tqreplace );
+ return TQTable::beginEdit( row, col, replace );
}
return 0;
}
@@ -1075,7 +1075,7 @@ bool TQDataTable::insertCurrent()
endInsert();
refresh();
TQSqlIndex idx = sqlCursor()->primaryIndex();
- tqfindBuffer( idx, d->lastAt );
+ findBuffer( idx, d->lastAt );
repaintContents( contentsX(), contentsY(), visibleWidth(), visibleHeight(), FALSE );
emit cursorChanged( TQSql::Insert );
}
@@ -1276,12 +1276,12 @@ TQSql::Confirm TQDataTable::confirmCancel( TQSql::Op m )
caseSensitive is FALSE the case of \a str will be ignored.
The search will wrap, i.e. if the first (or if backwards is TRUE,
- last) cell is reached without tqfinding \a str the search will
+ last) cell is reached without finding \a str the search will
continue until it reaches the starting cell. If \a str is not
found the search will fail and the current cell will remain
unchanged.
*/
-void TQDataTable::tqfind( const TQString & str, bool caseSensitive, bool backwards )
+void TQDataTable::find( const TQString & str, bool caseSensitive, bool backwards )
{
if ( !sqlCursor() )
return;
@@ -1312,7 +1312,7 @@ void TQDataTable::tqfind( const TQString & str, bool caseSensitive, bool backwar
if( !caseSensitive ){
text = text.lower();
}
- if( text.tqcontains( tmp ) ){
+ if( text.contains( tmp ) ){
setCurrentCell( row, i );
col = i;
found = TRUE;
@@ -2147,12 +2147,12 @@ void TQDataTable::refresh()
searching.
*/
-bool TQDataTable::tqfindBuffer( const TQSqlIndex& idx, int atHint )
+bool TQDataTable::findBuffer( const TQSqlIndex& idx, int atHint )
{
TQSqlCursor* cur = sqlCursor();
if ( !cur )
return FALSE;
- bool found = d->cur.tqfindBuffer( idx, atHint );
+ bool found = d->cur.findBuffer( idx, atHint );
if ( found )
setCurrentCell( cur->at(), currentColumn() );
return found;