Changeset View
Changeset View
Standalone View
Standalone View
core/libs/progressmanager/progressview.cpp
Context not available. | |||||
210 | d->progress = new QProgressBar(h); | 210 | d->progress = new QProgressBar(h); | ||
---|---|---|---|---|---|
211 | d->progress->setMaximum(100); | 211 | d->progress->setMaximum(100); | ||
212 | d->progress->setValue(item->progress()); | 212 | d->progress->setValue(item->progress()); | ||
213 | d->progress->setFormat(QStringLiteral("%v / %m")); | ||||
213 | h->layout()->addWidget(d->progress); | 214 | h->layout()->addWidget(d->progress); | ||
214 | 215 | | |||
215 | if (item->canBeCanceled()) | 216 | if (item->canBeCanceled()) | ||
Context not available. | |||||
355 | connect(pm, SIGNAL(progressItemProgress(ProgressItem*,uint)), | 356 | connect(pm, SIGNAL(progressItemProgress(ProgressItem*,uint)), | ||
356 | this, SLOT(slotTransactionProgress(ProgressItem*,uint))); | 357 | this, SLOT(slotTransactionProgress(ProgressItem*,uint))); | ||
357 | 358 | | |||
359 | connect(pm, SIGNAL(progressItemTotal(ProgressItem*,uint)), | ||||
360 | this, SLOT(slotTransactionTotal(ProgressItem*,uint))); | ||||
361 | | ||||
358 | connect(pm, SIGNAL(progressItemStatus(ProgressItem*,QString)), | 362 | connect(pm, SIGNAL(progressItemStatus(ProgressItem*,QString)), | ||
359 | this, SLOT(slotTransactionStatus(ProgressItem*,QString))); | 363 | this, SLOT(slotTransactionStatus(ProgressItem*,QString))); | ||
360 | 364 | | |||
Context not available. | |||||
460 | } | 464 | } | ||
461 | } | 465 | } | ||
462 | 466 | | |||
467 | void ProgressView::slotTransactionTotal(ProgressItem* item, unsigned int total) | ||||
468 | { | ||||
469 | if (d->transactionsToListviewItems.contains(item)) | ||||
470 | { | ||||
471 | TransactionItem* const ti = d->transactionsToListviewItems[item]; | ||||
472 | ti->setTotalSteps(total); | ||||
473 | } | ||||
474 | } | ||||
475 | | ||||
463 | void ProgressView::slotTransactionStatus(ProgressItem* item, const QString& status) | 476 | void ProgressView::slotTransactionStatus(ProgressItem* item, const QString& status) | ||
464 | { | 477 | { | ||
465 | if (d->transactionsToListviewItems.contains(item)) | 478 | if (d->transactionsToListviewItems.contains(item)) | ||
Context not available. |