summaryrefslogtreecommitdiffstats
path: root/src/part/progressBox.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-26 00:38:19 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-26 00:38:19 +0000
commitf0296ef9e1f94e23c00d6f490e565d1dc768416d (patch)
tree7f3fd9f99621c111ff67f2d62feb5960a3371853 /src/part/progressBox.cpp
parent3098eb909534268622ce776f9a7bb5310d31b3c1 (diff)
downloadfilelight-f0296ef9e1f94e23c00d6f490e565d1dc768416d.tar.gz
filelight-f0296ef9e1f94e23c00d6f490e565d1dc768416d.zip
TQt4 port Filelight
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/filelight@1233561 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/part/progressBox.cpp')
-rw-r--r--src/part/progressBox.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/part/progressBox.cpp b/src/part/progressBox.cpp
index 5bf205a..b608ae6 100644
--- a/src/part/progressBox.cpp
+++ b/src/part/progressBox.cpp
@@ -10,22 +10,22 @@
#include "progressBox.h"
-ProgressBox::ProgressBox( QWidget *parent, QObject *part )
- : QLabel( parent, "ProgressBox" )
+ProgressBox::ProgressBox( TQWidget *tqparent, TQObject *part )
+ : TQLabel( tqparent, "ProgressBox" )
{
hide();
- setAlignment( Qt::AlignCenter );
+ tqsetAlignment( TQt::AlignCenter );
setFont( KGlobalSettings::fixedFont() );
- setSizePolicy( QSizePolicy::Minimum, QSizePolicy::Fixed );
+ tqsetSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Fixed );
setText( 999999 );
- setMinimumWidth( sizeHint().width() );
+ setMinimumWidth( tqsizeHint().width() );
- connect( &m_timer, SIGNAL(timeout()), SLOT(report()) );
- connect( part, SIGNAL(started( KIO::Job* )), SLOT(start()) );
- connect( part, SIGNAL(completed()), SLOT(stop()) );
- connect( part, SIGNAL(canceled( const QString& )), SLOT(halt()) );
+ connect( &m_timer, TQT_SIGNAL(timeout()), TQT_SLOT(report()) );
+ connect( part, TQT_SIGNAL(started( KIO::Job* )), TQT_SLOT(start()) );
+ connect( part, TQT_SIGNAL(completed()), TQT_SLOT(stop()) );
+ connect( part, TQT_SIGNAL(canceled( const TQString& )), TQT_SLOT(halt()) );
}
void
@@ -53,13 +53,13 @@ ProgressBox::halt()
{
// canceled by stop button
m_timer.stop();
- QTimer::singleShot( 2000, this, SLOT(hide()) );
+ TQTimer::singleShot( 2000, this, TQT_SLOT(hide()) );
}
void
ProgressBox::setText( int files )
{
- QLabel::setText( i18n("%n File", "%n Files", files) );
+ TQLabel::setText( i18n("%n File", "%n Files", files) );
}
#include "progressBox.moc"