summaryrefslogtreecommitdiffstats
path: root/kio/tests/kioslavetest.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-07 03:45:53 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-07 03:45:53 +0000
commit10308be19ef7fa44699562cc75946e7ea1fdf6b9 (patch)
tree4bc444c00a79e88105f2cfce5b6209994c413ca0 /kio/tests/kioslavetest.cpp
parent307136d8eef0ba133b78ceee8e901138d4c996a1 (diff)
downloadtdelibs-10308be19ef7fa44699562cc75946e7ea1fdf6b9.tar.gz
tdelibs-10308be19ef7fa44699562cc75946e7ea1fdf6b9.zip
Revert automated changes
Sorry guys, they are just not ready for prime time Work will continue as always git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1212479 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kio/tests/kioslavetest.cpp')
-rw-r--r--kio/tests/kioslavetest.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/kio/tests/kioslavetest.cpp b/kio/tests/kioslavetest.cpp
index e183fa23c..0db23457d 100644
--- a/kio/tests/kioslavetest.cpp
+++ b/kio/tests/kioslavetest.cpp
@@ -129,39 +129,39 @@ KioslaveTest::KioslaveTest( TQString src, TQString dest, uint op, uint pr )
progressButtons->insert( rbProgressDefault, ProgressDefault );
hbLayout->addWidget( rbProgressDefault, 5 );
- rbProgresstqStatus = new TQRadioButton( "tqStatus", progressButtons );
- progressButtons->insert( rbProgresstqStatus, ProgresstqStatus );
- hbLayout->addWidget( rbProgresstqStatus, 5 );
+ rbProgressStatus = new TQRadioButton( "Status", progressButtons );
+ progressButtons->insert( rbProgressStatus, ProgressStatus );
+ hbLayout->addWidget( rbProgressStatus, 5 );
progressButtons->setButton( pr );
changeProgressMode( pr );
// statusbar progress widget
- statusProgress = new tqStatusbarProgress( statusBar() );
+ statusProgress = new StatusbarProgress( statusBar() );
statusBar()->addWidget( statusProgress, 0, true );
// run & stop butons
hbLayout = new TQHBoxLayout( topLayout, 15 );
pbStart = new TQPushButton( "&Start", main_widget );
- pbStart->setFixedSize( pbStart->tqsizeHint() );
+ pbStart->setFixedSize( pbStart->sizeHint() );
connect( pbStart, TQT_SIGNAL(clicked()), TQT_SLOT(startJob()) );
hbLayout->addWidget( pbStart, 5 );
pbStop = new TQPushButton( "Sto&p", main_widget );
- pbStop->setFixedSize( pbStop->tqsizeHint() );
+ pbStop->setFixedSize( pbStop->sizeHint() );
pbStop->setEnabled( false );
connect( pbStop, TQT_SIGNAL(clicked()), TQT_SLOT(stopJob()) );
hbLayout->addWidget( pbStop, 5 );
// close button
close = new TQPushButton( "&Close", main_widget );
- close->setFixedSize( close->tqsizeHint() );
+ close->setFixedSize( close->sizeHint() );
connect(close, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotQuit()));
topLayout->addWidget( close, 5 );
- main_widget->setMinimumSize( main_widget->tqsizeHint() );
+ main_widget->setMinimumSize( main_widget->sizeHint() );
setCentralWidget( main_widget );
slave = 0;
@@ -201,7 +201,7 @@ void KioslaveTest::changeOperation( int id ) {
void KioslaveTest::changeProgressMode( int id ) {
progressMode = id;
- if ( progressMode == ProgresstqStatus ) {
+ if ( progressMode == ProgressStatus ) {
statusBar()->show();
} else {
statusBar()->hide();
@@ -306,7 +306,7 @@ void KioslaveTest::startJob() {
connect( job, TQT_SIGNAL( canceled( KIO::Job * ) ),
TQT_SLOT( slotResult( KIO::Job * ) ) );
- if (progressMode == ProgresstqStatus) {
+ if (progressMode == ProgressStatus) {
statusProgress->setJob( job );
}
@@ -537,15 +537,15 @@ int main(int argc, char **argv) {
} else if ( tmps == "default") {
pr = KioslaveTest::ProgressDefault;
} else if ( tmps == "status") {
- pr = KioslaveTest::ProgresstqStatus;
+ pr = KioslaveTest::ProgressStatus;
} else KCmdLineArgs::usage("unknown progress mode");
args->clear(); // Free up memory
KioslaveTest test( src, dest, op, pr );
test.show();
- // Bug in KTMW / Qt / tqlayouts ?
- test.resize( test.tqsizeHint() );
+ // Bug in KTMW / Qt / layouts ?
+ test.resize( test.sizeHint() );
app.setMainWidget(&test);
app.exec();