summaryrefslogtreecommitdiffstats
path: root/korganizer/korgac/alarmdialog.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:59:50 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:59:50 -0600
commit9cc13dcbb01a96c9e60a07ca63c61d24b374f50d (patch)
treeab537a329b9613e11dce8195761f93ffe82aed24 /korganizer/korgac/alarmdialog.cpp
parent3ca10fd9a2dc631429d3b5d5c5e42a7d211d5a12 (diff)
downloadtdepim-9cc13dcbb01a96c9e60a07ca63c61d24b374f50d.tar.gz
tdepim-9cc13dcbb01a96c9e60a07ca63c61d24b374f50d.zip
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 3ca10fd9a2dc631429d3b5d5c5e42a7d211d5a12.
Diffstat (limited to 'korganizer/korgac/alarmdialog.cpp')
-rw-r--r--korganizer/korgac/alarmdialog.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/korganizer/korgac/alarmdialog.cpp b/korganizer/korgac/alarmdialog.cpp
index 3f8be65b3..a1b436850 100644
--- a/korganizer/korgac/alarmdialog.cpp
+++ b/korganizer/korgac/alarmdialog.cpp
@@ -28,7 +28,7 @@
#include <tqlabel.h>
#include <tqfile.h>
#include <tqspinbox.h>
-#include <layout.h>
+#include <tqlayout.h>
#include <tqpushbutton.h>
#include <tqcstring.h>
#include <tqdatastream.h>
@@ -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 : TQMIN( 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 );
@@ -566,7 +566,7 @@ void AlarmDialog::slotSave()
if ( !incidence ) {
continue;
}
- config->setGroup( TQString("Incidence-%1").arg(numReminders + 1) );
+ config->setGroup( TQString("Incidence-%1").tqarg(numReminders + 1) );
config->writeEntry( "UID", incidence->uid() );
config->writeEntry( "RemindAt", item->mRemindAt );
++numReminders;