Changeset View
Changeset View
Standalone View
Standalone View
src/kwidgetjobtracker.cpp
Show First 20 Lines • Show All 518 Lines • ▼ Show 20 Line(s) | 469 | { | |||
---|---|---|---|---|---|
519 | 519 | | |||
520 | sizeLabel = new QLabel(this); | 520 | sizeLabel = new QLabel(this); | ||
521 | hBox->addWidget(sizeLabel, 0, Qt::AlignLeft); | 521 | hBox->addWidget(sizeLabel, 0, Qt::AlignLeft); | ||
522 | 522 | | |||
523 | resumeLabel = new QLabel(this); | 523 | resumeLabel = new QLabel(this); | ||
524 | hBox->addWidget(resumeLabel); | 524 | hBox->addWidget(resumeLabel); | ||
525 | 525 | | |||
526 | pauseButton = new QPushButton(QCoreApplication::translate("KWidgetJobTracker", "&Pause"), this); | 526 | pauseButton = new QPushButton(QCoreApplication::translate("KWidgetJobTracker", "&Pause"), this); | ||
527 | pauseButton->setVisible(job && (job->capabilities() & KJob::Suspendable)); | ||||
527 | connect(pauseButton, SIGNAL(clicked()), this, SLOT(_k_pauseResumeClicked())); | 528 | connect(pauseButton, SIGNAL(clicked()), this, SLOT(_k_pauseResumeClicked())); | ||
528 | hBox->addWidget(pauseButton); | 529 | hBox->addWidget(pauseButton); | ||
529 | 530 | | |||
530 | hBox = new QHBoxLayout(); | 531 | hBox = new QHBoxLayout(); | ||
531 | topLayout->addLayout(hBox); | 532 | topLayout->addLayout(hBox); | ||
532 | 533 | | |||
533 | speedLabel = new QLabel(this); | 534 | speedLabel = new QLabel(this); | ||
534 | hBox->addWidget(speedLabel, 1); | 535 | hBox->addWidget(speedLabel, 1); | ||
▲ Show 20 Lines • Show All 160 Lines • Show Last 20 Lines |