diff options
Diffstat (limited to 'kget/transfer.cpp')
-rw-r--r-- | kget/transfer.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/kget/transfer.cpp b/kget/transfer.cpp index 36ce7887..a698f979 100644 --- a/kget/transfer.cpp +++ b/kget/transfer.cpp @@ -109,7 +109,7 @@ Transfer::init(const uint _id) id = _id; m_pSlave = new Slave(this, src, dest); canResume = false; - startTime = TQDateTime::tqcurrentDateTime(); + startTime = TQDateTime::currentDateTime(); speed = 0; // retryCount = ksettings.reconnectRetries-1; retryCount = 0; @@ -270,7 +270,7 @@ void Transfer::updateAll() { sDebugIn << endl; - updatetqStatus(status); // first phase of animation + updateStatus(status); // first phase of animation logMessage(i18n("Copy file from: %1").tqarg(src.prettyURL())); logMessage(i18n("To: %1").tqarg(dest.prettyURL())); @@ -303,7 +303,7 @@ void Transfer::updateAll() } -bool Transfer::updatetqStatus(int counter) +bool Transfer::updateStatus(int counter) { //sDebug<< ">>>>Entering"<<endl; @@ -337,18 +337,18 @@ bool Transfer::updatetqStatus(int counter) setPixmap(view->lv_pixmap, *pix); view->setUpdatesEnabled(true); - if(prevtqStatus!=status || prevMode != mode || status==ST_RUNNING || status==ST_TRYING) + if(prevStatus!=status || prevMode != mode || status==ST_RUNNING || status==ST_TRYING) { TQRect rect = view->header()->sectionRect(view->lv_pixmap); int x = rect.x(); - int y = view->tqitemRect(this).y(); + int y = view->itemRect(this).y(); int w = rect.width(); int h = rect.height(); view->TQScrollView::updateContents(x,y,w,h); - prevtqStatus = status; + prevStatus = status; prevMode = mode; } @@ -510,8 +510,8 @@ void Transfer::slotRequestSchedule() // if the time was already set somewhere in the future, keep it // otherwise set it to the current time + 60 seconds - if (startTime < TQDateTime::tqcurrentDateTime()) { - TQDateTime dt = TQDateTime::tqcurrentDateTime(); + if (startTime < TQDateTime::currentDateTime()) { + TQDateTime dt = TQDateTime::currentDateTime(); startTime = dt.addSecs(60); } if (status == ST_RUNNING) { @@ -787,7 +787,7 @@ bool Transfer::read(KSimpleConfig * config, int id) } mode = (TransferMode) config->readNumEntry("Mode", MD_TQUEUED); - status = (TransfertqStatus) config->readNumEntry("Status", ST_RUNNING); + status = (TransferStatus) config->readNumEntry("Status", ST_RUNNING); startTime = config->readDateTimeEntry("ScheduledTime"); canResume = config->readBoolEntry("CanResume", true); totalSize = config->readUnsignedNum64Entry("TotalSize", 0); @@ -851,7 +851,7 @@ void Transfer::slotExecError() status = ST_STOPPED; mode = MD_SCHEDULED; - startTime=TQDateTime::tqcurrentDateTime().addSecs(ksettings.reconnectTime * 60); + startTime=TQDateTime::currentDateTime().addSecs(ksettings.reconnectTime * 60); emit statusChanged(this, OP_SCHEDULED); sDebugOut << endl; @@ -982,7 +982,7 @@ bool Transfer::keepDialogOpen() const void Transfer::maybeShow() { - if ( ksettings.b_showIndividual && gettqStatus() != Transfer::ST_FINISHED ) + if ( ksettings.b_showIndividual && getStatus() != Transfer::ST_FINISHED ) { if(dlgIndividual) dlgIndividual->show(); |