summaryrefslogtreecommitdiffstats
path: root/korganizer/koeditorgeneraltodo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'korganizer/koeditorgeneraltodo.cpp')
-rw-r--r--korganizer/koeditorgeneraltodo.cpp48
1 files changed, 24 insertions, 24 deletions
diff --git a/korganizer/koeditorgeneraltodo.cpp b/korganizer/koeditorgeneraltodo.cpp
index d659e8e9..13ba5192 100644
--- a/korganizer/koeditorgeneraltodo.cpp
+++ b/korganizer/koeditorgeneraltodo.cpp
@@ -105,59 +105,59 @@ void KOEditorGeneralTodo::initTime(TQWidget *parent,TQBoxLayout *topLayout)
i18n("Sets options for due and start dates and times "
"for this to-do.") );
- TQGridLayout *layoutTimeBox = new TQGridLayout(timeBoxFrame,1,1);
- layoutTimeBox->setSpacing(topLayout->spacing());
+ TQGridLayout *tqlayoutTimeBox = new TQGridLayout(timeBoxFrame,1,1);
+ tqlayoutTimeBox->setSpacing(topLayout->spacing());
TQString whatsThis = i18n("Sets the start date for this to-do");
mStartCheck = new TQCheckBox(i18n("Sta&rt:"),timeBoxFrame);
TQWhatsThis::add( mStartCheck, whatsThis );
- layoutTimeBox->addWidget(mStartCheck,0,0);
+ tqlayoutTimeBox->addWidget(mStartCheck,0,0);
connect(mStartCheck,TQT_SIGNAL(toggled(bool)),TQT_SLOT(enableStartEdit(bool)));
connect(mStartCheck,TQT_SIGNAL(toggled(bool)),TQT_SLOT(startDateModified()));
mStartDateEdit = new KDateEdit(timeBoxFrame);
TQWhatsThis::add( mStartDateEdit, whatsThis );
- layoutTimeBox->addWidget(mStartDateEdit,0,1);
+ tqlayoutTimeBox->addWidget(mStartDateEdit,0,1);
connect(mStartDateEdit,TQT_SIGNAL(dateChanged(const TQDate&)),TQT_SLOT(startDateModified()));
mStartTimeEdit = new KTimeEdit(timeBoxFrame);
TQWhatsThis::add( mStartTimeEdit,
i18n("Sets the start time for this to-do.") );
- layoutTimeBox->addWidget(mStartTimeEdit,0,2);
+ tqlayoutTimeBox->addWidget(mStartTimeEdit,0,2);
connect(mStartTimeEdit,TQT_SIGNAL(timeChanged(TQTime)),TQT_SLOT(startDateModified()));
whatsThis = i18n("Sets the due date for this to-do.");
mDueCheck = new TQCheckBox(i18n("&Due:"),timeBoxFrame);
TQWhatsThis::add( mDueCheck, whatsThis );
- layoutTimeBox->addWidget(mDueCheck,1,0);
+ tqlayoutTimeBox->addWidget(mDueCheck,1,0);
connect(mDueCheck,TQT_SIGNAL(toggled(bool)),TQT_SLOT(enableDueEdit(bool)));
connect(mDueCheck,TQT_SIGNAL(toggled(bool)),TQT_SIGNAL(dueDateEditToggle(bool)));
connect(mDueCheck,TQT_SIGNAL(toggled(bool)),TQT_SLOT(dateChanged()));
mDueDateEdit = new KDateEdit(timeBoxFrame);
TQWhatsThis::add( mDueDateEdit, whatsThis );
- layoutTimeBox->addWidget(mDueDateEdit,1,1);
+ tqlayoutTimeBox->addWidget(mDueDateEdit,1,1);
connect(mDueDateEdit,TQT_SIGNAL(dateChanged(const TQDate&)),TQT_SLOT(dateChanged()));
mDueTimeEdit = new KTimeEdit(timeBoxFrame);
TQWhatsThis::add( mDueTimeEdit,
i18n("Sets the due time for this to-do.") );
- layoutTimeBox->addWidget(mDueTimeEdit,1,2);
+ tqlayoutTimeBox->addWidget(mDueTimeEdit,1,2);
connect(mDueTimeEdit,TQT_SIGNAL(timeChanged( TQTime )),TQT_SLOT(dateChanged()));
mTimeButton = new TQCheckBox(i18n("Ti&me associated"),timeBoxFrame);
TQWhatsThis::add( mTimeButton,
i18n("Sets whether or not this to-do's start and due dates "
"have times associated with them.") );
- layoutTimeBox->addWidget( mTimeButton, 0, 3 );
+ tqlayoutTimeBox->addWidget( mTimeButton, 0, 3 );
connect(mTimeButton,TQT_SIGNAL(toggled(bool)),TQT_SLOT(enableTimeEdits(bool)));
connect(mTimeButton,TQT_SIGNAL(toggled(bool)),TQT_SLOT(dateChanged()));
TQLabel *label = new TQLabel( i18n( "Recurrence:" ), timeBoxFrame );
- layoutTimeBox->addWidget( label, 3, 0 );
+ tqlayoutTimeBox->addWidget( label, 3, 0 );
TQBoxLayout *recLayout = new TQHBoxLayout();
- layoutTimeBox->addMultiCellLayout( recLayout, 3, 3, 1, 4 );
+ tqlayoutTimeBox->addMultiCellLayout( recLayout, 3, 3, 1, 4 );
mRecEditButton = new TQPushButton( timeBoxFrame );
mRecEditButton->setIconSet( KOGlobals::self()->smallIconSet( "recur", 16 ) );
recLayout->addWidget( mRecEditButton );
@@ -167,17 +167,17 @@ void KOEditorGeneralTodo::initTime(TQWidget *parent,TQBoxLayout *topLayout)
recLayout->addStretch( 1 );
label = new TQLabel( i18n("Reminder:"), timeBoxFrame );
- layoutTimeBox->addWidget( label, 4, 0 );
+ tqlayoutTimeBox->addWidget( label, 4, 0 );
TQBoxLayout *alarmLineLayout = new TQHBoxLayout();
- layoutTimeBox->addMultiCellLayout( alarmLineLayout, 4, 4, 1, 4 );
+ tqlayoutTimeBox->addMultiCellLayout( alarmLineLayout, 4, 4, 1, 4 );
initAlarm( timeBoxFrame, alarmLineLayout );
alarmLineLayout->addStretch( 1 );
- // some more layouting
- layoutTimeBox->setColStretch( 3, 1 );
+ // some more tqlayouting
+ tqlayoutTimeBox->setColStretch( 3, 1 );
TQBoxLayout *secLayout = new TQHBoxLayout();
- layoutTimeBox->addLayout( secLayout, 0, 4 );
+ tqlayoutTimeBox->addLayout( secLayout, 0, 4 );
initSecrecy( timeBoxFrame, secLayout );
}
@@ -252,7 +252,7 @@ void KOEditorGeneralTodo::initPriority(TQWidget *parent, TQBoxLayout *topLayout)
priorityLabel->setBuddy( mPriorityCombo );
}
-void KOEditorGeneralTodo::initStatus(TQWidget *parent,TQBoxLayout *topLayout)
+void KOEditorGeneralTodo::iniStatus(TQWidget *parent,TQBoxLayout *topLayout)
{
TQBoxLayout *statusLayout = new TQHBoxLayout(topLayout);
@@ -284,12 +284,12 @@ void KOEditorGeneralTodo::setDefaults( const TQDateTime &due, bool allDay )
mDueTimeEdit->setTime( due.time() );
} else {
// Make it due tomorrow.
- mDueDateEdit->setDate( TQDate::currentDate().addDays(1) );
+ mDueDateEdit->setDate( TQDate::tqcurrentDate().addDays(1) );
mDueTimeEdit->setTime( TQTime::currentTime() );
}
- if ( !due.isValid() || (TQDateTime::currentDateTime() < due) ) {
- mStartDateEdit->setDate( TQDate::currentDate() );
+ if ( !due.isValid() || (TQDateTime::tqcurrentDateTime() < due) ) {
+ mStartDateEdit->setDate( TQDate::tqcurrentDate() );
mStartTimeEdit->setTime( TQTime::currentTime() );
} else {
mStartDateEdit->setDate( due.date().addDays( -1 ) );
@@ -322,7 +322,7 @@ void KOEditorGeneralTodo::readTodo(Todo *todo, Calendar *calendar, const TQDate
} else {
mDueDateEdit->setEnabled(false);
mDueTimeEdit->setEnabled(false);
- mDueDateEdit->setDate(TQDate::currentDate());
+ mDueDateEdit->setDate(TQDate::tqcurrentDate());
mDueTimeEdit->setTime(TQTime::currentTime());
mDueCheck->setChecked(false);
}
@@ -339,7 +339,7 @@ void KOEditorGeneralTodo::readTodo(Todo *todo, Calendar *calendar, const TQDate
} else {
mStartDateEdit->setEnabled(false);
mStartTimeEdit->setEnabled(false);
- mStartDateEdit->setDate(TQDate::currentDate());
+ mStartDateEdit->setDate(TQDate::tqcurrentDate());
mStartTimeEdit->setTime(TQTime::currentTime());
mStartCheck->setChecked(false);
}
@@ -545,7 +545,7 @@ void KOEditorGeneralTodo::completedChanged( int index )
{
if ( index == 10 ) {
mCompletedToggle->setChecked( true );
- mCompletedDateTime = TQDateTime::currentDateTime();
+ mCompletedDateTime = TQDateTime::tqcurrentDateTime();
} else {
mCompletedToggle->setChecked( false );
}
@@ -556,7 +556,7 @@ void KOEditorGeneralTodo::completedChanged()
{
if ( mCompletedToggle->isChecked() ) {
mCompletedCombo->setCurrentItem( 10 );
- mCompletedDateTime = TQDateTime::currentDateTime();
+ mCompletedDateTime = TQDateTime::tqcurrentDateTime();
} else {
mCompletedCombo->setCurrentItem( 0 );
}