diff options
Diffstat (limited to 'tqtinterface/qt4/src/widgets/tqheader.cpp')
-rw-r--r-- | tqtinterface/qt4/src/widgets/tqheader.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tqtinterface/qt4/src/widgets/tqheader.cpp b/tqtinterface/qt4/src/widgets/tqheader.cpp index 67fb7f0..18d813d 100644 --- a/tqtinterface/qt4/src/widgets/tqheader.cpp +++ b/tqtinterface/qt4/src/widgets/tqheader.cpp @@ -196,7 +196,7 @@ public: \row \i 3 \i 1 \i 2 \endtable - In the example above, if we wanted to tqfind out which section is at + In the example above, if we wanted to find out which section is at index position 3 we'd call mapToSection(3) and get a section number of 1 since section 1 was moved. Similarly, if we wanted to know which index position section 2 occupied we'd call @@ -264,7 +264,7 @@ void TQHeader::showEvent( TQShowEvent *e ) This signal is emitted when the user has changed the size of a \a section from \a oldSize to \a newSize. This signal is typically - connected to a slot that repaints the table or list that tqcontains + connected to a slot that repaints the table or list that contains the header. */ @@ -499,15 +499,15 @@ void TQHeader::unMarkLine( int idx ) Use sectionAt() instead. - Returns the index at which the section is displayed, which tqcontains + Returns the index at which the section is displayed, which contains \a pos in widget coordinates, or -1 if \a pos is outside the header sections. */ /* - Tries to tqfind a line that is not a neighbor of \c handleIdx. + Tries to find a line that is not a neighbor of \c handleIdx. */ -int TQHeader::tqfindLine( int c ) +int TQHeader::findLine( int c ) { int i = 0; if ( c > d->lastPos || (reverse() && c < 0 )) { @@ -716,7 +716,7 @@ void TQHeader::mouseReleaseEvent( TQMouseEvent *e ) case Pressed: { int section = d->i2s[handleIdx]; emit released( section ); - if ( sRect( handleIdx ).tqcontains( e->pos() ) ) { + if ( sRect( handleIdx ).contains( e->pos() ) ) { oldHandleIdx = handleIdx; emit sectionClicked( handleIdx ); emit clicked( section ); @@ -747,7 +747,7 @@ void TQHeader::mouseReleaseEvent( TQMouseEvent *e ) emit released( section ); tqrepaint(); // a bit overkill, but removes the handle as well } else { - if ( sRect( handleIdx).tqcontains( e->pos() ) ) { + if ( sRect( handleIdx).contains( e->pos() ) ) { oldHandleIdx = handleIdx; emit released( section ); emit sectionClicked( handleIdx ); @@ -811,7 +811,7 @@ void TQHeader::mouseMoveEvent( TQMouseEvent *e ) handleColumnResize( handleIdx, c, FALSE, FALSE ); break; case Moving: { - int newPos = tqfindLine( pos ); + int newPos = findLine( pos ); if ( newPos != moveToIdx ) { if ( moveToIdx == handleIdx || moveToIdx == handleIdx + 1 ) tqrepaint( sRect(handleIdx) ); @@ -1104,7 +1104,7 @@ TQSize TQHeader::sectionSizeHint( int section, const TQFontMetrics& fm ) const TQRect bound; TQString *label = d->labels[section]; if ( label ) { - int lines = label->tqcontains( '\n' ) + 1; + int lines = label->contains( '\n' ) + 1; int w = 0; if (lines > 1) { bound.setHeight(fm.height() + fm.lineSpacing() * (lines - 1)); @@ -1733,7 +1733,7 @@ int TQHeader::sectionPos( int section ) const } /*! - Returns the index of the section which tqcontains the position \a + Returns the index of the section which contains the position \a pos given in pixels from the left (or top). \sa offset() |