From 94844816550ad672ccfcdc25659c625546239998 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 15 Dec 2011 15:32:11 -0600 Subject: Rename a number of old tq methods that are no longer tq specific --- kword/KWTableTemplateSelector.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'kword/KWTableTemplateSelector.cpp') diff --git a/kword/KWTableTemplateSelector.cpp b/kword/KWTableTemplateSelector.cpp index c36743df..98e5e8fb 100644 --- a/kword/KWTableTemplateSelector.cpp +++ b/kword/KWTableTemplateSelector.cpp @@ -41,7 +41,7 @@ #include #include #include -#include +#include #include #include @@ -190,7 +190,7 @@ void KWTableTemplatePreview::drawCell( TQPainter *p, const KWTableStyle *ts, con { // For centering to work, and to even get word wrapping when the thing is too big :) m_textdoc->setWidth( widthLU ); - parag->tqinvalidate(0); + parag->invalidate(0); } double x_add = ( (rb < ts->frameStyle()->rightBorder().width()) ? ts->frameStyle()->rightBorder().width() : rb ) +1; @@ -207,7 +207,7 @@ void KWTableTemplatePreview::drawCell( TQPainter *p, const KWTableStyle *ts, con p->setClipRect( textRect.intersect( globalRect ) ); p->translate( textRect.x(), textRect.y() ); - TQColorGroup cg = TQApplication::tqpalette().active(); + TQColorGroup cg = TQApplication::palette().active(); cg.setBrush( TQColorGroup::Base, ts->frameStyle()->backgroundColor() ); m_textdoc->drawWYSIWYG( p, 1, 0, textRect.width() - 1, textRect.height(), cg, m_zoomHandler ); @@ -403,7 +403,7 @@ void KWTableTemplatePreview::setTableTemplate( KWTableTemplate *_tableTemplate ) setSpecialCells(_tableTemplate); - tqrepaint( true ); + repaint( true ); } void KWTableTemplatePreview::fillContents() @@ -447,7 +447,7 @@ void KWTableTemplatePreview::cbFirstRowChanged( bool enable ) if ( (!enable) && ( origTableTemplate->pTopRightCorner()==origTableTemplate->pFirstRow() ) ) tableTemplate->setTopRightCorner( tableTemplate->pBodyCell() ); if ( !m_disableRepaint ) - tqrepaint( true ); + repaint( true ); } void KWTableTemplatePreview::cbFirstColChanged( bool enable ) @@ -470,7 +470,7 @@ void KWTableTemplatePreview::cbFirstColChanged( bool enable ) tableTemplate->setBottomLeftCorner( tableTemplate->pBodyCell() ); if ( !m_disableRepaint ) - tqrepaint( true ); + repaint( true ); } void KWTableTemplatePreview::cbLastRowChanged( bool enable ) @@ -493,7 +493,7 @@ void KWTableTemplatePreview::cbLastRowChanged( bool enable ) tableTemplate->setBottomLeftCorner( tableTemplate->pBodyCell() ); if ( !m_disableRepaint ) - tqrepaint( true ); + repaint( true ); } void KWTableTemplatePreview::cbLastColChanged( bool enable ) @@ -516,7 +516,7 @@ void KWTableTemplatePreview::cbLastColChanged( bool enable ) tableTemplate->setBottomRightCorner( tableTemplate->pBodyCell() ); if ( !m_disableRepaint ) - tqrepaint( true ); + repaint( true ); } void KWTableTemplatePreview::cbBodyChanged( bool enable ) @@ -533,7 +533,7 @@ void KWTableTemplatePreview::cbBodyChanged( bool enable ) delete oldTemplate; if ( !m_disableRepaint ) - tqrepaint( true ); + repaint( true ); } @@ -648,7 +648,7 @@ void KWTableTemplateSelector::initPreview() preview->cbLastColChanged( cbLastCol->isChecked() ); preview->cbBodyChanged( cbBody->isChecked() ); preview->disableRepaint(false); - preview->tqrepaint(); + preview->repaint(); } int KWTableTemplateSelector::getFormatType() const -- cgit v1.2.1