summaryrefslogtreecommitdiffstats
path: root/kbugbuster/gui/cwloadingwidget.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-12 01:36:19 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-12 01:36:19 +0000
commit99a2774ca6f1cab334de5d43fe36fc44ae889a4c (patch)
treeeff34cf0762227f6baf2a93e8fef48d4bed2651c /kbugbuster/gui/cwloadingwidget.cpp
parent1c104292188541106338d4940b0f04beeb4301a0 (diff)
downloadtdesdk-99a2774ca6f1cab334de5d43fe36fc44ae889a4c.tar.gz
tdesdk-99a2774ca6f1cab334de5d43fe36fc44ae889a4c.zip
TQt4 convert kdesdk
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1236185 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kbugbuster/gui/cwloadingwidget.cpp')
-rw-r--r--kbugbuster/gui/cwloadingwidget.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kbugbuster/gui/cwloadingwidget.cpp b/kbugbuster/gui/cwloadingwidget.cpp
index 24eb70b9..8bff359d 100644
--- a/kbugbuster/gui/cwloadingwidget.cpp
+++ b/kbugbuster/gui/cwloadingwidget.cpp
@@ -27,16 +27,16 @@
using namespace KBugBusterMainWindow;
-CWLoadingWidget::CWLoadingWidget( WidgetMode mode, TQWidget *parent,
+CWLoadingWidget::CWLoadingWidget( WidgetMode mode, TQWidget *tqparent,
const char * name )
-: TQFrame( parent, name )
+: TQFrame( tqparent, name )
{
init( mode );
}
CWLoadingWidget::CWLoadingWidget( const TQString &text, WidgetMode mode,
- TQWidget *parent, const char * name )
-: TQFrame( parent, name )
+ TQWidget *tqparent, const char * name )
+: TQFrame( tqparent, name )
{
init( mode );
setText( text );
@@ -107,7 +107,7 @@ void CWLoadingWidget::setText( const TQString &text )
{
m_text = text;
updatePixmap();
- repaint();
+ tqrepaint();
}
void CWLoadingWidget::updatePixmap()
@@ -197,9 +197,9 @@ void CWLoadingWidget::updatePixmap()
box.setHeight( box.height() + 2 * fheight );
box.setWidth( box.width() + 2 * 10 );
if( box.width() < cr.width() - 2 * boxX )
- box.setWidth( QMIN( cr.width() - 2 * boxX, 500 + 2 * 10 ) );
+ box.setWidth( TQMIN( cr.width() - 2 * boxX, 500 + 2 * 10 ) );
if( box.height() < 100 )
- box.setHeight( QMIN( cr.height() - boxY - 2 * fheight - 10, 100 ) );
+ box.setHeight( TQMIN( cr.height() - boxY - 2 * fheight - 10, 100 ) );
p.setClipRect( box );
p.fillRect( box, TQBrush( TQColor( 204, 222, 234 ) ) );
@@ -209,7 +209,7 @@ void CWLoadingWidget::updatePixmap()
p.setWindow( 0, 0, box.width(), box.height() );
p.drawText( 10, fheight, br.width(),
- QMAX( br.height(), box.height() - 2 * fheight ),
+ TQMAX( br.height(), box.height() - 2 * fheight ),
AlignAuto | AlignVCenter | WordBreak, m_text );
}
}