summaryrefslogtreecommitdiffstats
path: root/kword/KWTableTemplateSelector.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-15 15:32:11 -0600
committerTimothy Pearson <[email protected]>2011-12-15 15:32:11 -0600
commit94844816550ad672ccfcdc25659c625546239998 (patch)
treee35fc60fd736c645d59f6408af032774ad8023d3 /kword/KWTableTemplateSelector.cpp
parent2a811c38c74c03648ecf857e566c44483cbad706 (diff)
downloadkoffice-94844816550ad672ccfcdc25659c625546239998.tar.gz
koffice-94844816550ad672ccfcdc25659c625546239998.zip
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'kword/KWTableTemplateSelector.cpp')
-rw-r--r--kword/KWTableTemplateSelector.cpp20
1 files changed, 10 insertions, 10 deletions
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 <tqdom.h>
#include <tqrect.h>
#include <tqptrlist.h>
-#include <tqlayout.h>
+#include <layout.h>
#include <stdlib.h>
#include <math.h>
@@ -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