diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:32:11 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:32:11 -0600 |
commit | 94844816550ad672ccfcdc25659c625546239998 (patch) | |
tree | e35fc60fd736c645d59f6408af032774ad8023d3 /kspread/kspread_sheetprint.cc | |
parent | 2a811c38c74c03648ecf857e566c44483cbad706 (diff) | |
download | koffice-94844816550ad672ccfcdc25659c625546239998.tar.gz koffice-94844816550ad672ccfcdc25659c625546239998.zip |
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'kspread/kspread_sheetprint.cc')
-rw-r--r-- | kspread/kspread_sheetprint.cc | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/kspread/kspread_sheetprint.cc b/kspread/kspread_sheetprint.cc index c3c12117..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 ), @@ -1273,7 +1273,7 @@ TQString SheetPrint::completeHeading( const TQString &_data, int _page, const TQ fileName=""; TQString t(TQTime::currentTime().toString()); - TQString d(TQDate::tqcurrentDate().toString()); + TQString d(TQDate::currentDate().toString()); TQString ta; if ( !_sheet.isEmpty() ) ta = _sheet; @@ -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; |