summaryrefslogtreecommitdiffstats
path: root/korganizer/korgac/alarmdialog.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/korgac/alarmdialog.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/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 a1b436850..3f8be65b3 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 <tqlayout.h>
+#include <layout.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::tqcurrentDateTime().addSecs( unit * mSuspendSpin->value() );
+ item->mRemindAt = TQDateTime::currentDateTime().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::tqcurrentDateTime() ) {
- int secs = TQDateTime::tqcurrentDateTime().secsTo( item->mRemindAt );
+ if ( item->mRemindAt > TQDateTime::currentDateTime() ) {
+ int secs = TQDateTime::currentDateTime().secsTo( item->mRemindAt );
nextReminderAt = nextReminderAt <= 0 ? secs : TQMIN( nextReminderAt, secs );
}
}
@@ -532,7 +532,7 @@ void AlarmDialog::wakeUp()
continue;
}
- if ( item->mRemindAt <= TQDateTime::tqcurrentDateTime() ) {
+ if ( item->mRemindAt <= TQDateTime::currentDateTime() ) {
if ( !item->isVisible() ) {
item->setVisible( true );
item->setSelected( false );
@@ -566,7 +566,7 @@ void AlarmDialog::slotSave()
if ( !incidence ) {
continue;
}
- config->setGroup( TQString("Incidence-%1").tqarg(numReminders + 1) );
+ config->setGroup( TQString("Incidence-%1").arg(numReminders + 1) );
config->writeEntry( "UID", incidence->uid() );
config->writeEntry( "RemindAt", item->mRemindAt );
++numReminders;