From 67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 13 Apr 2011 00:46:47 +0000 Subject: Initial conversion of kdepim to TQt This will probably require some tweaking before it will build under Qt4, however Qt3 builds are OK. Any alterations this commit makes to kdepim behaviour under Qt3 are unintentional and should be fixed. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- korganizer/koeditorrecurrence.cpp | 70 +++++++++++++++++++-------------------- 1 file changed, 35 insertions(+), 35 deletions(-) (limited to 'korganizer/koeditorrecurrence.cpp') diff --git a/korganizer/koeditorrecurrence.cpp b/korganizer/koeditorrecurrence.cpp index 46038834e..834ea1ce2 100644 --- a/korganizer/koeditorrecurrence.cpp +++ b/korganizer/koeditorrecurrence.cpp @@ -18,8 +18,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. As a special exception, permission is given to link this program - with any edition of Qt, and distribute the resulting executable, - without including the source code for Qt in the source distribution. + with any edition of TQt, and distribute the resulting executable, + without including the source code for TQt in the source distribution. */ #include @@ -60,8 +60,8 @@ /////////////////////////// RecurBase /////////////////////////////// -RecurBase::RecurBase( TQWidget *parent, const char *name ) : - TQWidget( parent, name ) +RecurBase::RecurBase( TQWidget *tqparent, const char *name ) : + TQWidget( tqparent, name ) { mFrequencyEdit = new TQSpinBox( 1, 9999, 1, this ); mFrequencyEdit->setValue( 1 ); @@ -84,9 +84,9 @@ int RecurBase::frequency() return mFrequencyEdit->value(); } -TQComboBox *RecurBase::createWeekCountCombo( TQWidget *parent, const char *name ) +TQComboBox *RecurBase::createWeekCountCombo( TQWidget *tqparent, const char *name ) { - TQComboBox *combo = new TQComboBox( parent, name ); + TQComboBox *combo = new TQComboBox( tqparent, name ); TQWhatsThis::add( combo, i18n("The number of the week from the beginning " "of the month on which this event or to-do " @@ -105,9 +105,9 @@ TQComboBox *RecurBase::createWeekCountCombo( TQWidget *parent, const char *name return combo; } -TQComboBox *RecurBase::createWeekdayCombo( TQWidget *parent, const char *name ) +TQComboBox *RecurBase::createWeekdayCombo( TQWidget *tqparent, const char *name ) { - TQComboBox *combo = new TQComboBox( parent, name ); + TQComboBox *combo = new TQComboBox( tqparent, name ); TQWhatsThis::add( combo, i18n("The weekday on which this event or to-do " "should recur.") ); @@ -119,9 +119,9 @@ TQComboBox *RecurBase::createWeekdayCombo( TQWidget *parent, const char *name ) return combo; } -TQComboBox *RecurBase::createMonthNameCombo( TQWidget *parent, const char *name ) +TQComboBox *RecurBase::createMonthNameCombo( TQWidget *tqparent, const char *name ) { - TQComboBox *combo = new TQComboBox( parent, name ); + TQComboBox *combo = new TQComboBox( tqparent, name ); TQWhatsThis::add( combo, i18n("The month during which this event or to-do " "should recur.") ); @@ -135,13 +135,13 @@ TQComboBox *RecurBase::createMonthNameCombo( TQWidget *parent, const char *name return combo; } -TQBoxLayout *RecurBase::createFrequencySpinBar( TQWidget *parent, TQLayout *tqlayout, +TQBoxLayout *RecurBase::createFrequencySpinBar( TQWidget *tqparent, TQLayout *tqlayout, TQString everyText, TQString unitText ) { TQBoxLayout *freqLayout = new TQHBoxLayout( tqlayout ); TQString whatsThis = i18n("Sets how often this event or to-do should recur."); - TQLabel *preLabel = new TQLabel( everyText, parent ); + TQLabel *preLabel = new TQLabel( everyText, tqparent ); TQWhatsThis::add( preLabel, whatsThis ); freqLayout->addWidget( preLabel ); @@ -149,7 +149,7 @@ TQBoxLayout *RecurBase::createFrequencySpinBar( TQWidget *parent, TQLayout *tqla preLabel->setBuddy( frequencyEdit() ); TQWhatsThis::add( preLabel->buddy(), whatsThis ); - TQLabel *postLabel = new TQLabel( unitText, parent ); + TQLabel *postLabel = new TQLabel( unitText, tqparent ); TQWhatsThis::add( postLabel, whatsThis ); freqLayout->addWidget( postLabel ); freqLayout->addStretch(); @@ -158,8 +158,8 @@ TQBoxLayout *RecurBase::createFrequencySpinBar( TQWidget *parent, TQLayout *tqla /////////////////////////// RecurDaily /////////////////////////////// -RecurDaily::RecurDaily( TQWidget *parent, const char *name ) : - RecurBase( parent, name ) +RecurDaily::RecurDaily( TQWidget *tqparent, const char *name ) : + RecurBase( tqparent, name ) { TQBoxLayout *topLayout = new TQVBoxLayout( this ); topLayout->setSpacing( KDialog::spacingHint() ); @@ -170,8 +170,8 @@ RecurDaily::RecurDaily( TQWidget *parent, const char *name ) : /////////////////////////// RecurWeekly /////////////////////////////// -RecurWeekly::RecurWeekly( TQWidget *parent, const char *name ) : - RecurBase( parent, name ) +RecurWeekly::RecurWeekly( TQWidget *tqparent, const char *name ) : + RecurBase( tqparent, name ) { TQBoxLayout *topLayout = new TQVBoxLayout( this ); topLayout->setSpacing( KDialog::spacingHint() ); @@ -223,8 +223,8 @@ TQBitArray RecurWeekly::days() /////////////////////////// RecurMonthly /////////////////////////////// -RecurMonthly::RecurMonthly( TQWidget *parent, const char *name ) : - RecurBase( parent, name ) +RecurMonthly::RecurMonthly( TQWidget *tqparent, const char *name ) : + RecurBase( tqparent, name ) { TQBoxLayout *topLayout = new TQVBoxLayout( this ); topLayout->setSpacing( KDialog::spacingHint() ); @@ -396,8 +396,8 @@ int RecurMonthly::weekday() /////////////////////////// RecurYearly /////////////////////////////// -RecurYearly::RecurYearly( TQWidget *parent, const char *name ) : - RecurBase( parent, name ) +RecurYearly::RecurYearly( TQWidget *tqparent, const char *name ) : + RecurBase( tqparent, name ) { TQBoxLayout *topLayout = new TQVBoxLayout( this ); topLayout->setSpacing( KDialog::spacingHint() ); @@ -573,8 +573,8 @@ int RecurYearly::day() //////////////////////////// ExceptionsWidget ////////////////////////// -ExceptionsWidget::ExceptionsWidget( TQWidget *parent, const char *name ) : - TQWidget( parent, name ) +ExceptionsWidget::ExceptionsWidget( TQWidget *tqparent, const char *name ) : + TQWidget( tqparent, name ) { TQBoxLayout *topLayout = new TQVBoxLayout( this ); @@ -675,8 +675,8 @@ DateList ExceptionsWidget::dates() ///////////////////////// ExceptionsDialog /////////////////////////// -ExceptionsDialog::ExceptionsDialog( TQWidget *parent, const char *name ) : - KDialogBase( parent, name, true, i18n("Edit Exceptions"), Ok|Cancel ) +ExceptionsDialog::ExceptionsDialog( TQWidget *tqparent, const char *name ) : + KDialogBase( tqparent, name, true, i18n("Edit Exceptions"), Ok|Cancel ) { mExceptions = new ExceptionsWidget( this ); setMainWidget( mExceptions ); @@ -694,9 +694,9 @@ DateList ExceptionsDialog::dates() ///////////////////////// RecurrenceRangeWidget /////////////////////////// -RecurrenceRangeWidget::RecurrenceRangeWidget( TQWidget *parent, +RecurrenceRangeWidget::RecurrenceRangeWidget( TQWidget *tqparent, const char *name ) - : TQWidget( parent, name ) + : TQWidget( tqparent, name ) { TQBoxLayout *topLayout = new TQVBoxLayout( this ); @@ -829,9 +829,9 @@ void RecurrenceRangeWidget::setDateTimes( const TQDateTime &start, ///////////////////////// RecurrenceRangeDialog /////////////////////////// -RecurrenceRangeDialog::RecurrenceRangeDialog( TQWidget *parent, +RecurrenceRangeDialog::RecurrenceRangeDialog( TQWidget *tqparent, const char *name ) : - KDialogBase( parent, name, true, i18n("Edit Recurrence Range"), Ok|Cancel ) + KDialogBase( tqparent, name, true, i18n("Edit Recurrence Range"), Ok|Cancel ) { mRecurrenceRangeWidget = new RecurrenceRangeWidget( this ); setMainWidget( mRecurrenceRangeWidget ); @@ -870,8 +870,8 @@ void RecurrenceRangeDialog::setDateTimes( const TQDateTime &start, //////////////////////////// RecurrenceChooser //////////////////////// -RecurrenceChooser::RecurrenceChooser( TQWidget *parent, const char *name ) : - TQWidget( parent, name ) +RecurrenceChooser::RecurrenceChooser( TQWidget *tqparent, const char *name ) : + TQWidget( tqparent, name ) { TQBoxLayout *topLayout = new TQVBoxLayout( this ); @@ -965,8 +965,8 @@ void RecurrenceChooser::emitChoice() /////////////////////////////// Main Widget ///////////////////////////// -KOEditorRecurrence::KOEditorRecurrence( TQWidget* parent, const char *name ) : - TQWidget( parent, name ) +KOEditorRecurrence::KOEditorRecurrence( TQWidget* tqparent, const char *name ) : + TQWidget( tqparent, name ) { TQGridLayout *topLayout = new TQGridLayout( this ); topLayout->setSpacing( KDialog::spacingHint() ); @@ -1633,8 +1633,8 @@ void KOEditorRecurrence::restoreValues() mExceptions->setDates( mSaveRec.exDates() ); } -KOEditorRecurrenceDialog::KOEditorRecurrenceDialog(TQWidget * parent) - : KDialogBase( parent, 0, false, i18n("Recurrence"), Ok|Cancel ), mRecurEnabled( false ) +KOEditorRecurrenceDialog::KOEditorRecurrenceDialog(TQWidget * tqparent) + : KDialogBase( tqparent, 0, false, i18n("Recurrence"), Ok|Cancel ), mRecurEnabled( false ) { mRecurrence = new KOEditorRecurrence( this ); setMainWidget( mRecurrence ); -- cgit v1.2.1