summaryrefslogtreecommitdiffstats
path: root/korganizer/koeditorrecurrence.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'korganizer/koeditorrecurrence.cpp')
-rw-r--r--korganizer/koeditorrecurrence.cpp464
1 files changed, 232 insertions, 232 deletions
diff --git a/korganizer/koeditorrecurrence.cpp b/korganizer/koeditorrecurrence.cpp
index 48471c421..6f24446c2 100644
--- a/korganizer/koeditorrecurrence.cpp
+++ b/korganizer/koeditorrecurrence.cpp
@@ -22,23 +22,23 @@
without including the source code for Qt in the source distribution.
*/
-#include <qtooltip.h>
-#include <qfiledialog.h>
-#include <qlayout.h>
-#include <qvbox.h>
-#include <qbuttongroup.h>
-#include <qvgroupbox.h>
-#include <qwidgetstack.h>
-#include <qdatetime.h>
-#include <qlistbox.h>
-#include <qspinbox.h>
-#include <qcheckbox.h>
-#include <qgroupbox.h>
-#include <qwidgetstack.h>
-#include <qradiobutton.h>
-#include <qlabel.h>
-#include <qpushbutton.h>
-#include <qwhatsthis.h>
+#include <tqtooltip.h>
+#include <tqfiledialog.h>
+#include <tqlayout.h>
+#include <tqvbox.h>
+#include <tqbuttongroup.h>
+#include <tqvgroupbox.h>
+#include <tqwidgetstack.h>
+#include <tqdatetime.h>
+#include <tqlistbox.h>
+#include <tqspinbox.h>
+#include <tqcheckbox.h>
+#include <tqgroupbox.h>
+#include <tqwidgetstack.h>
+#include <tqradiobutton.h>
+#include <tqlabel.h>
+#include <tqpushbutton.h>
+#include <tqwhatsthis.h>
#include <kdialog.h>
#include <kglobal.h>
@@ -60,14 +60,14 @@
/////////////////////////// RecurBase ///////////////////////////////
-RecurBase::RecurBase( QWidget *parent, const char *name ) :
- QWidget( parent, name )
+RecurBase::RecurBase( TQWidget *parent, const char *name ) :
+ TQWidget( parent, name )
{
- mFrequencyEdit = new QSpinBox( 1, 9999, 1, this );
+ mFrequencyEdit = new TQSpinBox( 1, 9999, 1, this );
mFrequencyEdit->setValue( 1 );
}
-QWidget *RecurBase::frequencyEdit()
+TQWidget *RecurBase::frequencyEdit()
{
return mFrequencyEdit;
}
@@ -84,10 +84,10 @@ int RecurBase::frequency()
return mFrequencyEdit->value();
}
-QComboBox *RecurBase::createWeekCountCombo( QWidget *parent, const char *name )
+TQComboBox *RecurBase::createWeekCountCombo( TQWidget *parent, const char *name )
{
- QComboBox *combo = new QComboBox( parent, name );
- QWhatsThis::add( combo,
+ TQComboBox *combo = new TQComboBox( parent, name );
+ TQWhatsThis::add( combo,
i18n("The number of the week from the beginning "
"of the month on which this event or to-do "
"should recur.") );
@@ -105,10 +105,10 @@ QComboBox *RecurBase::createWeekCountCombo( QWidget *parent, const char *name )
return combo;
}
-QComboBox *RecurBase::createWeekdayCombo( QWidget *parent, const char *name )
+TQComboBox *RecurBase::createWeekdayCombo( TQWidget *parent, const char *name )
{
- QComboBox *combo = new QComboBox( parent, name );
- QWhatsThis::add( combo,
+ TQComboBox *combo = new TQComboBox( parent, name );
+ TQWhatsThis::add( combo,
i18n("The weekday on which this event or to-do "
"should recur.") );
if ( !combo ) return 0;
@@ -119,38 +119,38 @@ QComboBox *RecurBase::createWeekdayCombo( QWidget *parent, const char *name )
return combo;
}
-QComboBox *RecurBase::createMonthNameCombo( QWidget *parent, const char *name )
+TQComboBox *RecurBase::createMonthNameCombo( TQWidget *parent, const char *name )
{
- QComboBox *combo = new QComboBox( parent, name );
- QWhatsThis::add( combo,
+ TQComboBox *combo = new TQComboBox( parent, name );
+ TQWhatsThis::add( combo,
i18n("The month during which this event or to-do "
"should recur.") );
if ( !combo ) return 0;
const KCalendarSystem *calSys = KOGlobals::self()->calendarSystem();
for( int i = 1; i <= 12; ++i ) {
// use an arbitrary year, we just need the month name...
- QDate dt( 2005, i, 1 );
+ TQDate dt( 2005, i, 1 );
combo->insertItem( calSys->monthName( dt ) );
}
return combo;
}
-QBoxLayout *RecurBase::createFrequencySpinBar( QWidget *parent, QLayout *layout,
- QString everyText, QString unitText )
+TQBoxLayout *RecurBase::createFrequencySpinBar( TQWidget *parent, TQLayout *layout,
+ TQString everyText, TQString unitText )
{
- QBoxLayout *freqLayout = new QHBoxLayout( layout );
+ TQBoxLayout *freqLayout = new TQHBoxLayout( layout );
- QString whatsThis = i18n("Sets how often this event or to-do should recur.");
- QLabel *preLabel = new QLabel( everyText, parent );
- QWhatsThis::add( preLabel, whatsThis );
+ TQString whatsThis = i18n("Sets how often this event or to-do should recur.");
+ TQLabel *preLabel = new TQLabel( everyText, parent );
+ TQWhatsThis::add( preLabel, whatsThis );
freqLayout->addWidget( preLabel );
freqLayout->addWidget( frequencyEdit() );
preLabel->setBuddy( frequencyEdit() );
- QWhatsThis::add( preLabel->buddy(), whatsThis );
+ TQWhatsThis::add( preLabel->buddy(), whatsThis );
- QLabel *postLabel = new QLabel( unitText, parent );
- QWhatsThis::add( postLabel, whatsThis );
+ TQLabel *postLabel = new TQLabel( unitText, parent );
+ TQWhatsThis::add( postLabel, whatsThis );
freqLayout->addWidget( postLabel );
freqLayout->addStretch();
return freqLayout;
@@ -158,10 +158,10 @@ QBoxLayout *RecurBase::createFrequencySpinBar( QWidget *parent, QLayout *layout,
/////////////////////////// RecurDaily ///////////////////////////////
-RecurDaily::RecurDaily( QWidget *parent, const char *name ) :
+RecurDaily::RecurDaily( TQWidget *parent, const char *name ) :
RecurBase( parent, name )
{
- QBoxLayout *topLayout = new QVBoxLayout( this );
+ TQBoxLayout *topLayout = new TQVBoxLayout( this );
topLayout->setSpacing( KDialog::spacingHint() );
createFrequencySpinBar( this, topLayout, i18n("&Recur every"), i18n("day(s)") );
@@ -170,17 +170,17 @@ RecurDaily::RecurDaily( QWidget *parent, const char *name ) :
/////////////////////////// RecurWeekly ///////////////////////////////
-RecurWeekly::RecurWeekly( QWidget *parent, const char *name ) :
+RecurWeekly::RecurWeekly( TQWidget *parent, const char *name ) :
RecurBase( parent, name )
{
- QBoxLayout *topLayout = new QVBoxLayout( this );
+ TQBoxLayout *topLayout = new TQVBoxLayout( this );
topLayout->setSpacing( KDialog::spacingHint() );
// topLayout->addStretch( 1 );
createFrequencySpinBar( this, topLayout, i18n("&Recur every"), i18n("week(s) on:") );
- QHBox *dayBox = new QHBox( this );
+ TQHBox *dayBox = new TQHBox( this );
topLayout->addWidget( dayBox, 1, AlignVCenter );
// Respect start of week setting
int weekStart=KGlobal::locale()->weekStartDay();
@@ -189,13 +189,13 @@ RecurWeekly::RecurWeekly( QWidget *parent, const char *name ) :
// label=(i+weekStart+6)%7 + 1;
// index in CheckBox array(=day): label-1
const KCalendarSystem *calSys = KOGlobals::self()->calendarSystem();
- QString weekDayName = calSys->weekDayName(
+ TQString weekDayName = calSys->weekDayName(
(i + weekStart + 6)%7 + 1, true );
if ( KOPrefs::instance()->mCompactDialogs ) {
weekDayName = weekDayName.left( 1 );
}
- mDayBoxes[ (i + weekStart + 6)%7 ] = new QCheckBox( weekDayName, dayBox );
- QWhatsThis::add( mDayBoxes[ (i + weekStart + 6)%7 ],
+ mDayBoxes[ (i + weekStart + 6)%7 ] = new TQCheckBox( weekDayName, dayBox );
+ TQWhatsThis::add( mDayBoxes[ (i + weekStart + 6)%7 ],
i18n("Day of the week on which this event or to-do "
"should recur.") );
}
@@ -203,16 +203,16 @@ RecurWeekly::RecurWeekly( QWidget *parent, const char *name ) :
topLayout->addStretch( 1 );
}
-void RecurWeekly::setDays( const QBitArray &days )
+void RecurWeekly::setDays( const TQBitArray &days )
{
for ( int i = 0; i < 7; ++i ) {
mDayBoxes[ i ]->setChecked( days.testBit( i ) );
}
}
-QBitArray RecurWeekly::days()
+TQBitArray RecurWeekly::days()
{
- QBitArray days( 7 );
+ TQBitArray days( 7 );
for ( int i = 0; i < 7; ++i ) {
days.setBit( i, mDayBoxes[ i ]->isChecked() );
@@ -223,38 +223,38 @@ QBitArray RecurWeekly::days()
/////////////////////////// RecurMonthly ///////////////////////////////
-RecurMonthly::RecurMonthly( QWidget *parent, const char *name ) :
+RecurMonthly::RecurMonthly( TQWidget *parent, const char *name ) :
RecurBase( parent, name )
{
- QBoxLayout *topLayout = new QVBoxLayout( this );
+ TQBoxLayout *topLayout = new TQVBoxLayout( this );
topLayout->setSpacing( KDialog::spacingHint() );
createFrequencySpinBar( this, topLayout, i18n("&Recur every"), i18n("month(s)") );
- QButtonGroup *buttonGroup = new QButtonGroup( this );
- buttonGroup->setFrameStyle( QFrame::NoFrame );
+ TQButtonGroup *buttonGroup = new TQButtonGroup( this );
+ buttonGroup->setFrameStyle( TQFrame::NoFrame );
topLayout->addWidget( buttonGroup, 1, AlignVCenter );
- QGridLayout *buttonLayout = new QGridLayout( buttonGroup, 3, 2 );
+ TQGridLayout *buttonLayout = new TQGridLayout( buttonGroup, 3, 2 );
buttonLayout->setSpacing( KDialog::spacingHint() );
- QString recurOnText;
+ TQString recurOnText;
if ( !KOPrefs::instance()->mCompactDialogs ) {
recurOnText = i18n("&Recur on the");
}
- mByDayRadio = new QRadioButton( recurOnText, buttonGroup );
- QWhatsThis::add( mByDayRadio,
+ mByDayRadio = new TQRadioButton( recurOnText, buttonGroup );
+ TQWhatsThis::add( mByDayRadio,
i18n("Sets a specific day of the month on which "
"this event or to-do should recur.") );
buttonLayout->addWidget( mByDayRadio, 0, 0 );
- QString whatsThis = i18n("The day of the month on which this event or to-do "
+ TQString whatsThis = i18n("The day of the month on which this event or to-do "
"should recur.");
- mByDayCombo = new QComboBox( buttonGroup );
- QWhatsThis::add( mByDayCombo, whatsThis );
+ mByDayCombo = new TQComboBox( buttonGroup );
+ TQWhatsThis::add( mByDayCombo, whatsThis );
mByDayCombo->setSizeLimit( 7 );
mByDayCombo->insertItem( i18n("1st") );
mByDayCombo->insertItem( i18n("2nd") );
@@ -322,13 +322,13 @@ RecurMonthly::RecurMonthly( QWidget *parent, const char *name ) :
mByDayCombo->insertItem( i18n("31st Last") );*/
buttonLayout->addWidget( mByDayCombo, 0, 1 );
- QLabel *byDayLabel = new QLabel( i18n("day"), buttonGroup );
- QWhatsThis::add( byDayLabel, whatsThis );
+ TQLabel *byDayLabel = new TQLabel( i18n("day"), buttonGroup );
+ TQWhatsThis::add( byDayLabel, whatsThis );
buttonLayout->addWidget( byDayLabel, 0, 2 );
- mByPosRadio = new QRadioButton( recurOnText, buttonGroup);
- QWhatsThis::add( mByPosRadio,
+ mByPosRadio = new TQRadioButton( recurOnText, buttonGroup);
+ TQWhatsThis::add( mByPosRadio,
i18n("Sets a weekday and specific week in the month "
"on which this event or to-do should recur") );
buttonLayout->addWidget( mByPosRadio, 1, 0 );
@@ -396,41 +396,41 @@ int RecurMonthly::weekday()
/////////////////////////// RecurYearly ///////////////////////////////
-RecurYearly::RecurYearly( QWidget *parent, const char *name ) :
+RecurYearly::RecurYearly( TQWidget *parent, const char *name ) :
RecurBase( parent, name )
{
- QBoxLayout *topLayout = new QVBoxLayout( this );
+ TQBoxLayout *topLayout = new TQVBoxLayout( this );
topLayout->setSpacing( KDialog::spacingHint() );
createFrequencySpinBar( this, topLayout, i18n("&Recur every"), i18n("year(s)") );
- QButtonGroup *buttonGroup = new QButtonGroup( this );
- buttonGroup->setFrameStyle( QFrame::NoFrame );
+ TQButtonGroup *buttonGroup = new TQButtonGroup( this );
+ buttonGroup->setFrameStyle( TQFrame::NoFrame );
topLayout->addWidget( buttonGroup, 1, AlignVCenter );
- QBoxLayout *buttonLayout = new QVBoxLayout( buttonGroup );
+ TQBoxLayout *buttonLayout = new TQVBoxLayout( buttonGroup );
/* YearlyMonth (day n of Month Y) */
- QBoxLayout *monthLayout = new QHBoxLayout( buttonLayout );
- QString recurInMonthText(
+ TQBoxLayout *monthLayout = new TQHBoxLayout( buttonLayout );
+ TQString recurInMonthText(
i18n("part before XXX of 'Recur on day XXX of month YYY'",
"&Recur on day "));
if ( KOPrefs::instance()->mCompactDialogs ) {
recurInMonthText = i18n("&Day ");
}
- mByMonthRadio = new QRadioButton( recurInMonthText, buttonGroup );
- QWhatsThis::add( mByMonthRadio,
+ mByMonthRadio = new TQRadioButton( recurInMonthText, buttonGroup );
+ TQWhatsThis::add( mByMonthRadio,
i18n("Sets a specific day in a specific month on which "
"this event or to-do should recur.") );
monthLayout->addWidget( mByMonthRadio );
- mByMonthSpin = new QSpinBox( 1, 31, 1, buttonGroup );
- QWhatsThis::add( mByMonthSpin,
+ mByMonthSpin = new TQSpinBox( 1, 31, 1, buttonGroup );
+ TQWhatsThis::add( mByMonthSpin,
i18n("The day of the month on which this event or to-do "
"should recur.") );
monthLayout->addWidget( mByMonthSpin );
- QLabel *ofLabel = new QLabel(
+ TQLabel *ofLabel = new TQLabel(
i18n("part between XXX and YYY of 'Recur on day XXX of month YYY'", " &of "),
buttonGroup );
//What do I do here? I'm not sure if this label should have What's This in it... - Antonio
@@ -444,13 +444,13 @@ RecurYearly::RecurYearly( QWidget *parent, const char *name ) :
/* YearlyPos (weekday X of week N of month Y) */
- QBoxLayout *posLayout = new QHBoxLayout( buttonLayout );
- QString recurOnPosText( i18n("Part before XXX in 'Recur on NNN. WEEKDAY of MONTH', short version", "&On" ) );
+ TQBoxLayout *posLayout = new TQHBoxLayout( buttonLayout );
+ TQString recurOnPosText( i18n("Part before XXX in 'Recur on NNN. WEEKDAY of MONTH', short version", "&On" ) );
if ( !KOPrefs::instance()->mCompactDialogs ) {
recurOnPosText = i18n("Part before XXX in 'Recur on NNN. WEEKDAY of MONTH'", "&On the" );
}
- mByPosRadio = new QRadioButton( recurOnPosText, buttonGroup );
- QWhatsThis::add( mByPosRadio,
+ mByPosRadio = new TQRadioButton( recurOnPosText, buttonGroup );
+ TQWhatsThis::add( mByPosRadio,
i18n("Sets a specific day in a specific week of a specific "
"month on which this event or to-do should recur.") );
posLayout->addWidget( mByPosRadio );
@@ -461,7 +461,7 @@ RecurYearly::RecurYearly( QWidget *parent, const char *name ) :
mByPosWeekdayCombo = createWeekdayCombo( buttonGroup );
posLayout->addWidget( mByPosWeekdayCombo );
- ofLabel = new QLabel(
+ ofLabel = new TQLabel(
i18n("part between WEEKDAY and MONTH in 'Recur on NNN. WEEKDAY of MONTH'", " o&f "),
buttonGroup );
posLayout->addWidget( ofLabel );
@@ -474,31 +474,31 @@ RecurYearly::RecurYearly( QWidget *parent, const char *name ) :
/* YearlyDay (day N of the year) */
- QBoxLayout *dayLayout = new QHBoxLayout( buttonLayout );
- QString recurOnDayText;
+ TQBoxLayout *dayLayout = new TQHBoxLayout( buttonLayout );
+ TQString recurOnDayText;
if ( KOPrefs::instance()->mCompactDialogs ) {
recurOnDayText = i18n("Day #");
} else {
recurOnDayText = i18n("Recur on &day #");
}
- QString whatsThis = i18n("Sets a specific day within the year on which this "
+ TQString whatsThis = i18n("Sets a specific day within the year on which this "
"event or to-do should recur.");
- mByDayRadio = new QRadioButton( recurOnDayText, buttonGroup );
- QWhatsThis::add( mByDayRadio, whatsThis );
+ mByDayRadio = new TQRadioButton( recurOnDayText, buttonGroup );
+ TQWhatsThis::add( mByDayRadio, whatsThis );
dayLayout->addWidget( mByDayRadio );
- mByDaySpin = new QSpinBox( 1, 366, 1, buttonGroup );
- QWhatsThis::add( mByDaySpin, whatsThis );
+ mByDaySpin = new TQSpinBox( 1, 366, 1, buttonGroup );
+ TQWhatsThis::add( mByDaySpin, whatsThis );
dayLayout->addWidget( mByDaySpin );
- QString ofTheYear( i18n("part after NNN of 'Recur on day #NNN of the year'", " of the &year"));
+ TQString ofTheYear( i18n("part after NNN of 'Recur on day #NNN of the year'", " of the &year"));
if ( KOPrefs::instance()->mCompactDialogs ) {
ofTheYear = i18n("part after NNN of 'Recur on day #NNN of the year', short version",
" of the year");
}
- ofLabel = new QLabel( ofTheYear, buttonGroup );
- QWhatsThis::add( ofLabel, whatsThis );
+ ofLabel = new TQLabel( ofTheYear, buttonGroup );
+ TQWhatsThis::add( ofLabel, whatsThis );
dayLayout->addWidget( ofLabel );
ofLabel->setBuddy( mByDaySpin );
@@ -573,44 +573,44 @@ int RecurYearly::day()
//////////////////////////// ExceptionsWidget //////////////////////////
-ExceptionsWidget::ExceptionsWidget( QWidget *parent, const char *name ) :
- QWidget( parent, name )
+ExceptionsWidget::ExceptionsWidget( TQWidget *parent, const char *name ) :
+ TQWidget( parent, name )
{
- QBoxLayout *topLayout = new QVBoxLayout( this );
+ TQBoxLayout *topLayout = new TQVBoxLayout( this );
- QGroupBox *groupBox = new QGroupBox( 1, Horizontal, i18n("E&xceptions"),
+ TQGroupBox *groupBox = new TQGroupBox( 1, Horizontal, i18n("E&xceptions"),
this );
topLayout->addWidget( groupBox );
- QWidget *box = new QWidget( groupBox );
+ TQWidget *box = new TQWidget( groupBox );
- QGridLayout *boxLayout = new QGridLayout( box );
+ TQGridLayout *boxLayout = new TQGridLayout( box );
mExceptionDateEdit = new KDateEdit( box );
- QWhatsThis::add( mExceptionDateEdit,
+ TQWhatsThis::add( mExceptionDateEdit,
i18n("A date that should be considered an exception "
"to the recurrence rules for this event or to-do.") );
- mExceptionDateEdit->setDate( QDate::currentDate() );
+ mExceptionDateEdit->setDate( TQDate::currentDate() );
boxLayout->addWidget( mExceptionDateEdit, 0, 0 );
- QPushButton *addExceptionButton = new QPushButton( i18n("&Add"), box );
- QWhatsThis::add( addExceptionButton,
+ TQPushButton *addExceptionButton = new TQPushButton( i18n("&Add"), box );
+ TQWhatsThis::add( addExceptionButton,
i18n("Add this date as an exception "
"to the recurrence rules for this event or to-do.") );
boxLayout->addWidget( addExceptionButton, 1, 0 );
- QPushButton *changeExceptionButton = new QPushButton( i18n("&Change"), box );
- QWhatsThis::add( changeExceptionButton,
+ TQPushButton *changeExceptionButton = new TQPushButton( i18n("&Change"), box );
+ TQWhatsThis::add( changeExceptionButton,
i18n("Replace the currently selected date with this date.") );
boxLayout->addWidget( changeExceptionButton, 2, 0 );
- QPushButton *deleteExceptionButton = new QPushButton( i18n("&Delete"), box );
- QWhatsThis::add( deleteExceptionButton,
+ TQPushButton *deleteExceptionButton = new TQPushButton( i18n("&Delete"), box );
+ TQWhatsThis::add( deleteExceptionButton,
i18n("Delete the currently selected date from the list of dates "
"that should be considered exceptions to the recurrence rules "
"for this event or to-do.") );
boxLayout->addWidget( deleteExceptionButton, 3, 0 );
- mExceptionList = new QListBox( box );
- QWhatsThis::add( mExceptionList,
+ mExceptionList = new TQListBox( box );
+ TQWhatsThis::add( mExceptionList,
i18n("Displays current dates that are being considered "
"exceptions to the recurrence rules for this event "
"or to-do.") );
@@ -619,18 +619,18 @@ ExceptionsWidget::ExceptionsWidget( QWidget *parent, const char *name ) :
boxLayout->setRowStretch( 4, 1 );
boxLayout->setColStretch( 1, 3 );
- connect( addExceptionButton, SIGNAL( clicked() ),
- SLOT( addException() ) );
- connect( changeExceptionButton, SIGNAL( clicked() ),
- SLOT( changeException() ) );
- connect( deleteExceptionButton, SIGNAL( clicked() ),
- SLOT( deleteException() ) );
+ connect( addExceptionButton, TQT_SIGNAL( clicked() ),
+ TQT_SLOT( addException() ) );
+ connect( changeExceptionButton, TQT_SIGNAL( clicked() ),
+ TQT_SLOT( changeException() ) );
+ connect( deleteExceptionButton, TQT_SIGNAL( clicked() ),
+ TQT_SLOT( deleteException() ) );
}
void ExceptionsWidget::addException()
{
- QDate date = mExceptionDateEdit->date();
- QString dateStr = KGlobal::locale()->formatDate( date );
+ TQDate date = mExceptionDateEdit->date();
+ TQString dateStr = KGlobal::locale()->formatDate( date );
if( !mExceptionList->findItem( dateStr ) ) {
mExceptionDates.append( date );
mExceptionList->insertItem( dateStr );
@@ -642,7 +642,7 @@ void ExceptionsWidget::changeException()
int pos = mExceptionList->currentItem();
if ( pos < 0 ) return;
- QDate date = mExceptionDateEdit->date();
+ TQDate date = mExceptionDateEdit->date();
mExceptionDates[ pos ] = date;
mExceptionList->changeItem( KGlobal::locale()->formatDate( date ), pos );
}
@@ -674,7 +674,7 @@ DateList ExceptionsWidget::dates()
///////////////////////// ExceptionsDialog ///////////////////////////
-ExceptionsDialog::ExceptionsDialog( QWidget *parent, const char *name ) :
+ExceptionsDialog::ExceptionsDialog( TQWidget *parent, const char *name ) :
KDialogBase( parent, name, true, i18n("Edit Exceptions"), Ok|Cancel )
{
mExceptions = new ExceptionsWidget( this );
@@ -693,86 +693,86 @@ DateList ExceptionsDialog::dates()
///////////////////////// RecurrenceRangeWidget ///////////////////////////
-RecurrenceRangeWidget::RecurrenceRangeWidget( QWidget *parent,
+RecurrenceRangeWidget::RecurrenceRangeWidget( TQWidget *parent,
const char *name )
- : QWidget( parent, name )
+ : TQWidget( parent, name )
{
- QBoxLayout *topLayout = new QVBoxLayout( this );
+ TQBoxLayout *topLayout = new TQVBoxLayout( this );
- mRangeGroupBox = new QGroupBox( 1, Horizontal, i18n("Recurrence Range"),
+ mRangeGroupBox = new TQGroupBox( 1, Horizontal, i18n("Recurrence Range"),
this );
- QWhatsThis::add( mRangeGroupBox,
+ TQWhatsThis::add( mRangeGroupBox,
i18n("Sets a range for which these recurrence rules will "
"apply to this event or to-do.") );
topLayout->addWidget( mRangeGroupBox );
- QWidget *rangeBox = new QWidget( mRangeGroupBox );
- QVBoxLayout *rangeLayout = new QVBoxLayout( rangeBox );
+ TQWidget *rangeBox = new TQWidget( mRangeGroupBox );
+ TQVBoxLayout *rangeLayout = new TQVBoxLayout( rangeBox );
rangeLayout->setSpacing( KDialog::spacingHint() );
- mStartDateLabel = new QLabel( i18n("Begin on:"), rangeBox );
- QWhatsThis::add( mStartDateLabel,
+ mStartDateLabel = new TQLabel( i18n("Begin on:"), rangeBox );
+ TQWhatsThis::add( mStartDateLabel,
i18n("The date on which the recurrences for this event or to-do "
"should begin.") );
rangeLayout->addWidget( mStartDateLabel );
- QButtonGroup *rangeButtonGroup = new QButtonGroup( this );
+ TQButtonGroup *rangeButtonGroup = new TQButtonGroup( this );
rangeButtonGroup->hide();
- mNoEndDateButton = new QRadioButton( i18n("&No ending date"), rangeBox );
- QWhatsThis::add( mNoEndDateButton,
+ mNoEndDateButton = new TQRadioButton( i18n("&No ending date"), rangeBox );
+ TQWhatsThis::add( mNoEndDateButton,
i18n("Sets the event or to-do to recur forever.") );
rangeButtonGroup->insert( mNoEndDateButton );
rangeLayout->addWidget( mNoEndDateButton );
- QBoxLayout *durationLayout = new QHBoxLayout( rangeLayout );
+ TQBoxLayout *durationLayout = new TQHBoxLayout( rangeLayout );
durationLayout->setSpacing( KDialog::spacingHint() );
- mEndDurationButton = new QRadioButton( i18n("End &after"), rangeBox );
- QWhatsThis::add( mEndDurationButton,
+ mEndDurationButton = new TQRadioButton( i18n("End &after"), rangeBox );
+ TQWhatsThis::add( mEndDurationButton,
i18n("Sets the event or to-do to stop recurring after a "
"certain number of occurrences.") );
rangeButtonGroup->insert( mEndDurationButton );
durationLayout->addWidget( mEndDurationButton );
- QString whatsThis = i18n("Number of times the event or to-do should recur "
+ TQString whatsThis = i18n("Number of times the event or to-do should recur "
"before stopping.");
- mEndDurationEdit = new QSpinBox( 1, 9999, 1, rangeBox );
- QWhatsThis::add( mEndDurationEdit, whatsThis );
+ mEndDurationEdit = new TQSpinBox( 1, 9999, 1, rangeBox );
+ TQWhatsThis::add( mEndDurationEdit, whatsThis );
durationLayout->addWidget( mEndDurationEdit );
- QLabel *endDurationLabel = new QLabel( i18n("&occurrence(s)"), rangeBox );
- QWhatsThis::add( endDurationLabel, whatsThis );
+ TQLabel *endDurationLabel = new TQLabel( i18n("&occurrence(s)"), rangeBox );
+ TQWhatsThis::add( endDurationLabel, whatsThis );
durationLayout ->addWidget( endDurationLabel );
endDurationLabel->setBuddy( mEndDurationEdit );
- QBoxLayout *endDateLayout = new QHBoxLayout( rangeLayout );
+ TQBoxLayout *endDateLayout = new TQHBoxLayout( rangeLayout );
endDateLayout->setSpacing( KDialog::spacingHint() );
- mEndDateButton = new QRadioButton( i18n("End &on:"), rangeBox );
- QWhatsThis::add( mEndDateButton,
+ mEndDateButton = new TQRadioButton( i18n("End &on:"), rangeBox );
+ TQWhatsThis::add( mEndDateButton,
i18n("Sets the event or to-do to stop recurring on "
"a certain date.") );
rangeButtonGroup->insert( mEndDateButton );
endDateLayout->addWidget( mEndDateButton );
mEndDateEdit = new KDateEdit( rangeBox );
- QWhatsThis::add( mEndDateEdit,
+ TQWhatsThis::add( mEndDateEdit,
i18n("Date after which the event or to-do should stop "
"recurring") );
endDateLayout->addWidget( mEndDateEdit );
endDateLayout->addStretch( 1 );
- connect( mNoEndDateButton, SIGNAL( toggled( bool ) ),
- SLOT( showCurrentRange() ) );
- connect( mEndDurationButton, SIGNAL( toggled( bool ) ),
- SLOT( showCurrentRange() ) );
- connect( mEndDateButton, SIGNAL( toggled( bool ) ),
- SLOT( showCurrentRange() ) );
+ connect( mNoEndDateButton, TQT_SIGNAL( toggled( bool ) ),
+ TQT_SLOT( showCurrentRange() ) );
+ connect( mEndDurationButton, TQT_SIGNAL( toggled( bool ) ),
+ TQT_SLOT( showCurrentRange() ) );
+ connect( mEndDateButton, TQT_SIGNAL( toggled( bool ) ),
+ TQT_SLOT( showCurrentRange() ) );
}
-void RecurrenceRangeWidget::setDefaults( const QDateTime &from )
+void RecurrenceRangeWidget::setDefaults( const TQDateTime &from )
{
mNoEndDateButton->setChecked( true );
@@ -803,12 +803,12 @@ int RecurrenceRangeWidget::duration()
}
}
-void RecurrenceRangeWidget::setEndDate( const QDate &date )
+void RecurrenceRangeWidget::setEndDate( const TQDate &date )
{
mEndDateEdit->setDate( date );
}
-QDate RecurrenceRangeWidget::endDate()
+TQDate RecurrenceRangeWidget::endDate()
{
return mEndDateEdit->date();
}
@@ -819,8 +819,8 @@ void RecurrenceRangeWidget::showCurrentRange()
mEndDateEdit->setEnabled( mEndDateButton->isChecked() );
}
-void RecurrenceRangeWidget::setDateTimes( const QDateTime &start,
- const QDateTime & )
+void RecurrenceRangeWidget::setDateTimes( const TQDateTime &start,
+ const TQDateTime & )
{
mStartDateLabel->setText( i18n("Begins on: %1")
.arg( KGlobal::locale()->formatDate( start.date() ) ) );
@@ -828,7 +828,7 @@ void RecurrenceRangeWidget::setDateTimes( const QDateTime &start,
///////////////////////// RecurrenceRangeDialog ///////////////////////////
-RecurrenceRangeDialog::RecurrenceRangeDialog( QWidget *parent,
+RecurrenceRangeDialog::RecurrenceRangeDialog( TQWidget *parent,
const char *name ) :
KDialogBase( parent, name, true, i18n("Edit Recurrence Range"), Ok|Cancel )
{
@@ -836,7 +836,7 @@ RecurrenceRangeDialog::RecurrenceRangeDialog( QWidget *parent,
setMainWidget( mRecurrenceRangeWidget );
}
-void RecurrenceRangeDialog::setDefaults( const QDateTime &from )
+void RecurrenceRangeDialog::setDefaults( const TQDateTime &from )
{
mRecurrenceRangeWidget->setDefaults( from );
}
@@ -851,32 +851,32 @@ int RecurrenceRangeDialog::duration()
return mRecurrenceRangeWidget->duration();
}
-void RecurrenceRangeDialog::setEndDate( const QDate &date )
+void RecurrenceRangeDialog::setEndDate( const TQDate &date )
{
mRecurrenceRangeWidget->setEndDate( date );
}
-QDate RecurrenceRangeDialog::endDate()
+TQDate RecurrenceRangeDialog::endDate()
{
return mRecurrenceRangeWidget->endDate();
}
-void RecurrenceRangeDialog::setDateTimes( const QDateTime &start,
- const QDateTime &end )
+void RecurrenceRangeDialog::setDateTimes( const TQDateTime &start,
+ const TQDateTime &end )
{
mRecurrenceRangeWidget->setDateTimes( start, end );
}
//////////////////////////// RecurrenceChooser ////////////////////////
-RecurrenceChooser::RecurrenceChooser( QWidget *parent, const char *name ) :
- QWidget( parent, name )
+RecurrenceChooser::RecurrenceChooser( TQWidget *parent, const char *name ) :
+ TQWidget( parent, name )
{
- QBoxLayout *topLayout = new QVBoxLayout( this );
+ TQBoxLayout *topLayout = new TQVBoxLayout( this );
if ( KOPrefs::instance()->mCompactDialogs ) {
- mTypeCombo = new QComboBox( this );
- QWhatsThis::add( mTypeCombo,
+ mTypeCombo = new TQComboBox( this );
+ TQWhatsThis::add( mTypeCombo,
i18n("Sets the type of recurrence this event or to-do "
"should have.") );
mTypeCombo->insertItem( i18n("Daily") );
@@ -886,39 +886,39 @@ RecurrenceChooser::RecurrenceChooser( QWidget *parent, const char *name ) :
topLayout->addWidget( mTypeCombo );
- connect( mTypeCombo, SIGNAL( activated( int ) ), SLOT( emitChoice() ) );
+ connect( mTypeCombo, TQT_SIGNAL( activated( int ) ), TQT_SLOT( emitChoice() ) );
} else {
mTypeCombo = 0;
- QButtonGroup *ruleButtonGroup = new QButtonGroup( 1, Horizontal, this );
- ruleButtonGroup->setFrameStyle( QFrame::NoFrame );
+ TQButtonGroup *ruleButtonGroup = new TQButtonGroup( 1, Horizontal, this );
+ ruleButtonGroup->setFrameStyle( TQFrame::NoFrame );
topLayout->addWidget( ruleButtonGroup );
- mDailyButton = new QRadioButton( i18n("&Daily"), ruleButtonGroup );
- QWhatsThis::add( mDailyButton,
+ mDailyButton = new TQRadioButton( i18n("&Daily"), ruleButtonGroup );
+ TQWhatsThis::add( mDailyButton,
i18n("Sets the event or to-do to recur daily according "
"to the specified rules.") );
- mWeeklyButton = new QRadioButton( i18n("&Weekly"), ruleButtonGroup );
- QWhatsThis::add( mWeeklyButton,
+ mWeeklyButton = new TQRadioButton( i18n("&Weekly"), ruleButtonGroup );
+ TQWhatsThis::add( mWeeklyButton,
i18n("Sets the event or to-do to recur weekly according "
"to the specified rules.") );
- mMonthlyButton = new QRadioButton( i18n("&Monthly"), ruleButtonGroup );
- QWhatsThis::add( mMonthlyButton,
+ mMonthlyButton = new TQRadioButton( i18n("&Monthly"), ruleButtonGroup );
+ TQWhatsThis::add( mMonthlyButton,
i18n("Sets the event or to-do to recur monthly according "
"to the specified rules.") );
- mYearlyButton = new QRadioButton( i18n("&Yearly"), ruleButtonGroup );
- QWhatsThis::add( mYearlyButton,
+ mYearlyButton = new TQRadioButton( i18n("&Yearly"), ruleButtonGroup );
+ TQWhatsThis::add( mYearlyButton,
i18n("Sets the event or to-do to recur yearly according "
"to the specified rules.") );
- connect( mDailyButton, SIGNAL( toggled( bool ) ),
- SLOT( emitChoice() ) );
- connect( mWeeklyButton, SIGNAL( toggled( bool ) ),
- SLOT( emitChoice() ) );
- connect( mMonthlyButton, SIGNAL( toggled( bool ) ),
- SLOT( emitChoice() ) );
- connect( mYearlyButton, SIGNAL( toggled( bool ) ),
- SLOT( emitChoice() ) );
+ connect( mDailyButton, TQT_SIGNAL( toggled( bool ) ),
+ TQT_SLOT( emitChoice() ) );
+ connect( mWeeklyButton, TQT_SIGNAL( toggled( bool ) ),
+ TQT_SLOT( emitChoice() ) );
+ connect( mMonthlyButton, TQT_SIGNAL( toggled( bool ) ),
+ TQT_SLOT( emitChoice() ) );
+ connect( mYearlyButton, TQT_SIGNAL( toggled( bool ) ),
+ TQT_SLOT( emitChoice() ) );
}
}
@@ -964,24 +964,24 @@ void RecurrenceChooser::emitChoice()
/////////////////////////////// Main Widget /////////////////////////////
-KOEditorRecurrence::KOEditorRecurrence( QWidget* parent, const char *name ) :
- QWidget( parent, name )
+KOEditorRecurrence::KOEditorRecurrence( TQWidget* parent, const char *name ) :
+ TQWidget( parent, name )
{
- QGridLayout *topLayout = new QGridLayout( this );
+ TQGridLayout *topLayout = new TQGridLayout( this );
topLayout->setSpacing( KDialog::spacingHint() );
- mEnabledCheck = new QCheckBox( i18n("&Enable recurrence"), this );
- QWhatsThis::add( mEnabledCheck,
+ mEnabledCheck = new TQCheckBox( i18n("&Enable recurrence"), this );
+ TQWhatsThis::add( mEnabledCheck,
i18n("Enables recurrence for this event or to-do according "
"to the specified rules.") );
- connect( mEnabledCheck, SIGNAL( toggled( bool ) ),
- SLOT( setRecurrenceEnabled( bool ) ) );
+ connect( mEnabledCheck, TQT_SIGNAL( toggled( bool ) ),
+ TQT_SLOT( setRecurrenceEnabled( bool ) ) );
topLayout->addMultiCellWidget( mEnabledCheck, 0, 0, 0, 1 );
- mTimeGroupBox = new QGroupBox( 1, Horizontal, i18n("Appointment Time "),
+ mTimeGroupBox = new TQGroupBox( 1, Horizontal, i18n("Appointment Time "),
this );
- QWhatsThis::add( mTimeGroupBox,
+ TQWhatsThis::add( mTimeGroupBox,
i18n("Displays appointment time information.") );
topLayout->addMultiCellWidget( mTimeGroupBox, 1, 1 , 0 , 1 );
@@ -989,20 +989,20 @@ KOEditorRecurrence::KOEditorRecurrence( QWidget* parent, const char *name ) :
mTimeGroupBox->hide();
}
-// QFrame *timeFrame = new QFrame( mTimeGroupBox );
-// QBoxLayout *layoutTimeFrame = new QHBoxLayout( timeFrame );
+// TQFrame *timeFrame = new TQFrame( mTimeGroupBox );
+// TQBoxLayout *layoutTimeFrame = new TQHBoxLayout( timeFrame );
// layoutTimeFrame->setSpacing( KDialog::spacingHint() );
- mDateTimeLabel = new QLabel( mTimeGroupBox );
-// mDateTimeLabel = new QLabel( timeFrame );
+ mDateTimeLabel = new TQLabel( mTimeGroupBox );
+// mDateTimeLabel = new TQLabel( timeFrame );
// layoutTimeFrame->addWidget( mDateTimeLabel );
Qt::Orientation orientation;
if ( KOPrefs::instance()->mCompactDialogs ) orientation = Horizontal;
else orientation = Vertical;
- mRuleBox = new QGroupBox( 1, orientation, i18n("Recurrence Rule"), this );
- QWhatsThis::add( mRuleBox,
+ mRuleBox = new TQGroupBox( 1, orientation, i18n("Recurrence Rule"), this );
+ TQWhatsThis::add( mRuleBox,
i18n("Options concerning the type of recurrence this event "
"or to-do should have.") );
if ( KOPrefs::instance()->mCompactDialogs ) {
@@ -1012,15 +1012,15 @@ KOEditorRecurrence::KOEditorRecurrence( QWidget* parent, const char *name ) :
}
mRecurrenceChooser = new RecurrenceChooser( mRuleBox );
- connect( mRecurrenceChooser, SIGNAL( chosen( int ) ),
- SLOT( showCurrentRule( int ) ) );
+ connect( mRecurrenceChooser, TQT_SIGNAL( chosen( int ) ),
+ TQT_SLOT( showCurrentRule( int ) ) );
if ( !KOPrefs::instance()->mCompactDialogs ) {
- QFrame *ruleSepFrame = new QFrame( mRuleBox );
- ruleSepFrame->setFrameStyle( QFrame::VLine | QFrame::Sunken );
+ TQFrame *ruleSepFrame = new TQFrame( mRuleBox );
+ ruleSepFrame->setFrameStyle( TQFrame::VLine | TQFrame::Sunken );
}
- mRuleStack = new QWidgetStack( mRuleBox );
+ mRuleStack = new TQWidgetStack( mRuleBox );
mDaily = new RecurDaily( mRuleStack );
mRuleStack->addWidget( mDaily, 0 );
@@ -1040,26 +1040,26 @@ KOEditorRecurrence::KOEditorRecurrence( QWidget* parent, const char *name ) :
mRecurrenceRangeWidget = 0;
mRecurrenceRangeDialog = new RecurrenceRangeDialog( this );
mRecurrenceRange = mRecurrenceRangeDialog;
- mRecurrenceRangeButton = new QPushButton( i18n("Recurrence Range..."),
+ mRecurrenceRangeButton = new TQPushButton( i18n("Recurrence Range..."),
this );
- QWhatsThis::add( mRecurrenceRangeButton,
+ TQWhatsThis::add( mRecurrenceRangeButton,
i18n("Options concerning the time range during which "
"this event or to-do should recur.") );
topLayout->addWidget( mRecurrenceRangeButton, 3, 0 );
- connect( mRecurrenceRangeButton, SIGNAL( clicked() ),
- SLOT( showRecurrenceRangeDialog() ) );
+ connect( mRecurrenceRangeButton, TQT_SIGNAL( clicked() ),
+ TQT_SLOT( showRecurrenceRangeDialog() ) );
mExceptionsWidget = 0;
mExceptionsDialog = new ExceptionsDialog( this );
mExceptions = mExceptionsDialog;
- mExceptionsButton = new QPushButton( i18n("Exceptions..."), this );
+ mExceptionsButton = new TQPushButton( i18n("Exceptions..."), this );
topLayout->addWidget( mExceptionsButton, 4, 0 );
- connect( mExceptionsButton, SIGNAL( clicked() ),
- SLOT( showExceptionsDialog() ) );
+ connect( mExceptionsButton, TQT_SIGNAL( clicked() ),
+ TQT_SLOT( showExceptionsDialog() ) );
} else {
mRecurrenceRangeWidget = new RecurrenceRangeWidget( this );
- QWhatsThis::add( mRecurrenceRangeWidget,
+ TQWhatsThis::add( mRecurrenceRangeWidget,
i18n("Options concerning the time range during which "
"this event or to-do should recur.") );
mRecurrenceRangeDialog = 0;
@@ -1110,7 +1110,7 @@ void KOEditorRecurrence::showCurrentRule( int current )
}
}
-void KOEditorRecurrence::setDateTimes( const QDateTime &start, const QDateTime &end )
+void KOEditorRecurrence::setDateTimes( const TQDateTime &start, const TQDateTime &end )
{
// kdDebug(5850) << "KOEditorRecurrence::setDateTimes" << endl;
@@ -1126,7 +1126,7 @@ void KOEditorRecurrence::setDateTimes( const QDateTime &start, const QDateTime &
int type = mRecurrenceChooser->type();
if ( !enabled || type != RecurrenceChooser::Weekly ) {
- QBitArray days( 7 );
+ TQBitArray days( 7 );
days.fill( 0 );
days.setBit( (start.date().dayOfWeek()+6) % 7 );
mWeekly->setDays( days );
@@ -1143,7 +1143,7 @@ void KOEditorRecurrence::setDateTimes( const QDateTime &start, const QDateTime &
}
}
-void KOEditorRecurrence::setDefaults( const QDateTime &from, const QDateTime &to, bool )
+void KOEditorRecurrence::setDefaults( const TQDateTime &from, const TQDateTime &to, bool )
{
setDateTimes( from, to );
@@ -1159,7 +1159,7 @@ void KOEditorRecurrence::setDefaults( const QDateTime &from, const QDateTime &to
mDaily->setFrequency( 1 );
mWeekly->setFrequency( 1 );
- QBitArray days( 7 );
+ TQBitArray days( 7 );
days.fill( 0 );
days.setBit( (from.date().dayOfWeek()+6) % 7 );
mWeekly->setDays( days );
@@ -1179,7 +1179,7 @@ void KOEditorRecurrence::readIncidence(Incidence *incidence)
{
if (!incidence) return;
- QBitArray rDays( 7 );
+ TQBitArray rDays( 7 );
int day = 0;
int count = 0;
int month = 0;
@@ -1224,7 +1224,7 @@ void KOEditorRecurrence::readIncidence(Incidence *incidence)
// more extended, this can be changed.
recurrenceType = RecurrenceChooser::Monthly;
- QValueList<RecurrenceRule::WDayPos> rmp = r->monthPositions();
+ TQValueList<RecurrenceRule::WDayPos> rmp = r->monthPositions();
if ( !rmp.isEmpty() ) {
mMonthly->setByPos( rmp.first().pos(), rmp.first().day() );
}
@@ -1235,7 +1235,7 @@ void KOEditorRecurrence::readIncidence(Incidence *incidence)
case Recurrence::rMonthlyDay: {
recurrenceType = RecurrenceChooser::Monthly;
- QValueList<int> rmd = r->monthDays();
+ TQValueList<int> rmd = r->monthDays();
// check if we have any setting for which day (vcs import is broken and
// does not set any day, thus we need to check)
if ( rmd.isEmpty() ) {
@@ -1250,7 +1250,7 @@ void KOEditorRecurrence::readIncidence(Incidence *incidence)
break; }
case Recurrence::rYearlyMonth: {
recurrenceType = RecurrenceChooser::Yearly;
- QValueList<int> rmd = r->yearDates();
+ TQValueList<int> rmd = r->yearDates();
if ( rmd.isEmpty() ) {
day = incidence->dtStart().date().day();
} else {
@@ -1266,14 +1266,14 @@ void KOEditorRecurrence::readIncidence(Incidence *incidence)
case Recurrence::rYearlyPos: {
recurrenceType = RecurrenceChooser::Yearly;
- QValueList<int> months = r->yearMonths();
+ TQValueList<int> months = r->yearMonths();
if ( months.isEmpty() ) {
month = incidence->dtStart().date().month();
} else {
month = months.first();
}
- QValueList<RecurrenceRule::WDayPos> pos = r->yearPositions();
+ TQValueList<RecurrenceRule::WDayPos> pos = r->yearPositions();
if ( pos.isEmpty() ) {
// Use dtStart if nothing is given (shouldn't happen!)
@@ -1288,7 +1288,7 @@ void KOEditorRecurrence::readIncidence(Incidence *incidence)
break; }
case Recurrence::rYearlyDay: {
recurrenceType = RecurrenceChooser::Yearly;
- QValueList<int> days = r->yearDays();
+ TQValueList<int> days = r->yearDays();
if ( days.isEmpty() ) {
day = incidence->dtStart().date().dayOfYear();
} else {
@@ -1330,7 +1330,7 @@ void KOEditorRecurrence::writeIncidence( Incidence *incidence )
r->unsetRecurs();
int duration = mRecurrenceRange->duration();
- QDate endDate;
+ TQDate endDate;
if ( duration == 0 ) endDate = mRecurrenceRange->endDate();
int recurrenceType = mRecurrenceChooser->type();
@@ -1344,7 +1344,7 @@ void KOEditorRecurrence::writeIncidence( Incidence *incidence )
if ( mMonthly->byPos() ) {
int pos = mMonthly->count();
- QBitArray days( 7 );
+ TQBitArray days( 7 );
days.fill( false );
days.setBit( mMonthly->weekday() - 1 );
r->addMonthlyPos( pos, days );
@@ -1362,7 +1362,7 @@ void KOEditorRecurrence::writeIncidence( Incidence *incidence )
break;
case RecurYearly::byPos: {
r->addYearlyMonth( mYearly->posMonth() );
- QBitArray days( 7 );
+ TQBitArray days( 7 );
days.fill( false );
days.setBit( mYearly->posWeekday() - 1 );
r->addYearlyPos( mYearly->posCount(), days );
@@ -1380,7 +1380,7 @@ void KOEditorRecurrence::writeIncidence( Incidence *incidence )
incidence->recurrence()->setExDates( mExceptions->dates() );
}
-void KOEditorRecurrence::setDateTimeStr( const QString &str )
+void KOEditorRecurrence::setDateTimeStr( const TQString &str )
{
mDateTimeLabel->setText( str );
}
@@ -1401,7 +1401,7 @@ bool KOEditorRecurrence::validateInput()
// Check if a weekly recurrence has at least one day selected
// TODO: Get rid of this, it's not really needed (by default the day should be taken from dtStart)
if( mEnabledCheck->isChecked() && recurrenceType == RecurrenceChooser::Weekly ) {
- const QBitArray &days = mWeekly->days();
+ const TQBitArray &days = mWeekly->days();
bool valid = false;
for ( int i=0; i<7; ++i ) valid = valid || days.testBit( i );
if ( !valid ) {
@@ -1418,16 +1418,16 @@ void KOEditorRecurrence::showExceptionsDialog()
{
DateList dates = mExceptions->dates();
int result = mExceptionsDialog->exec();
- if ( result == QDialog::Rejected ) mExceptions->setDates( dates );
+ if ( result == TQDialog::Rejected ) mExceptions->setDates( dates );
}
void KOEditorRecurrence::showRecurrenceRangeDialog()
{
int duration = mRecurrenceRange->duration();
- QDate endDate = mRecurrenceRange->endDate();
+ TQDate endDate = mRecurrenceRange->endDate();
int result = mRecurrenceRangeDialog->exec();
- if ( result == QDialog::Rejected ) {
+ if ( result == TQDialog::Rejected ) {
mRecurrenceRange->setDuration( duration );
mRecurrenceRange->setEndDate( endDate );
}
@@ -1439,7 +1439,7 @@ bool KOEditorRecurrence::doesRecur()
}
-KOEditorRecurrenceDialog::KOEditorRecurrenceDialog(QWidget * parent) :
+KOEditorRecurrenceDialog::KOEditorRecurrenceDialog(TQWidget * parent) :
KDialogBase( parent, 0, false, i18n("Recurrence"), Ok )
{
mRecurrence = new KOEditorRecurrence( this );