From eaa7ee2e0bbca40ba3173c4304f81957e8964291 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Tue, 9 Aug 2011 22:25:47 -0500 Subject: rename the following methods: tqfind find tqreplace replace tqcontains contains --- tqtinterface/qt4/src/attic/qttableview.cpp | 50 +++++++++++++++--------------- 1 file changed, 25 insertions(+), 25 deletions(-) (limited to 'tqtinterface/qt4/src/attic/qttableview.cpp') diff --git a/tqtinterface/qt4/src/attic/qttableview.cpp b/tqtinterface/qt4/src/attic/qttableview.cpp index 0872fa6..34499aa 100644 --- a/tqtinterface/qt4/src/attic/qttableview.cpp +++ b/tqtinterface/qt4/src/attic/qttableview.cpp @@ -6,7 +6,7 @@ ** ** Copyright (C) 2010 Timothy Pearson and (C) 1992-2008 Trolltech ASA. ** -** This file tqcontains a class moved out of the TQt GUI Toolkit API. It +** This file contains a class moved out of the TQt GUI Toolkit API. It ** may be used, distributed and modified without limitation. ** **********************************************************************/ @@ -216,8 +216,8 @@ void TQtTableView::show() Erases the view area \a (x,y,w,h) if \a erase is TRUE. Parameters \a (x,y) are in \e widget coordinates. - If \a w is negative, it is tqreplaced with width() - x. - If \a h is negative, it is tqreplaced with height() - y. + If \a w is negative, it is replaced with width() - x. + If \a h is negative, it is replaced with height() - y. Doing a tqrepaint() usually is faster than doing an update(), but calling update() many times in a row will generate a single paint @@ -999,7 +999,7 @@ TQRect TQtTableView::viewRect() const int TQtTableView::lastRowVisible() const { int cellMaxY; - int row = tqfindRawRow( maxViewY(), &cellMaxY ); + int row = findRawRow( maxViewY(), &cellMaxY ); if ( row == -1 || row >= nRows ) { // maxViewY() past end? row = nRows - 1; // yes: return last row } else { @@ -1026,7 +1026,7 @@ int TQtTableView::lastRowVisible() const int TQtTableView::lastColVisible() const { int cellMaxX; - int col = tqfindRawCol( maxViewX(), &cellMaxX ); + int col = findRawCol( maxViewX(), &cellMaxX ); if ( col == -1 || col >= nCols ) { // maxViewX() past end? col = nCols - 1; // yes: return last col } else { @@ -1278,7 +1278,7 @@ void TQtTableView::paintEvent( TQPaintEvent *e ) TQPainter paint( this ); - if ( !contentsRect().tqcontains( updateR, TRUE ) ) {// update frame ? + if ( !contentsRect().contains( updateR, TRUE ) ) {// update frame ? drawFrame( &paint ); if ( updateR.left() < frameWidth() ) //### updateR.setLeft( frameWidth() ); @@ -1295,8 +1295,8 @@ void TQtTableView::paintEvent( TQPaintEvent *e ) setupPainter( &paint ); // prepare for painting table - int firstRow = tqfindRow( updateR.y() ); - int firstCol = tqfindCol( updateR.x() ); + int firstRow = findRow( updateR.y() ); + int firstCol = findCol( updateR.x() ); int xStart, yStart; if ( !colXPos( firstCol, &xStart ) || !rowYPos( firstRow, &yStart ) ) { paint.eraseRect( updateR ); // erase area outside cells but in view @@ -1341,7 +1341,7 @@ void TQtTableView::paintEvent( TQPaintEvent *e ) matrix.translate( xPos, yPos ); paint.setWorldMatrix( matrix ); if ( testTableFlags(Tbl_clipCellPainting) || - frameWidth() > 0 && !winR.tqcontains( cellR ) ) { //##arnt + frameWidth() > 0 && !winR.contains( cellR ) ) { //##arnt paint.setClipRect( cellUR ); paintCell( &paint, row, col ); paint.setClipping( FALSE ); @@ -1353,7 +1353,7 @@ void TQtTableView::paintEvent( TQPaintEvent *e ) #else paint.translate( xPos, yPos ); if ( testTableFlags(Tbl_clipCellPainting) || - frameWidth() > 0 && !winR.tqcontains( cellR ) ) { //##arnt + frameWidth() > 0 && !winR.contains( cellR ) ) { //##arnt paint.setClipRect( cellUR ); paintCell( &paint, row, col ); paint.setClipping( FALSE ); @@ -1430,7 +1430,7 @@ void TQtTableView::updateView() /* Returns a pointer to the vertical scroll bar mainly so you can connect() to its Q_SIGNALS. Note that the scroll bar works in pixel - values; use tqfindRow() to translate to cell numbers. + values; use findRow() to translate to cell numbers. */ TQScrollBar *TQtTableView::verticalScrollBar() const @@ -1461,7 +1461,7 @@ TQScrollBar *TQtTableView::verticalScrollBar() const /* Returns a pointer to the horizontal scroll bar mainly so you can connect() to its Q_SIGNALS. Note that the scroll bar works in pixel - values; use tqfindCol() to translate to cell numbers. + values; use findCol() to translate to cell numbers. */ TQScrollBar *TQtTableView::horizontalScrollBar() const @@ -1569,7 +1569,7 @@ void TQtTableView::setVerScrollBar( bool on, bool update ) -int TQtTableView::tqfindRawRow( int yPos, int *cellMaxY, int *cellMinY, +int TQtTableView::findRawRow( int yPos, int *cellMaxY, int *cellMinY, bool goOutsideView ) const { int r = -1; @@ -1578,7 +1578,7 @@ int TQtTableView::tqfindRawRow( int yPos, int *cellMaxY, int *cellMinY, if ( goOutsideView || yPos >= minViewY() && yPos <= maxViewY() ) { if ( yPos < minViewY() ) { #if defined(TQT_CHECK_RANGE) - qWarning( "TQtTableView::tqfindRawRow: (%s) internal error: " + qWarning( "TQtTableView::findRawRow: (%s) internal error: " "yPos < minViewY() && goOutsideView " "not supported. (%d,%d)", name( "unnamed" ), yPos, yOffs ); @@ -1616,7 +1616,7 @@ int TQtTableView::tqfindRawRow( int yPos, int *cellMaxY, int *cellMinY, } -int TQtTableView::tqfindRawCol( int xPos, int *cellMaxX, int *cellMinX , +int TQtTableView::findRawCol( int xPos, int *cellMaxX, int *cellMinX , bool goOutsideView ) const { int c = -1; @@ -1625,7 +1625,7 @@ int TQtTableView::tqfindRawCol( int xPos, int *cellMaxX, int *cellMinX , if ( goOutsideView || xPos >= minViewX() && xPos <= maxViewX() ) { if ( xPos < minViewX() ) { #if defined(TQT_CHECK_RANGE) - qWarning( "TQtTableView::tqfindRawCol: (%s) internal error: " + qWarning( "TQtTableView::findRawCol: (%s) internal error: " "xPos < minViewX() && goOutsideView " "not supported. (%d,%d)", name( "unnamed" ), xPos, xOffs ); @@ -1667,13 +1667,13 @@ int TQtTableView::tqfindRawCol( int xPos, int *cellMaxX, int *cellMinX , \e widget coordinates. Returns -1 if \a yPos is outside the valid range. - \sa tqfindCol(), rowYPos() + \sa findCol(), rowYPos() */ -int TQtTableView::tqfindRow( int yPos ) const +int TQtTableView::findRow( int yPos ) const { int cellMaxY; - int row = tqfindRawRow( yPos, &cellMaxY ); + int row = findRawRow( yPos, &cellMaxY ); if ( testTableFlags(Tbl_cutCellsV) && cellMaxY > maxViewY() ) row = - 1; // cell cut by bottom margin if ( row >= nRows ) @@ -1687,13 +1687,13 @@ int TQtTableView::tqfindRow( int yPos ) const in \e widget coordinates. Returns -1 if \a xPos is outside the valid range. - \sa tqfindRow(), colXPos() + \sa findRow(), colXPos() */ -int TQtTableView::tqfindCol( int xPos ) const +int TQtTableView::findCol( int xPos ) const { int cellMaxX; - int col = tqfindRawCol( xPos, &cellMaxX ); + int col = findRawCol( xPos, &cellMaxX ); if ( testTableFlags(Tbl_cutCellsH) && cellMaxX > maxViewX() ) col = - 1; // cell cut by right margin if ( col >= nCols ) @@ -1709,7 +1709,7 @@ int TQtTableView::tqfindCol( int xPos ) const coordinates) if the row is visible. Returns FALSE and does not modify \a *yPos if \a row is invisible or invalid. - \sa colXPos(), tqfindRow() + \sa colXPos(), findRow() */ bool TQtTableView::rowYPos( int row, int *yPos ) const @@ -1749,7 +1749,7 @@ bool TQtTableView::rowYPos( int row, int *yPos ) const coordinates) if the column is visible. Returns FALSE and does not modify \a *xPos if \a col is invisible or invalid. - \sa rowYPos(), tqfindCol() + \sa rowYPos(), findCol() */ bool TQtTableView::colXPos( int col, int *xPos ) const @@ -1785,7 +1785,7 @@ bool TQtTableView::colXPos( int col, int *xPos ) const Moves the visible area of the table right by \a xPixels and down by \a yPixels pixels. Both may be negative. - \warning You might tqfind that TQScrollView offers a higher-level of + \warning You might find that TQScrollView offers a higher-level of functionality than using TQtTableView and this function. This function is \e not the same as TQWidget::scroll(); in particular, -- cgit v1.2.1