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_doc.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_doc.cc')
-rw-r--r-- | kspread/kspread_doc.cc | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/kspread/kspread_doc.cc b/kspread/kspread_doc.cc index 188dbe2e..ea698845 100644 --- a/kspread/kspread_doc.cc +++ b/kspread/kspread_doc.cc @@ -218,7 +218,7 @@ Doc::Doc( TQWidget *parentWidget, const char *widgetName, TQObject* parent, cons if ( !name ) { TQString tmp( "Document%1" ); - tmp = tmp.tqarg( d->s_docId++ ); + tmp = tmp.arg( d->s_docId++ ); setName( tmp.local8Bit());//tmp.latin1() ); dcopObject(); } @@ -941,7 +941,7 @@ void Doc::saveOasisDocumentStyles( KoStore* store, KoGenStyles& mainStyles ) con styles = mainStyles.styles( KoGenStyle::STYLE_PAGELAYOUT ); it = styles.begin(); for ( ; it != styles.end() ; ++it ) { - (*it).style->writeStyle( stylesWriter, mainStyles, "style:page-tqlayout", (*it).name, "style:page-tqlayout-properties", false /*don't close*/ ); + (*it).style->writeStyle( stylesWriter, mainStyles, "style:page-layout", (*it).name, "style:page-layout-properties", false /*don't close*/ ); stylesWriter->endElement(); } @@ -998,7 +998,7 @@ bool Doc::loadOasis( const TQDomDocument& doc, KoOasisStyles& oasisStyles, const if ( localName.isEmpty() ) setErrorMessage( i18n( "Invalid OASIS OpenDocument file. No tag found inside office:body." ) ); else - setErrorMessage( i18n( "This document is not a spreadsheet, but %1. Please try opening it with the appropriate application." ).tqarg( KoDocument::tagNameToDocumentType( localName ) ) ); + setErrorMessage( i18n( "This document is not a spreadsheet, but %1. Please try opening it with the appropriate application." ).arg( KoDocument::tagNameToDocumentType( localName ) ) ); deleteLoadingInfo(); return false; } @@ -1086,7 +1086,7 @@ bool Doc::loadXML( TQIODevice *, const TQDomDocument& doc ) if ( spread.attribute( "mime" ) != "application/x-kspread" && spread.attribute( "mime" ) != "application/vnd.kde.kspread" ) { d->isLoading = false; - setErrorMessage( i18n( "Invalid document. Expected mimetype application/x-kspread or application/vnd.kde.kspread, got %1" ).tqarg( spread.attribute("mime") ) ); + setErrorMessage( i18n( "Invalid document. Expected mimetype application/x-kspread or application/vnd.kde.kspread, got %1" ).arg( spread.attribute("mime") ) ); return false; } @@ -1095,7 +1095,7 @@ bool Doc::loadXML( TQIODevice *, const TQDomDocument& doc ) { int ret = KMessageBox::warningContinueCancel( 0, i18n("This document was created with a newer version of KSpread (syntax version: %1)\n" - "When you open it with this version of KSpread, some information may be lost.").tqarg(d->syntaxVersion), + "When you open it with this version of KSpread, some information may be lost.").arg(d->syntaxVersion), i18n("File Format Mismatch"), KStdGuiItem::cont() ); if ( ret == KMessageBox::Cancel ) { @@ -1179,7 +1179,7 @@ bool Doc::loadXML( TQIODevice *, const TQDomDocument& doc ) return false; } - //Backwards compatibility with older versions for paper tqlayout + //Backwards compatibility with older versions for paper layout if ( d->syntaxVersion < 1 ) { TQDomElement paper = spread.namedItem( "paper" ).toElement(); @@ -1549,7 +1549,7 @@ void Doc::setZoomAndResolution( int zoom, int dpiX, int dpiY ) void Doc::newZoomAndResolution( bool updateViews, bool /*forPrint*/ ) { -/* tqlayout(); +/* layout(); updateAllFrames();*/ if ( updateViews ) { @@ -1656,12 +1656,12 @@ void Doc::paintContent( TQPainter& painter, const TQRect& rect, if ( m_zoomedResolutionX != zoomX ) d_zoom *= ( zoomX / m_zoomedResolutionX ); - // KSpread support zoom, therefore no need to scale with tqworldMatrix - TQWMatrix matrix = painter.tqworldMatrix(); + // KSpread support zoom, therefore no need to scale with worldMatrix + TQWMatrix matrix = painter.worldMatrix(); matrix.setMatrix( 1, 0, 0, 1, matrix.dx(), matrix.dy() ); TQRect prect = rect; - prect.setWidth( (int) (prect.width() * painter.tqworldMatrix().m11()) ); - prect.setHeight( (int) (prect.height() * painter.tqworldMatrix().m22()) ); + prect.setWidth( (int) (prect.width() * painter.worldMatrix().m11()) ); + prect.setHeight( (int) (prect.height() * painter.worldMatrix().m22()) ); setZoomAndResolution( (int) ( d_zoom * 100 ), KoGlobal::dpiX(), KoGlobal::dpiY() ); // paint the content, now zoom is correctly set kdDebug(36001)<<"paintContent-------------------------------------\n"; @@ -1731,7 +1731,7 @@ void Doc::paintCellRegions(TQPainter& painter, const TQRect &viewRect, const Sheet* sheet, bool /*drawCursor*/) { // - // Clip away tqchildren + // Clip away children // TQRegion rgn = painter.clipRegion(); @@ -1746,10 +1746,10 @@ void Doc::paintCellRegions(TQPainter& painter, const TQRect &viewRect, - view->canvasWidget()->yOffset() ); } else { - matrix = painter.tqworldMatrix(); + matrix = painter.worldMatrix(); } -// TQPtrListIterator<KoDocumentChild> it( tqchildren() ); +// TQPtrListIterator<KoDocumentChild> it( children() ); // for( ; it.current(); ++it ) { // // if ( ((Child*)it.current())->sheet() == sheet && // // !m_pView->hasDocumentInWindow( it.current()->document() ) ) @@ -2192,7 +2192,7 @@ void Doc::emitBeginOperation(bool waitCursor) //are expected to be completed in a short time anyway. TQCursor* activeOverride = static_cast<TQCursor*>(TQApplication::overrideCursor()); - if (waitCursor && ( (!activeOverride) || (activeOverride->tqshape() != TQt::waitCursor.tqshape()) ) ) + if (waitCursor && ( (!activeOverride) || (activeOverride->shape() != TQt::waitCursor.shape()) ) ) { TQApplication::setOverrideCursor(TQt::waitCursor); } @@ -2200,7 +2200,7 @@ void Doc::emitBeginOperation(bool waitCursor) // /* just duplicate the current cursor on the stack, then */ // else if (TQApplication::overrideCursor() != NULL) // { -// TQApplication::setOverrideCursor(TQApplication::overrideCursor()->tqshape()); +// TQApplication::setOverrideCursor(TQApplication::overrideCursor()->shape()); // } KoDocument::emitBeginOperation(); @@ -2379,7 +2379,7 @@ KoPictureCollection *Doc::pictureCollection() return &d->m_pictureCollection; } -void Doc::tqrepaint( const TQRect& rect ) +void Doc::repaint( const TQRect& rect ) { TQRect r; TQPtrListIterator<KoView> it( views() ); @@ -2393,7 +2393,7 @@ void Doc::tqrepaint( const TQRect& rect ) } } -void Doc::tqrepaint( EmbeddedObject *obj ) +void Doc::repaint( EmbeddedObject *obj ) { TQPtrListIterator<KoView> it( views() ); for( ; it.current(); ++it ) @@ -2404,7 +2404,7 @@ void Doc::tqrepaint( EmbeddedObject *obj ) } } -void Doc::tqrepaint( const KoRect& rect ) +void Doc::repaint( const KoRect& rect ) { TQRect r; TQPtrListIterator<KoView> it( views() ); |