summaryrefslogtreecommitdiffstats
path: root/libtdepim/statusbarprogresswidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libtdepim/statusbarprogresswidget.cpp')
-rw-r--r--libtdepim/statusbarprogresswidget.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/libtdepim/statusbarprogresswidget.cpp b/libtdepim/statusbarprogresswidget.cpp
index 34f68703..d0cd9d7d 100644
--- a/libtdepim/statusbarprogresswidget.cpp
+++ b/libtdepim/statusbarprogresswidget.cpp
@@ -98,22 +98,22 @@ StatusbarProgressWidget::StatusbarProgressWidget( ProgressDialog* progressDialog
mode = None;
setMode();
- connect( m_pButton, TQT_SIGNAL( clicked() ),
- progressDialog, TQT_SLOT( slotToggleVisibility() ) );
+ connect( m_pButton, TQ_SIGNAL( clicked() ),
+ progressDialog, TQ_SLOT( slotToggleVisibility() ) );
- connect ( ProgressManager::instance(), TQT_SIGNAL( progressItemAdded( KPIM::ProgressItem * ) ),
- this, TQT_SLOT( slotProgressItemAdded( KPIM::ProgressItem * ) ) );
- connect ( ProgressManager::instance(), TQT_SIGNAL( progressItemCompleted( KPIM::ProgressItem * ) ),
- this, TQT_SLOT( slotProgressItemCompleted( KPIM::ProgressItem * ) ) );
- connect ( ProgressManager::instance(), TQT_SIGNAL(progressItemUsesBusyIndicator(KPIM::ProgressItem*,bool)),
- this, TQT_SLOT( updateBusyMode() ) );
+ connect ( ProgressManager::instance(), TQ_SIGNAL( progressItemAdded( KPIM::ProgressItem * ) ),
+ this, TQ_SLOT( slotProgressItemAdded( KPIM::ProgressItem * ) ) );
+ connect ( ProgressManager::instance(), TQ_SIGNAL( progressItemCompleted( KPIM::ProgressItem * ) ),
+ this, TQ_SLOT( slotProgressItemCompleted( KPIM::ProgressItem * ) ) );
+ connect ( ProgressManager::instance(), TQ_SIGNAL(progressItemUsesBusyIndicator(KPIM::ProgressItem*,bool)),
+ this, TQ_SLOT( updateBusyMode() ) );
- connect ( progressDialog, TQT_SIGNAL( visibilityChanged( bool )),
- this, TQT_SLOT( slotProgressDialogVisible( bool ) ) );
+ connect ( progressDialog, TQ_SIGNAL( visibilityChanged( bool )),
+ this, TQ_SLOT( slotProgressDialogVisible( bool ) ) );
mDelayTimer = new TQTimer( this );
- connect ( mDelayTimer, TQT_SIGNAL( timeout() ),
- this, TQT_SLOT( slotShowItemDelayed() ) );
+ connect ( mDelayTimer, TQ_SIGNAL( timeout() ),
+ this, TQ_SLOT( slotShowItemDelayed() ) );
}
// There are three cases: no progressitem, one progressitem (connect to it directly),
@@ -132,8 +132,8 @@ void StatusbarProgressWidget::updateBusyMode()
else { // N items
if ( !mBusyTimer ) {
mBusyTimer = new TQTimer( this );
- connect( mBusyTimer, TQT_SIGNAL( timeout() ),
- this, TQT_SLOT( slotBusyIndicator() ) );
+ connect( mBusyTimer, TQ_SIGNAL( timeout() ),
+ this, TQ_SLOT( slotBusyIndicator() ) );
mDelayTimer->start( 1000, true );
}
}
@@ -153,7 +153,7 @@ void StatusbarProgressWidget::slotProgressItemCompleted( ProgressItem *item )
connectSingleItem(); // if going back to 1 item
if ( ProgressManager::instance()->isEmpty() ) { // No item
// Done. In 5s the progress-widget will close, then we can clean up the statusbar
- TQTimer::singleShot( 5000, this, TQT_SLOT( slotClean() ) );
+ TQTimer::singleShot( 5000, this, TQ_SLOT( slotClean() ) );
} else if ( mCurrentItem ) { // Exactly one item
delete mBusyTimer;
mBusyTimer = 0;
@@ -164,14 +164,14 @@ void StatusbarProgressWidget::slotProgressItemCompleted( ProgressItem *item )
void StatusbarProgressWidget::connectSingleItem()
{
if ( mCurrentItem ) {
- disconnect ( mCurrentItem, TQT_SIGNAL( progressItemProgress( KPIM::ProgressItem *, unsigned int ) ),
- this, TQT_SLOT( slotProgressItemProgress( KPIM::ProgressItem *, unsigned int ) ) );
+ disconnect ( mCurrentItem, TQ_SIGNAL( progressItemProgress( KPIM::ProgressItem *, unsigned int ) ),
+ this, TQ_SLOT( slotProgressItemProgress( KPIM::ProgressItem *, unsigned int ) ) );
mCurrentItem = 0;
}
mCurrentItem = ProgressManager::instance()->singleItem();
if ( mCurrentItem ) {
- connect ( mCurrentItem, TQT_SIGNAL( progressItemProgress( KPIM::ProgressItem *, unsigned int ) ),
- this, TQT_SLOT( slotProgressItemProgress( KPIM::ProgressItem *, unsigned int ) ) );
+ connect ( mCurrentItem, TQ_SIGNAL( progressItemProgress( KPIM::ProgressItem *, unsigned int ) ),
+ this, TQ_SLOT( slotProgressItemProgress( KPIM::ProgressItem *, unsigned int ) ) );
}
}
@@ -268,7 +268,7 @@ bool StatusbarProgressWidget::eventFilter( TQObject *, TQEvent *ev )
if ( ev->type() == TQEvent::MouseButtonPress ) {
TQMouseEvent *e = (TQMouseEvent*)ev;
- if ( e->button() == Qt::LeftButton && mode != None ) { // toggle view on left mouse button
+ if ( e->button() == TQt::LeftButton && mode != None ) { // toggle view on left mouse button
// Consensus seems to be that we should show/hide the fancy dialog when the user
// clicks anywhere in the small one.
mProgressDialog->slotToggleVisibility();