mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 02:42:48 +00:00
kdecore: remove redundant private member
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
b05e3f86ae
commit
d02a35de93
2 changed files with 3 additions and 4 deletions
|
@ -60,7 +60,7 @@ void KJobLoop::slotFinished(KJob* job)
|
||||||
|
|
||||||
KJobPrivate::KJobPrivate()
|
KJobPrivate::KJobPrivate()
|
||||||
: q_ptr(0), uiDelegate(0), error(KJob::NoError),
|
: q_ptr(0), uiDelegate(0), error(KJob::NoError),
|
||||||
progressUnit(KJob::Bytes), percentage(0),
|
percentage(0),
|
||||||
suspended(false), capabilities(KJob::NoCapabilities),
|
suspended(false), capabilities(KJob::NoCapabilities),
|
||||||
speedTimer(0), isAutoDelete(true), isFinished(false)
|
speedTimer(0), isAutoDelete(true), isFinished(false)
|
||||||
{
|
{
|
||||||
|
@ -279,7 +279,7 @@ void KJob::setProcessedAmount(Unit unit, qulonglong amount)
|
||||||
{
|
{
|
||||||
d->processedAmount[unit] = amount;
|
d->processedAmount[unit] = amount;
|
||||||
emit processedAmount(this, unit, amount);
|
emit processedAmount(this, unit, amount);
|
||||||
if (unit==d->progressUnit) {
|
if (unit == KJob::Bytes) {
|
||||||
emit processedSize(this, amount);
|
emit processedSize(this, amount);
|
||||||
emitPercent(amount, d->totalAmount[unit]);
|
emitPercent(amount, d->totalAmount[unit]);
|
||||||
}
|
}
|
||||||
|
@ -293,7 +293,7 @@ void KJob::setTotalAmount(Unit unit, qulonglong amount)
|
||||||
{
|
{
|
||||||
d->totalAmount[unit] = amount;
|
d->totalAmount[unit] = amount;
|
||||||
emit totalAmount(this, unit, amount);
|
emit totalAmount(this, unit, amount);
|
||||||
if (unit==d->progressUnit) {
|
if (unit == KJob::Bytes) {
|
||||||
emit totalSize(this, amount);
|
emit totalSize(this, amount);
|
||||||
emitPercent(d->processedAmount[unit], amount);
|
emitPercent(d->processedAmount[unit], amount);
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,7 +44,6 @@ public:
|
||||||
KJobUiDelegate *uiDelegate;
|
KJobUiDelegate *uiDelegate;
|
||||||
int error;
|
int error;
|
||||||
QString errorText;
|
QString errorText;
|
||||||
KJob::Unit progressUnit;
|
|
||||||
std::array<qulonglong, 3> processedAmount;
|
std::array<qulonglong, 3> processedAmount;
|
||||||
std::array<qulonglong, 3> totalAmount;
|
std::array<qulonglong, 3> totalAmount;
|
||||||
unsigned long percentage;
|
unsigned long percentage;
|
||||||
|
|
Loading…
Add table
Reference in a new issue