summaryrefslogtreecommitdiffstats
path: root/korganizer/freebusymanager.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:50:21 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:50:21 -0600
commit3ca10fd9a2dc631429d3b5d5c5e42a7d211d5a12 (patch)
tree89de88213bd261e4ccaade899ab2d6ec34b3a5a7 /korganizer/freebusymanager.cpp
parent1dad5f662a09dfc5cc041caffe0f674044a4dcec (diff)
downloadtdepim-3ca10fd9a2dc631429d3b5d5c5e42a7d211d5a12.tar.gz
tdepim-3ca10fd9a2dc631429d3b5d5c5e42a7d211d5a12.zip
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'korganizer/freebusymanager.cpp')
-rw-r--r--korganizer/freebusymanager.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/korganizer/freebusymanager.cpp b/korganizer/freebusymanager.cpp
index ec32367b1..59775f070 100644
--- a/korganizer/freebusymanager.cpp
+++ b/korganizer/freebusymanager.cpp
@@ -80,7 +80,7 @@ FreeBusyDownloadJob::FreeBusyDownloadJob( const TQString &email, const KURL &url
KIO::TransferJob *job = KIO::get( url, false, false );
//pass the mainwindow to the job so any prompts are active
KOrg::MainWindow *korg = ActionManager::findInstance( KURL() );
- job->setWindow( korg->tqtopLevelWidget() );
+ job->setWindow( korg->topLevelWidget() );
connect( job, TQT_SIGNAL( result( KIO::Job * ) ),
TQT_SLOT( slotResult( KIO::Job * ) ) );
@@ -140,7 +140,7 @@ void FreeBusyManager::setCalendar( KCal::Calendar *c )
KCal::FreeBusy *FreeBusyManager::ownerFreeBusy()
{
- TQDateTime start = TQDateTime::tqcurrentDateTime();
+ TQDateTime start = TQDateTime::currentDateTime();
TQDateTime end = start.addDays( KOPrefs::instance()->mFreeBusyPublishDays );
FreeBusy *freebusy = new FreeBusy( mCalendar, start, end );
@@ -176,13 +176,13 @@ void FreeBusyManager::slotPerhapsUploadFB()
// A timer is already running, so we don't need to do anything
return;
- int now = static_cast<int>( TQDateTime::tqcurrentDateTime().toTime_t() );
+ int now = static_cast<int>( TQDateTime::currentDateTime().toTime_t() );
int eta = static_cast<int>( mNextUploadTime.toTime_t() ) - now;
if( !mUploadingFreeBusy ) {
// Not currently uploading
if( mNextUploadTime.isNull() ||
- TQDateTime::tqcurrentDateTime() > mNextUploadTime ) {
+ TQDateTime::currentDateTime() > mNextUploadTime ) {
// No uploading have been done in this session, or delay time is over
publishFreeBusy();
return;
@@ -245,7 +245,7 @@ void FreeBusyManager::publishFreeBusy()
if ( !targetURL.isValid() ) {
KMessageBox::sorry( 0,
i18n( "<qt>The target URL '%1' provided is invalid."
- "</qt>" ).tqarg( targetURL.prettyURL() ), i18n("Invalid URL") );
+ "</qt>" ).arg( targetURL.prettyURL() ), i18n("Invalid URL") );
mBrokenUrl = true;
return;
}
@@ -271,7 +271,7 @@ void FreeBusyManager::publishFreeBusy()
}
// Save the time of the next free/busy uploading
- mNextUploadTime = TQDateTime::tqcurrentDateTime();
+ mNextUploadTime = TQDateTime::currentDateTime();
if( KOPrefs::instance()->mFreeBusyPublishDelay > 0 )
mNextUploadTime = mNextUploadTime.addSecs(
KOPrefs::instance()->mFreeBusyPublishDelay * 60 );
@@ -337,7 +337,7 @@ void FreeBusyManager::publishFreeBusy()
false /*don't show progress info*/ );
//pass the mainwindow to the job so any prompts are active
KOrg::MainWindow *korg = ActionManager::findInstance( KURL() );
- job->setWindow( korg->tqtopLevelWidget() );
+ job->setWindow( korg->topLevelWidget() );
connect( job, TQT_SIGNAL( result( KIO::Job * ) ),
TQT_SLOT( slotUploadFreeBusyResult( KIO::Job * ) ) );
@@ -353,8 +353,8 @@ void FreeBusyManager::slotUploadFreeBusyResult(KIO::Job *_job)
"URL '%1'. There might be a problem with the access rights, or "
"you specified an incorrect URL. The system said: <em>%2</em>."
"<br>Please check the URL or contact your system administrator."
- "</qt>" ).tqarg( job->destURL().prettyURL() )
- .tqarg( job->errorString() ) );
+ "</qt>" ).arg( job->destURL().prettyURL() )
+ .arg( job->errorString() ) );
// Delete temp file
KURL src = job->srcURL();
Q_ASSERT( src.isLocalFile() );
@@ -557,7 +557,7 @@ KURL FreeBusyManager::freeBusyUrl( const TQString &email )
// This means that if the trailing slash is not entered, we can treat this as a custom, non-Kolab URL!
// In that case, just pass it on through with substitution for %u and %d
// TODO: May want an explicit configuration option in kogroupwareprefspage.ui for this
- if ((fullpathURL.url().tqendsWith("/", true) == false) || (fullpathURL.url().contains("%25u", true)) || (fullpathURL.url().contains("%25d", true))) {
+ if ((fullpathURL.url().endsWith("/", true) == false) || (fullpathURL.url().contains("%25u", true)) || (fullpathURL.url().contains("%25d", true))) {
// A generic URL, substitute %u and %d
fullpathURL = fullpathURL.url().replace("%25u", emailName, true);
fullpathURL = fullpathURL.url().replace("%25d", emailHost, true);