diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-21 14:05:41 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-21 14:05:41 -0600 |
commit | 2d6954f69caf63ed5057bd8e1405a65d7d970292 (patch) | |
tree | 88e6436b2e81d4e68313f02a9021054252e14cc4 /kpresenter/KPrCanvas.cpp | |
parent | f0de9e167e289ab7dc33e57f077c1f04ec7c68c8 (diff) | |
download | koffice-2d6954f69caf63ed5057bd8e1405a65d7d970292.tar.gz koffice-2d6954f69caf63ed5057bd8e1405a65d7d970292.zip |
Rename obsolete tq methods to standard names
Diffstat (limited to 'kpresenter/KPrCanvas.cpp')
-rw-r--r-- | kpresenter/KPrCanvas.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/kpresenter/KPrCanvas.cpp b/kpresenter/KPrCanvas.cpp index 61c00c96..56a75516 100644 --- a/kpresenter/KPrCanvas.cpp +++ b/kpresenter/KPrCanvas.cpp @@ -481,7 +481,7 @@ void KPrCanvas::drawBackground( TQPainter *painter, const TQRect& rect, KPrPage // In edit mode we also want to draw the gray area out of the pages if ( !grayRegion.isEmpty() ) - eraseEmptySpace( painter, grayRegion, TQApplication::tqpalette().active().brush( TQColorGroup::Mid ) ); + eraseEmptySpace( painter, grayRegion, TQApplication::palette().active().brush( TQColorGroup::Mid ) ); } else { @@ -706,9 +706,9 @@ void KPrCanvas::mousePressEvent( TQMouseEvent *e ) } else if( e->button() == Qt::MidButton ) { - TQApplication::tqclipboard()->setSelectionMode( true ); + TQApplication::clipboard()->setSelectionMode( true ); m_currentTextObjectView->paste(); - TQApplication::tqclipboard()->setSelectionMode( false ); + TQApplication::clipboard()->setSelectionMode( false ); } return; } @@ -2723,9 +2723,9 @@ void KPrCanvas::setTextDepthPlus() m_view->kPresenterDoc()->addCommand( macroCmd ); if(!lst.isEmpty()) { - const KoParagLayout *tqlayout=lst.first()->currentParagLayoutFormat(); - m_view->showRulerIndent( tqlayout->margins[TQStyleSheetItem::MarginLeft], tqlayout->margins[TQStyleSheetItem::MarginFirstLine], - tqlayout->margins[TQStyleSheetItem::MarginRight], lst.first()->rtl()); + const KoParagLayout *layout=lst.first()->currentParagLayoutFormat(); + m_view->showRulerIndent( layout->margins[TQStyleSheetItem::MarginLeft], layout->margins[TQStyleSheetItem::MarginFirstLine], + layout->margins[TQStyleSheetItem::MarginRight], lst.first()->rtl()); } } @@ -2753,9 +2753,9 @@ void KPrCanvas::setTextDepthMinus() m_view->kPresenterDoc()->addCommand( macroCmd ); if(!lst.isEmpty()) { - const KoParagLayout *tqlayout=lst.first()->currentParagLayoutFormat(); - m_view->showRulerIndent( tqlayout->margins[TQStyleSheetItem::MarginLeft], tqlayout->margins[TQStyleSheetItem::MarginFirstLine], - tqlayout->margins[TQStyleSheetItem::MarginRight], lst.first()->rtl()); + const KoParagLayout *layout=lst.first()->currentParagLayoutFormat(); + m_view->showRulerIndent( layout->margins[TQStyleSheetItem::MarginLeft], layout->margins[TQStyleSheetItem::MarginFirstLine], + layout->margins[TQStyleSheetItem::MarginRight], lst.first()->rtl()); } } @@ -4145,7 +4145,7 @@ void KPrCanvas::copyOasisObjs() delete store; kd->setEncodedData( arr ); - TQApplication::tqclipboard()->setData( dragObject, TQClipboard::Clipboard ); + TQApplication::clipboard()->setData( dragObject, TQClipboard::Clipboard ); } void KPrCanvas::copyObjs() @@ -4214,7 +4214,7 @@ void KPrCanvas::copyObjs() delete store; kd->setEncodedData( arr ); - TQApplication::tqclipboard()->setData( dragObject, TQClipboard::Clipboard ); + TQApplication::clipboard()->setData( dragObject, TQClipboard::Clipboard ); } void KPrCanvas::deleteObjs() @@ -4941,7 +4941,7 @@ void KPrCanvas::resizeObject( ModifyType _modType, const KoPoint & point, bool k } -void KPrCanvas::finishResizeObject( const TQString &name, bool tqlayout ) +void KPrCanvas::finishResizeObject( const TQString &name, bool layout ) { if ( m_resizeObject ) { @@ -4958,8 +4958,8 @@ void KPrCanvas::finishResizeObject( const TQString &name, bool tqlayout ) m_view->kPresenterDoc()->addCommand( resizeCmd ); } - if ( tqlayout ) - m_view->kPresenterDoc()->tqlayout( m_resizeObject ); + if ( layout ) + m_view->kPresenterDoc()->layout( m_resizeObject ); m_ratio = 0.0; m_isResizing = false; @@ -5535,12 +5535,12 @@ void KPrCanvas::closeObject(bool /*close*/) m_view->kPresenterDoc()->addCommand( cmd ); } -void KPrCanvas::tqlayout() +void KPrCanvas::layout() { TQPtrListIterator<KPrObject> it(getObjectList()); for ( ; it.current(); ++it ) { if ( it.current()->getType() == OT_TEXT ) - static_cast<KPrTextObject *>( it.current() )->tqlayout(); + static_cast<KPrTextObject *>( it.current() )->layout(); } } |