summaryrefslogtreecommitdiffstats
path: root/korganizer/korgac/alarmdialog.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-02-16 20:17:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-02-16 20:17:18 +0000
commitf4fae92b6768541e2952173c3d4b09040f95bf7e (patch)
treed8c5d93232235cd635f3310b4d95490df181ba2d /korganizer/korgac/alarmdialog.cpp
parent125c0a08265b75a133644d3b55f47e37c919f45d (diff)
downloadtdepim-f4fae92b6768541e2952173c3d4b09040f95bf7e.tar.gz
tdepim-f4fae92b6768541e2952173c3d4b09040f95bf7e.zip
Moved kpilot from kdepim to applications, as the core Trinity libraries should not contain hardware-dependent software
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1221127 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'korganizer/korgac/alarmdialog.cpp')
-rw-r--r--korganizer/korgac/alarmdialog.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/korganizer/korgac/alarmdialog.cpp b/korganizer/korgac/alarmdialog.cpp
index 839d463a9..6b12f76c2 100644
--- a/korganizer/korgac/alarmdialog.cpp
+++ b/korganizer/korgac/alarmdialog.cpp
@@ -192,7 +192,7 @@ static TQString cleanSummary( const TQString &summary )
{
uint maxLen = 45;
TQString retStr = summary;
- retStr.replace( '\n', ' ' );
+ retStr.tqreplace( '\n', ' ' );
if ( retStr.length() > maxLen ) {
maxLen -= etc.length();
retStr = retStr.left( maxLen );
@@ -402,7 +402,7 @@ void AlarmDialog::suspend()
if ( item->isSelected() && item->isVisible() ) {
item->setVisible( false );
item->setSelected( false );
- item->mRemindAt = TQDateTime::currentDateTime().addSecs( unit * mSuspendSpin->value() );
+ item->mRemindAt = TQDateTime::tqcurrentDateTime().addSecs( unit * mSuspendSpin->value() );
item->mNotified = false;
selitem = item;
}
@@ -435,8 +435,8 @@ void AlarmDialog::setTimer()
int nextReminderAt = -1;
for ( TQListViewItemIterator it( mIncidenceListView ) ; it.current() ; ++it ) {
AlarmListItem * item = static_cast<AlarmListItem*>( it.current() );
- if ( item->mRemindAt > TQDateTime::currentDateTime() ) {
- int secs = TQDateTime::currentDateTime().secsTo( item->mRemindAt );
+ if ( item->mRemindAt > TQDateTime::tqcurrentDateTime() ) {
+ int secs = TQDateTime::tqcurrentDateTime().secsTo( item->mRemindAt );
nextReminderAt = nextReminderAt <= 0 ? secs : QMIN( nextReminderAt, secs );
}
}
@@ -532,7 +532,7 @@ void AlarmDialog::wakeUp()
continue;
}
- if ( item->mRemindAt <= TQDateTime::currentDateTime() ) {
+ if ( item->mRemindAt <= TQDateTime::tqcurrentDateTime() ) {
if ( !item->isVisible() ) {
item->setVisible( true );
item->setSelected( false );
@@ -650,7 +650,7 @@ bool AlarmDialog::ensureKorganizerRunning() const
TQString error;
TQCString dcopService;
- int result = KDCOPServiceStarter::self()->findServiceFor(
+ int result = KDCOPServiceStarter::self()->tqfindServiceFor(
"DCOP/Organizer", TQString::null, TQString::null, &error, &dcopService );
if ( result == 0 ) {
@@ -659,12 +659,12 @@ bool AlarmDialog::ensureKorganizerRunning() const
// but korganizer not loaded into it...]
static const char* const dcopObjectId = "KOrganizerIface";
TQCString dummy;
- if ( !kapp->dcopClient()->findObject(
+ if ( !kapp->dcopClient()->tqfindObject(
dcopService, dcopObjectId, "", TQByteArray(), dummy, dummy ) ) {
DCOPRef ref( dcopService, dcopService ); // talk to KUniqueApplication or its kontact wrapper
DCOPReply reply = ref.call( "load()" );
if ( reply.isValid() && (bool)reply ) {
- Q_ASSERT( kapp->dcopClient()->findObject(
+ Q_ASSERT( kapp->dcopClient()->tqfindObject(
dcopService, dcopObjectId, "", TQByteArray(), dummy, dummy ) );
} else {
kdWarning() << "Error loading " << dcopService << endl;