summaryrefslogtreecommitdiffstats
path: root/korganizer/korgac/alarmdialog.cpp
diff options
context:
space:
mode:
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;