From f0de9e167e289ab7dc33e57f077c1f04ec7c68c8 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 19 Dec 2011 11:38:41 -0600 Subject: Remove additional unneeded tq method conversions --- kpresenter/KPrPage.cpp | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'kpresenter/KPrPage.cpp') diff --git a/kpresenter/KPrPage.cpp b/kpresenter/KPrPage.cpp index d8e65bac..3eff9180 100644 --- a/kpresenter/KPrPage.cpp +++ b/kpresenter/KPrPage.cpp @@ -524,7 +524,7 @@ TQDomElement KPrPage::save( TQDomDocument &doc ) TQString KPrPage::oasisNamePage( int posPage ) const { - return ( m_manualTitle.isEmpty() ? TQString( "page%1" ).tqarg( posPage ) : m_manualTitle ); + return ( m_manualTitle.isEmpty() ? TQString( "page%1" ).arg( posPage ) : m_manualTitle ); } bool KPrPage::saveOasisPage( KoStore *store, KoXmlWriter &xmlWriter, int posPage, KoSavingContext& context, @@ -881,7 +881,7 @@ void KPrPage::unifyObjectName( KPrObject *object ) { if ( rx.search( objectName ) != -1 ) { objectName.remove( rx ); } - objectName += TQString(" (%1)").tqarg( count ); + objectName += TQString(" (%1)").arg( count ); object->setObjectName( objectName ); } } @@ -930,7 +930,7 @@ void KPrPage::appendObjects( const TQValueList &objects ) if ( usedPageNames.contains( objectName ) ) { usedPageNames[objectName]++; - objectName += TQString(" (%1)").tqarg( usedPageNames[objectName] ); + objectName += TQString(" (%1)").arg( usedPageNames[objectName] ); ( *oIt )->setObjectName( objectName ); } m_objectList.append( *oIt ); @@ -1065,7 +1065,7 @@ void KPrPage::pasteObjs( const TQByteArray & data,int nbCopy, double angle, _tempObj->moveBy( moveX*(double)mod,moveY*(double)mod); _tempObj->setSelected( true ); if ( angle == 0.0 || (increaseY == 0.0 && increaseX == 0.0)) - m_doc->tqrepaint(_tempObj); + m_doc->repaint(_tempObj); } if ( angle != 0.0) @@ -1344,14 +1344,14 @@ KPrTextObject* KPrPage::insertTextObject( const KoRect& r, const TQString& text KPrTextObject *kptextobject = new KPrTextObject( m_doc ); insertObject( i18n( "Insert Textbox" ), kptextobject, r ); //TODO create macro command : now insertObject can return KCommand - //TODO fix tqrepaint object + //TODO fix repaint object if ( !text.isEmpty() ) { KPrTextView *view = kptextobject->createKPTextView( _view ? _view->getCanvas() : 0L ); view->insertText( text ); view->terminate(); delete view; - m_doc->tqrepaint( kptextobject ); + m_doc->repaint( kptextobject ); } return kptextobject; } @@ -1461,7 +1461,7 @@ KPrPartObject* KPrPage::insertObject( const KoRect& _rect, KoDocumentEntry& _e ) insertObject( i18n( "Embed Object" ), kppartobject, _rect ); //emit sig_insertObject( ch, kppartobject ); - m_doc->tqrepaint( false ); + m_doc->repaint( false ); return kppartobject; } @@ -1534,7 +1534,7 @@ void KPrPage::slotRepaintVariable() for ( ; it.current() ; ++it ) { if ( it.current()->getType() == OT_TEXT ) - m_doc->tqrepaint( it.current() ); + m_doc->repaint( it.current() ); } } @@ -1545,7 +1545,7 @@ void KPrPage::recalcPageNum() { if ( it.current()->getType() == OT_TEXT ) { ( (KPrTextObject*)it.current() )->recalcPageNum( this ); - m_doc->tqrepaint( it.current() ); // TODO only if something changed + m_doc->repaint( it.current() ); // TODO only if something changed } } } @@ -1605,7 +1605,7 @@ void KPrPage::insertPicture( const TQString &filename, const KoPoint &pos ) //kdDebug(33001) << k_funcinfo << "Size: " << w << ", " << h << endl; kppixmapobject->setOrig(0,0); kppixmapobject->setSize(w, h); - m_doc->tqrepaint( false ); + m_doc->repaint( false ); } } @@ -1883,7 +1883,7 @@ TQString KPrPage::pageTitle( const TQString &_title ) const { // MASTERPAGE if ( m_masterPage ) - title = i18n( "Slide %1" ).tqarg( m_doc->pageList().findRef( this ) + 1 ); + title = i18n( "Slide %1" ).arg( m_doc->pageList().findRef( this ) + 1 ); else title = i18n( "Slide Master" ); } @@ -1990,7 +1990,7 @@ void KPrPage::deSelectAllObj() void KPrPage::deSelectObj( KPrObject *kpobject ) { kpobject->setSelected( false ); - m_doc->tqrepaint( kpobject ); + m_doc->repaint( kpobject ); } TQDomElement KPrPage::saveObjects( TQDomDocument &doc, TQDomElement &objects, double yoffset, @@ -2158,8 +2158,8 @@ KCommand *KPrPage::moveObject(KPrView *_view, double diffx, double diffy) _objects.append( it.current() ); TQRect br = _view->zoomHandler()->zoomRect( it.current()->getRepaintRect() ); br.moveBy( _view->zoomHandler()->zoomItX( diffx ), _view->zoomHandler()->zoomItY( diffy ) ); - m_doc->tqrepaint( br ); // Previous position - m_doc->tqrepaint( it.current() ); // New position + m_doc->repaint( br ); // Previous position + m_doc->repaint( it.current() ); // New position createCommand=true; } } @@ -2189,8 +2189,8 @@ KCommand *KPrPage::moveObject(KPrView *m_view,const KoPoint &_move,bool key) it.current()->moveBy( _move ); _objects.append( it.current() ); - m_doc->tqrepaint( oldBoundingRect ); - m_doc->tqrepaint( it.current() ); + m_doc->repaint( oldBoundingRect ); + m_doc->repaint( it.current() ); } } @@ -2208,7 +2208,7 @@ void KPrPage::repaintObj() for ( ; it.current() ; ++it ) { if(it.current()->isSelected()) - m_doc->tqrepaint(it.current() ); + m_doc->repaint(it.current() ); } } @@ -2388,7 +2388,7 @@ void KPrPage::reactivateBgSpellChecking(bool refreshTextObj) { static_cast( oIt.current() )->textObject()->setNeedSpellCheck(true); if(refreshTextObj) - m_doc->tqrepaint( oIt.current() ); + m_doc->repaint( oIt.current() ); } } } @@ -2446,7 +2446,7 @@ void KPrPage::changeTabStopValue ( double _tabStop ) { obj->textDocument()->setTabStops( m_doc->zoomHandler()->ptToLayoutUnitPixX( _tabStop )); obj->tqlayout(); - m_doc->tqrepaint( obj ); + m_doc->repaint( obj ); } } } -- cgit v1.2.1