diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-19 11:38:41 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-19 11:38:41 -0600 |
commit | f0de9e167e289ab7dc33e57f077c1f04ec7c68c8 (patch) | |
tree | 1fc538e179833e62caec21956bfe47a252be5a72 /kspread/kspread_sheetprint.cc | |
parent | 11191ef0b9908604d1d7aaca382b011ef22c454c (diff) | |
download | koffice-f0de9e167e289ab7dc33e57f077c1f04ec7c68c8.tar.gz koffice-f0de9e167e289ab7dc33e57f077c1f04ec7c68c8.zip |
Remove additional unneeded tq method conversions
Diffstat (limited to 'kspread/kspread_sheetprint.cc')
-rw-r--r-- | kspread/kspread_sheetprint.cc | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/kspread/kspread_sheetprint.cc b/kspread/kspread_sheetprint.cc index 6f9a4f8b..a70445eb 100644 --- a/kspread/kspread_sheetprint.cc +++ b/kspread/kspread_sheetprint.cc @@ -126,8 +126,8 @@ TQRect SheetPrint::cellsPrintRange() } } - // Now look at the tqchildren - TQPtrListIterator<KoDocumentChild> cit( m_pDoc->tqchildren() ); + // Now look at the children + TQPtrListIterator<KoDocumentChild> cit( m_pDoc->children() ); double dummy; int i; for( ; cit.current(); ++cit ) @@ -190,7 +190,7 @@ bool SheetPrint::pageNeedsPrinting( TQRect& page_range ) } // filled = true; - //Page empty, but maybe tqchildren on it? + //Page empty, but maybe children on it? TQRect intView = TQRect( TQPoint( m_pDoc->zoomItX( m_pSheet->dblColumnPos( page_range.left() ) ), m_pDoc->zoomItY( m_pSheet->dblRowPos( page_range.top() ) ) ), @@ -199,7 +199,7 @@ bool SheetPrint::pageNeedsPrinting( TQRect& page_range ) m_pDoc->zoomItY( m_pSheet->dblRowPos( page_range.bottom() ) + m_pSheet->rowFormat( page_range.bottom() )->dblHeight() ) ) ); - TQPtrListIterator<KoDocumentChild> it( m_pDoc->tqchildren() ); + TQPtrListIterator<KoDocumentChild> it( m_pDoc->children() ); for( ;it.current(); ++it ) { TQRect bound = it.current()->boundingRect(); @@ -295,7 +295,7 @@ bool SheetPrint::print( TQPainter &painter, KPrinter *_printer ) ( obj->getType() == OBJECT_CHART && m_bPrintCharts ) ) ) continue; - TQRect zoomRect = m_pDoc->zoomRect( itObject.current()->tqgeometry() ); + TQRect zoomRect = m_pDoc->zoomRect( itObject.current()->geometry() ); TQPixmap *p = new TQPixmap( zoomRect.size() ); TQPainter painter(p); painter.fillRect( p->rect(), TQColor("white") ); @@ -575,24 +575,24 @@ void SheetPrint::printRect( TQPainter& painter, const KoPoint& topLeft, } // - // Draw the tqchildren + // Draw the children // TQRect zoomedView = m_pDoc->zoomRect( view ); - //TQPtrListIterator<KoDocumentChild> it( m_pDoc->tqchildren() ); + //TQPtrListIterator<KoDocumentChild> it( m_pDoc->children() ); //TQPtrListIterator<EmbeddedObject> itObject( m_pDoc->embeddedObjects() ); TQValueList<PrintObject *>::iterator itObject; for ( itObject = m_printObjects.begin(); itObject != m_printObjects.end(); ++itObject ) { EmbeddedObject *obj = (*itObject)->obj; // TQString tmp=TQString("Testing child %1/%2 %3/%4 against view %5/%6 %7/%8") -// .tqarg(it.current()->contentRect().left()) -// .tqarg(it.current()->contentRect().top()) -// .tqarg(it.current()->contentRect().right()) -// .tqarg(it.current()->contentRect().bottom()) -// .tqarg(view.left()).tqarg(view.top()).tqarg(zoomedView.right()).tqarg(zoomedView.bottom()); +// .arg(it.current()->contentRect().left()) +// .arg(it.current()->contentRect().top()) +// .arg(it.current()->contentRect().right()) +// .arg(it.current()->contentRect().bottom()) +// .arg(view.left()).arg(view.top()).arg(zoomedView.right()).arg(zoomedView.bottom()); // kdDebug(36001)<<tmp<<" offset "<<_childOffset.x()<<"/"<<_childOffset.y()<<endl; - KoRect const bound = obj->tqgeometry(); + KoRect const bound = obj->geometry(); TQRect zoomedBound = m_pDoc->zoomRect( KoRect(bound.left(), bound.top(), bound.width(), bound.height() ) ); @@ -614,14 +614,14 @@ void SheetPrint::printRect( TQPainter& painter, const KoPoint& topLeft, -zoomedView.top() + m_pDoc->zoomItY( topLeft.y() ) ); //obj->draw( &painter ); - painter.drawPixmap( m_pDoc->zoomRect( obj->tqgeometry() ).topLeft(), *(*itObject)->p ); //draw the cached object + painter.drawPixmap( m_pDoc->zoomRect( obj->geometry() ).topLeft(), *(*itObject)->p ); //draw the cached object //painter.fillRect(zoomedBound, TQBrush("red")); //for debug purpose painter.restore(); } } - //Don't let obscuring cells and tqchildren overpaint this area + //Don't let obscuring cells and children overpaint this area clipRegion -= TQRegion ( m_pDoc->zoomItX( leftBorderPts() + topLeft.x() ), m_pDoc->zoomItY( topBorderPts() + topLeft.y() ), m_pDoc->zoomItX( xpos ), @@ -1303,7 +1303,7 @@ TQString SheetPrint::completeHeading( const TQString &_data, int _page, const TQ full_name=p->pw_gecos; if( email_addr.isEmpty()) - email_addr = TQString("%1@%2").tqarg(p->pw_name).tqarg(hostname); + email_addr = TQString("%1@%2").arg(p->pw_name).arg(hostname); tmp = _data; int pos = 0; |