summaryrefslogtreecommitdiffstats
path: root/khexedit/statusbarprogress.cc
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:50:52 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:50:52 -0600
commitbf280726d5d22f33d33e4f9e771220c725249407 (patch)
tree48b7496821910eb85179d543acee981cf5d16dd8 /khexedit/statusbarprogress.cc
parentc78266617c282543427d2c000b3b68fe2b6b6722 (diff)
downloadtdeutils-bf280726d5d22f33d33e4f9e771220c725249407.tar.gz
tdeutils-bf280726d5d22f33d33e4f9e771220c725249407.zip
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'khexedit/statusbarprogress.cc')
-rw-r--r--khexedit/statusbarprogress.cc28
1 files changed, 14 insertions, 14 deletions
diff --git a/khexedit/statusbarprogress.cc b/khexedit/statusbarprogress.cc
index ca1e918..ebdaaba 100644
--- a/khexedit/statusbarprogress.cc
+++ b/khexedit/statusbarprogress.cc
@@ -67,10 +67,10 @@ void CStatusBarProgress::initialize( void )
mBarPixmap = 0;
mBarStyle = Solid;
- mBarColor = tqpalette().active().highlight();
- mBarTextColor = tqpalette().active().highlightedText();
- mTextColor = tqpalette().active().text();
- setBackgroundColor( tqpalette().active().background() );
+ mBarColor = palette().active().highlight();
+ mBarTextColor = palette().active().highlightedText();
+ mTextColor = palette().active().text();
+ setBackgroundColor( palette().active().background() );
TQFont font( KGlobalSettings::generalFont() );
font.setBold( true );
@@ -176,7 +176,7 @@ bool CStatusBarProgress::textEnabled( void ) const
return( mTextEnabled );
}
-TQSize CStatusBarProgress::tqsizeHint( void ) const
+TQSize CStatusBarProgress::sizeHint( void ) const
{
TQSize s( size() );
@@ -212,13 +212,13 @@ int CStatusBarProgress::recalcValue(int range)
void CStatusBarProgress::valueChange()
{
- tqrepaint(contentsRect(), FALSE);
+ repaint(contentsRect(), FALSE);
emit percentageChanged(recalcValue(100));
}
void CStatusBarProgress::rangeChange()
{
- tqrepaint(contentsRect(), FALSE);
+ repaint(contentsRect(), FALSE);
emit percentageChanged(recalcValue(100));
}
@@ -246,10 +246,10 @@ void CStatusBarProgress::adjustStyle( void )
void CStatusBarProgress::paletteChange( const TQPalette & )
{
- mBarColor = tqpalette().active().highlight();
- mBarTextColor = tqpalette().active().highlightedText();
- mTextColor = tqpalette().active().text();
- setBackgroundColor( tqpalette().active().background() );
+ mBarColor = palette().active().highlight();
+ mBarTextColor = palette().active().highlightedText();
+ mTextColor = palette().active().text();
+ setBackgroundColor( palette().active().background() );
}
void CStatusBarProgress::drawText( TQPainter *p )
@@ -259,17 +259,17 @@ void CStatusBarProgress::drawText( TQPainter *p )
if( mMsg.isEmpty() == true )
{
- s = TQString("%1%").tqarg(recalcValue(100));
+ s = TQString("%1%").arg(recalcValue(100));
}
else
{
if( mCurPage > 0 )
{
- s = i18n("%1... %2 of %3").tqarg(mMsg).tqarg(mCurPage).tqarg(mMaxPage);
+ s = i18n("%1... %2 of %3").arg(mMsg).arg(mCurPage).arg(mMaxPage);
}
else
{
- s = i18n("%1... %2%").tqarg(mMsg).tqarg(recalcValue(100));
+ s = i18n("%1... %2%").arg(mMsg).arg(recalcValue(100));
}
}