summaryrefslogtreecommitdiffstats
path: root/kalarm/recurrenceedit.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-02-16 20:17:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-02-16 20:17:18 +0000
commitf4fae92b6768541e2952173c3d4b09040f95bf7e (patch)
treed8c5d93232235cd635f3310b4d95490df181ba2d /kalarm/recurrenceedit.cpp
parent125c0a08265b75a133644d3b55f47e37c919f45d (diff)
downloadtdepim-f4fae92b6768541e2952173c3d4b09040f95bf7e.tar.gz
tdepim-f4fae92b6768541e2952173c3d4b09040f95bf7e.zip
Moved kpilot from kdepim to applications, as the core Trinity libraries should not contain hardware-dependent software
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1221127 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kalarm/recurrenceedit.cpp')
-rw-r--r--kalarm/recurrenceedit.cpp188
1 files changed, 94 insertions, 94 deletions
diff --git a/kalarm/recurrenceedit.cpp b/kalarm/recurrenceedit.cpp
index bc70e4fe0..3924d428b 100644
--- a/kalarm/recurrenceedit.cpp
+++ b/kalarm/recurrenceedit.cpp
@@ -93,7 +93,7 @@ RecurrenceEdit::RecurrenceEdit(bool readOnly, TQWidget* parent, const char* name
mNoEmitTypeChanged(true),
mReadOnly(readOnly)
{
- TQBoxLayout* layout;
+ TQBoxLayout* tqlayout;
TQVBoxLayout* topLayout = new TQVBoxLayout(this, 0, KDialog::spacingHint());
/* Create the recurrence rule Group box which holds the recurrence period
@@ -106,11 +106,11 @@ RecurrenceEdit::RecurrenceEdit(bool readOnly, TQWidget* parent, const char* name
TQGroupBox* recurGroup = new TQGroupBox(1, Qt::Vertical, i18n("Recurrence Rule"), this, "recurGroup");
topLayout->addWidget(recurGroup);
TQFrame* ruleFrame = new TQFrame(recurGroup, "ruleFrame");
- layout = new TQVBoxLayout(ruleFrame, 0);
- layout->addSpacing(KDialog::spacingHint()/2);
+ tqlayout = new TQVBoxLayout(ruleFrame, 0);
+ tqlayout->addSpacing(KDialog::spacingHint()/2);
- layout = new TQHBoxLayout(layout, 0);
- TQBoxLayout* lay = new TQVBoxLayout(layout, 0);
+ tqlayout = new TQHBoxLayout(tqlayout, 0);
+ TQBoxLayout* lay = new TQVBoxLayout(tqlayout, 0);
mRuleButtonGroup = new ButtonGroup(1, Qt::Horizontal, ruleFrame);
mRuleButtonGroup->setInsideMargin(0);
mRuleButtonGroup->setFrameStyle(TQFrame::NoFrame);
@@ -119,43 +119,43 @@ RecurrenceEdit::RecurrenceEdit(bool readOnly, TQWidget* parent, const char* name
connect(mRuleButtonGroup, TQT_SIGNAL(buttonSet(int)), TQT_SLOT(periodClicked(int)));
mNoneButton = new RadioButton(i18n_Norecur(), mRuleButtonGroup);
- mNoneButton->setFixedSize(mNoneButton->sizeHint());
+ mNoneButton->setFixedSize(mNoneButton->tqsizeHint());
mNoneButton->setReadOnly(mReadOnly);
TQWhatsThis::add(mNoneButton, i18n("Do not repeat the alarm"));
mAtLoginButton = new RadioButton(i18n_l_Atlogin(), mRuleButtonGroup);
- mAtLoginButton->setFixedSize(mAtLoginButton->sizeHint());
+ mAtLoginButton->setFixedSize(mAtLoginButton->tqsizeHint());
mAtLoginButton->setReadOnly(mReadOnly);
TQWhatsThis::add(mAtLoginButton,
i18n("Trigger the alarm at the specified date/time and at every login until then.\n"
"Note that it will also be triggered any time the alarm daemon is restarted."));
mSubDailyButton = new RadioButton(i18n_u_HourlyMinutely(), mRuleButtonGroup);
- mSubDailyButton->setFixedSize(mSubDailyButton->sizeHint());
+ mSubDailyButton->setFixedSize(mSubDailyButton->tqsizeHint());
mSubDailyButton->setReadOnly(mReadOnly);
TQWhatsThis::add(mSubDailyButton,
i18n("Repeat the alarm at hourly/minutely intervals"));
mDailyButton = new RadioButton(i18n_d_Daily(), mRuleButtonGroup);
- mDailyButton->setFixedSize(mDailyButton->sizeHint());
+ mDailyButton->setFixedSize(mDailyButton->tqsizeHint());
mDailyButton->setReadOnly(mReadOnly);
TQWhatsThis::add(mDailyButton,
i18n("Repeat the alarm at daily intervals"));
mWeeklyButton = new RadioButton(i18n_w_Weekly(), mRuleButtonGroup);
- mWeeklyButton->setFixedSize(mWeeklyButton->sizeHint());
+ mWeeklyButton->setFixedSize(mWeeklyButton->tqsizeHint());
mWeeklyButton->setReadOnly(mReadOnly);
TQWhatsThis::add(mWeeklyButton,
i18n("Repeat the alarm at weekly intervals"));
mMonthlyButton = new RadioButton(i18n_m_Monthly(), mRuleButtonGroup);
- mMonthlyButton->setFixedSize(mMonthlyButton->sizeHint());
+ mMonthlyButton->setFixedSize(mMonthlyButton->tqsizeHint());
mMonthlyButton->setReadOnly(mReadOnly);
TQWhatsThis::add(mMonthlyButton,
i18n("Repeat the alarm at monthly intervals"));
mYearlyButton = new RadioButton(i18n_y_Yearly(), mRuleButtonGroup);
- mYearlyButton->setFixedSize(mYearlyButton->sizeHint());
+ mYearlyButton->setFixedSize(mYearlyButton->tqsizeHint());
mYearlyButton->setReadOnly(mReadOnly);
TQWhatsThis::add(mYearlyButton,
i18n("Repeat the alarm at annual intervals"));
@@ -170,7 +170,7 @@ RecurrenceEdit::RecurrenceEdit(bool readOnly, TQWidget* parent, const char* name
// Sub-repetition button
mSubRepetition = new RepetitionButton(i18n("Sub-Repetition"), true, ruleFrame);
- mSubRepetition->setFixedSize(mSubRepetition->sizeHint());
+ mSubRepetition->setFixedSize(mSubRepetition->tqsizeHint());
mSubRepetition->setReadOnly(mReadOnly);
connect(mSubRepetition, TQT_SIGNAL(needsInitialisation()), TQT_SIGNAL(repeatNeedsInitialisation()));
connect(mSubRepetition, TQT_SIGNAL(changed()), TQT_SIGNAL(frequencyChanged()));
@@ -178,16 +178,16 @@ RecurrenceEdit::RecurrenceEdit(bool readOnly, TQWidget* parent, const char* name
lay->addSpacing(KDialog::spacingHint());
lay->addWidget(mSubRepetition);
- lay = new TQVBoxLayout(layout);
+ lay = new TQVBoxLayout(tqlayout);
lay->addStretch();
- layout = new TQHBoxLayout(lay);
+ tqlayout = new TQHBoxLayout(lay);
- layout->addSpacing(KDialog::marginHint());
+ tqlayout->addSpacing(KDialog::marginHint());
TQFrame* divider = new TQFrame(ruleFrame);
divider->setFrameStyle(TQFrame::VLine | TQFrame::Sunken);
- layout->addWidget(divider);
- layout->addSpacing(KDialog::marginHint());
+ tqlayout->addWidget(divider);
+ tqlayout->addSpacing(KDialog::marginHint());
mNoRule = new NoRule(ruleFrame, "noFrame");
mSubDailyRule = new SubDailyRule(mReadOnly, ruleFrame, "subdayFrame");
@@ -203,39 +203,39 @@ RecurrenceEdit::RecurrenceEdit(bool readOnly, TQWidget* parent, const char* name
connect(mYearlyRule, TQT_SIGNAL(frequencyChanged()), this, TQT_SIGNAL(frequencyChanged()));
mRuleStack = new TQWidgetStack(ruleFrame);
- layout->addWidget(mRuleStack);
- layout->addStretch(1);
+ tqlayout->addWidget(mRuleStack);
+ tqlayout->addStretch(1);
mRuleStack->addWidget(mNoRule, 0);
mRuleStack->addWidget(mSubDailyRule, 1);
mRuleStack->addWidget(mDailyRule, 2);
mRuleStack->addWidget(mWeeklyRule, 3);
mRuleStack->addWidget(mMonthlyRule, 4);
mRuleStack->addWidget(mYearlyRule, 5);
- layout->addSpacing(KDialog::marginHint());
+ tqlayout->addSpacing(KDialog::marginHint());
- // Create the recurrence range group which contains the controls
+ // Create the recurrence range group which tqcontains the controls
// which specify how long the recurrence is to last.
mRangeButtonGroup = new ButtonGroup(i18n("Recurrence End"), this, "mRangeButtonGroup");
connect(mRangeButtonGroup, TQT_SIGNAL(buttonSet(int)), TQT_SLOT(rangeTypeClicked()));
topLayout->addWidget(mRangeButtonGroup);
- TQVBoxLayout* vlayout = new TQVBoxLayout(mRangeButtonGroup, KDialog::marginHint(), KDialog::spacingHint());
- vlayout->addSpacing(fontMetrics().lineSpacing()/2);
+ TQVBoxLayout* vtqlayout = new TQVBoxLayout(mRangeButtonGroup, KDialog::marginHint(), KDialog::spacingHint());
+ vtqlayout->addSpacing(fontMetrics().lineSpacing()/2);
mNoEndDateButton = new RadioButton(i18n("No &end"), mRangeButtonGroup);
- mNoEndDateButton->setFixedSize(mNoEndDateButton->sizeHint());
+ mNoEndDateButton->setFixedSize(mNoEndDateButton->tqsizeHint());
mNoEndDateButton->setReadOnly(mReadOnly);
TQWhatsThis::add(mNoEndDateButton, i18n("Repeat the alarm indefinitely"));
- vlayout->addWidget(mNoEndDateButton, 1, Qt::AlignAuto);
+ vtqlayout->addWidget(mNoEndDateButton, 1, Qt::AlignAuto);
TQSize size = mNoEndDateButton->size();
- layout = new TQHBoxLayout(vlayout, KDialog::spacingHint());
+ tqlayout = new TQHBoxLayout(vtqlayout, KDialog::spacingHint());
mRepeatCountButton = new RadioButton(i18n("End a&fter:"), mRangeButtonGroup);
mRepeatCountButton->setReadOnly(mReadOnly);
TQWhatsThis::add(mRepeatCountButton,
i18n("Repeat the alarm for the number of times specified"));
mRepeatCountEntry = new SpinBox(1, 9999, 1, mRangeButtonGroup);
- mRepeatCountEntry->setFixedSize(mRepeatCountEntry->sizeHint());
+ mRepeatCountEntry->setFixedSize(mRepeatCountEntry->tqsizeHint());
mRepeatCountEntry->setLineShiftStep(10);
mRepeatCountEntry->setSelectOnStep(false);
mRepeatCountEntry->setReadOnly(mReadOnly);
@@ -244,44 +244,44 @@ RecurrenceEdit::RecurrenceEdit(bool readOnly, TQWidget* parent, const char* name
i18n("Enter the total number of times to trigger the alarm"));
mRepeatCountButton->setFocusWidget(mRepeatCountEntry);
mRepeatCountLabel = new TQLabel(i18n("occurrence(s)"), mRangeButtonGroup);
- mRepeatCountLabel->setFixedSize(mRepeatCountLabel->sizeHint());
- layout->addWidget(mRepeatCountButton);
- layout->addSpacing(KDialog::spacingHint());
- layout->addWidget(mRepeatCountEntry);
- layout->addWidget(mRepeatCountLabel);
- layout->addStretch();
- size = size.expandedTo(mRepeatCountButton->sizeHint());
-
- layout = new TQHBoxLayout(vlayout, KDialog::spacingHint());
+ mRepeatCountLabel->setFixedSize(mRepeatCountLabel->tqsizeHint());
+ tqlayout->addWidget(mRepeatCountButton);
+ tqlayout->addSpacing(KDialog::spacingHint());
+ tqlayout->addWidget(mRepeatCountEntry);
+ tqlayout->addWidget(mRepeatCountLabel);
+ tqlayout->addStretch();
+ size = size.expandedTo(mRepeatCountButton->tqsizeHint());
+
+ tqlayout = new TQHBoxLayout(vtqlayout, KDialog::spacingHint());
mEndDateButton = new RadioButton(i18n("End &by:"), mRangeButtonGroup);
mEndDateButton->setReadOnly(mReadOnly);
TQWhatsThis::add(mEndDateButton,
i18n("Repeat the alarm until the date/time specified.\n\n"
"Note: This applies to the main recurrence only. It does not limit any sub-repetition which will occur regardless after the last main recurrence."));
mEndDateEdit = new DateEdit(mRangeButtonGroup);
- mEndDateEdit->setFixedSize(mEndDateEdit->sizeHint());
+ mEndDateEdit->setFixedSize(mEndDateEdit->tqsizeHint());
mEndDateEdit->setReadOnly(mReadOnly);
TQWhatsThis::add(mEndDateEdit,
i18n("Enter the last date to repeat the alarm"));
mEndDateButton->setFocusWidget(mEndDateEdit);
mEndTimeEdit = new TimeEdit(mRangeButtonGroup);
- mEndTimeEdit->setFixedSize(mEndTimeEdit->sizeHint());
+ mEndTimeEdit->setFixedSize(mEndTimeEdit->tqsizeHint());
mEndTimeEdit->setReadOnly(mReadOnly);
static const TQString lastTimeText = i18n("Enter the last time to repeat the alarm.");
TQWhatsThis::add(mEndTimeEdit, TQString("%1\n\n%2").arg(lastTimeText).arg(TimeSpinBox::shiftWhatsThis()));
mEndAnyTimeCheckBox = new CheckBox(i18n("Any time"), mRangeButtonGroup);
- mEndAnyTimeCheckBox->setFixedSize(mEndAnyTimeCheckBox->sizeHint());
+ mEndAnyTimeCheckBox->setFixedSize(mEndAnyTimeCheckBox->tqsizeHint());
mEndAnyTimeCheckBox->setReadOnly(mReadOnly);
connect(mEndAnyTimeCheckBox, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotAnyTimeToggled(bool)));
TQWhatsThis::add(mEndAnyTimeCheckBox,
i18n("Stop repeating the alarm after your first login on or after the specified end date"));
- layout->addWidget(mEndDateButton);
- layout->addSpacing(KDialog::spacingHint());
- layout->addWidget(mEndDateEdit);
- layout->addWidget(mEndTimeEdit);
- layout->addWidget(mEndAnyTimeCheckBox);
- layout->addStretch();
- size = size.expandedTo(mEndDateButton->sizeHint());
+ tqlayout->addWidget(mEndDateButton);
+ tqlayout->addSpacing(KDialog::spacingHint());
+ tqlayout->addWidget(mEndDateEdit);
+ tqlayout->addWidget(mEndTimeEdit);
+ tqlayout->addWidget(mEndAnyTimeCheckBox);
+ tqlayout->addStretch();
+ size = size.expandedTo(mEndDateButton->tqsizeHint());
// Line up the widgets to the right of the radio buttons
mRepeatCountButton->setFixedSize(size);
@@ -293,17 +293,17 @@ RecurrenceEdit::RecurrenceEdit(bool readOnly, TQWidget* parent, const char* name
mExceptionGroup = new TQGroupBox(i18n("E&xceptions"), this, "mExceptionGroup");
topLayout->addWidget(mExceptionGroup);
topLayout->setStretchFactor(mExceptionGroup, 2);
- vlayout = new TQVBoxLayout(mExceptionGroup, KDialog::marginHint(), KDialog::spacingHint());
- vlayout->addSpacing(fontMetrics().lineSpacing()/2);
- layout = new TQHBoxLayout(vlayout, KDialog::spacingHint());
- vlayout = new TQVBoxLayout(layout);
+ vtqlayout = new TQVBoxLayout(mExceptionGroup, KDialog::marginHint(), KDialog::spacingHint());
+ vtqlayout->addSpacing(fontMetrics().lineSpacing()/2);
+ tqlayout = new TQHBoxLayout(vtqlayout, KDialog::spacingHint());
+ vtqlayout = new TQVBoxLayout(tqlayout);
mExceptionDateList = new TQListBox(mExceptionGroup);
- mExceptionDateList->setSizePolicy(TQSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding));
+ mExceptionDateList->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding));
connect(mExceptionDateList, TQT_SIGNAL(selectionChanged()), TQT_SLOT(enableExceptionButtons()));
TQWhatsThis::add(mExceptionDateList,
i18n("The list of exceptions, i.e. dates/times excluded from the recurrence"));
- vlayout->addWidget(mExceptionDateList);
+ vtqlayout->addWidget(mExceptionDateList);
if (mReadOnly)
{
@@ -313,36 +313,36 @@ RecurrenceEdit::RecurrenceEdit(bool readOnly, TQWidget* parent, const char* name
}
else
{
- vlayout = new TQVBoxLayout(layout);
+ vtqlayout = new TQVBoxLayout(tqlayout);
mExceptionDateEdit = new DateEdit(mExceptionGroup);
- mExceptionDateEdit->setFixedSize(mExceptionDateEdit->sizeHint());
- mExceptionDateEdit->setDate(TQDate::currentDate());
+ mExceptionDateEdit->setFixedSize(mExceptionDateEdit->tqsizeHint());
+ mExceptionDateEdit->setDate(TQDate::tqcurrentDate());
TQWhatsThis::add(mExceptionDateEdit,
i18n("Enter a date to insert in the exceptions list. "
"Use in conjunction with the Add or Change button below."));
- vlayout->addWidget(mExceptionDateEdit);
+ vtqlayout->addWidget(mExceptionDateEdit);
- layout = new TQHBoxLayout(vlayout, KDialog::spacingHint());
+ tqlayout = new TQHBoxLayout(vtqlayout, KDialog::spacingHint());
TQPushButton* button = new TQPushButton(i18n("Add"), mExceptionGroup);
- button->setFixedSize(button->sizeHint());
+ button->setFixedSize(button->tqsizeHint());
connect(button, TQT_SIGNAL(clicked()), TQT_SLOT(addException()));
TQWhatsThis::add(button,
i18n("Add the date entered above to the exceptions list"));
- layout->addWidget(button);
+ tqlayout->addWidget(button);
mChangeExceptionButton = new TQPushButton(i18n("Change"), mExceptionGroup);
- mChangeExceptionButton->setFixedSize(mChangeExceptionButton->sizeHint());
+ mChangeExceptionButton->setFixedSize(mChangeExceptionButton->tqsizeHint());
connect(mChangeExceptionButton, TQT_SIGNAL(clicked()), TQT_SLOT(changeException()));
TQWhatsThis::add(mChangeExceptionButton,
i18n("Replace the currently highlighted item in the exceptions list with the date entered above"));
- layout->addWidget(mChangeExceptionButton);
+ tqlayout->addWidget(mChangeExceptionButton);
mDeleteExceptionButton = new TQPushButton(i18n("Delete"), mExceptionGroup);
- mDeleteExceptionButton->setFixedSize(mDeleteExceptionButton->sizeHint());
+ mDeleteExceptionButton->setFixedSize(mDeleteExceptionButton->tqsizeHint());
connect(mDeleteExceptionButton, TQT_SIGNAL(clicked()), TQT_SLOT(deleteException()));
TQWhatsThis::add(mDeleteExceptionButton,
i18n("Remove the currently highlighted item from the exceptions list"));
- layout->addWidget(mDeleteExceptionButton);
+ tqlayout->addWidget(mDeleteExceptionButton);
}
mNoEmitTypeChanged = false;
@@ -1029,30 +1029,30 @@ Rule::Rule(const TQString& freqText, const TQString& freqWhatsThis, bool time, b
box->setSpacing(KDialog::spacingHint());
TQLabel* label = new TQLabel(i18n("Recur e&very"), box);
- label->setFixedSize(label->sizeHint());
+ label->setFixedSize(label->tqsizeHint());
if (time)
{
mIntSpinBox = 0;
mSpinBox = mTimeSpinBox = new TimeSpinBox(1, 5999, box);
- mTimeSpinBox->setFixedSize(mTimeSpinBox->sizeHint());
+ mTimeSpinBox->setFixedSize(mTimeSpinBox->tqsizeHint());
mTimeSpinBox->setReadOnly(readOnly);
}
else
{
mTimeSpinBox = 0;
mSpinBox = mIntSpinBox = new SpinBox(1, 999, 1, box);
- mIntSpinBox->setFixedSize(mIntSpinBox->sizeHint());
+ mIntSpinBox->setFixedSize(mIntSpinBox->tqsizeHint());
mIntSpinBox->setReadOnly(readOnly);
}
connect(mSpinBox, TQT_SIGNAL(valueChanged(int)), TQT_SIGNAL(frequencyChanged()));
label->setBuddy(mSpinBox);
label = new TQLabel(freqText, box);
- label->setFixedSize(label->sizeHint());
- box->setFixedSize(sizeHint());
+ label->setFixedSize(label->tqsizeHint());
+ box->setFixedSize(tqsizeHint());
TQWhatsThis::add(box, freqWhatsThis);
new TQWidget(freqBox); // left adjust the visible widgets
- freqBox->setFixedHeight(freqBox->sizeHint().height());
+ freqBox->setFixedHeight(freqBox->tqsizeHint().height());
freqBox->setFocusProxy(mSpinBox);
}
@@ -1112,11 +1112,11 @@ DayWeekRule::DayWeekRule(const TQString& freqText, const TQString& freqWhatsThis
: Rule(freqText, freqWhatsThis, false, readOnly, parent, name),
mSavedDays(7)
{
- TQGridLayout* grid = new TQGridLayout(layout(), 1, 4, KDialog::spacingHint());
+ TQGridLayout* grid = new TQGridLayout(tqlayout(), 1, 4, KDialog::spacingHint());
grid->setRowStretch(0, 1);
TQLabel* label = new TQLabel(i18n("On: Tuesday", "O&n:"), this);
- label->setFixedSize(label->sizeHint());
+ label->setFixedSize(label->tqsizeHint());
grid->addWidget(label, 0, 0, Qt::AlignRight | Qt::AlignTop);
grid->addColSpacing(1, KDialog::spacingHint());
@@ -1129,11 +1129,11 @@ DayWeekRule::DayWeekRule(const TQString& freqText, const TQString& freqWhatsThis
{
int day = KAlarm::localeDayInWeek_to_weekDay(i);
mDayBox[i] = new CheckBox(calendar->weekDayName(day), box);
- mDayBox[i]->setFixedSize(mDayBox[i]->sizeHint());
+ mDayBox[i]->setFixedSize(mDayBox[i]->tqsizeHint());
mDayBox[i]->setReadOnly(readOnly);
dgrid->addWidget(mDayBox[i], i%4, i/4, Qt::AlignAuto);
}
- box->setFixedSize(box->sizeHint());
+ box->setFixedSize(box->tqsizeHint());
TQWhatsThis::add(box, daysWhatsThis);
grid->addWidget(box, 0, 2, Qt::AlignAuto);
label->setBuddy(mDayBox[0]);
@@ -1258,10 +1258,10 @@ MonthYearRule::MonthYearRule(const TQString& freqText, const TQString& freqWhats
// Month day selector
TQHBox* box = new TQHBox(this);
box->setSpacing(KDialog::spacingHint());
- layout()->addWidget(box);
+ tqlayout()->addWidget(box);
mDayButton = new RadioButton(i18n("On day number in the month", "O&n day"), box);
- mDayButton->setFixedSize(mDayButton->sizeHint());
+ mDayButton->setFixedSize(mDayButton->tqsizeHint());
mDayButton->setReadOnly(readOnly);
mDayButtonId = mButtonGroup->insert(mDayButton);
TQWhatsThis::add(mDayButton, i18n("Repeat the alarm on the selected day of the month"));
@@ -1271,22 +1271,22 @@ MonthYearRule::MonthYearRule(const TQString& freqText, const TQString& freqWhats
for (int i = 0; i < 31; ++i)
mDayCombo->insertItem(TQString::number(i + 1));
mDayCombo->insertItem(i18n("Last day of month", "Last"));
- mDayCombo->setFixedSize(mDayCombo->sizeHint());
+ mDayCombo->setFixedSize(mDayCombo->tqsizeHint());
mDayCombo->setReadOnly(readOnly);
TQWhatsThis::add(mDayCombo, i18n("Select the day of the month on which to repeat the alarm"));
mDayButton->setFocusWidget(mDayCombo);
connect(mDayCombo, TQT_SIGNAL(activated(int)), TQT_SLOT(slotDaySelected(int)));
box->setStretchFactor(new TQWidget(box), 1); // left adjust the controls
- box->setFixedHeight(box->sizeHint().height());
+ box->setFixedHeight(box->tqsizeHint().height());
// Month position selector
box = new TQHBox(this);
box->setSpacing(KDialog::spacingHint());
- layout()->addWidget(box);
+ tqlayout()->addWidget(box);
mPosButton = new RadioButton(i18n("On the 1st Tuesday", "On t&he"), box);
- mPosButton->setFixedSize(mPosButton->sizeHint());
+ mPosButton->setFixedSize(mPosButton->tqsizeHint());
mPosButton->setReadOnly(readOnly);
mPosButtonId = mButtonGroup->insert(mPosButton);
TQWhatsThis::add(mPosButton,
@@ -1309,7 +1309,7 @@ MonthYearRule::MonthYearRule(const TQString& freqText, const TQString& freqWhats
mWeekCombo->setSizeLimit(11);
}
TQWhatsThis::add(mWeekCombo, i18n("Select the week of the month in which to repeat the alarm"));
- mWeekCombo->setFixedSize(mWeekCombo->sizeHint());
+ mWeekCombo->setFixedSize(mWeekCombo->tqsizeHint());
mWeekCombo->setReadOnly(readOnly);
mPosButton->setFocusWidget(mWeekCombo);
@@ -1324,7 +1324,7 @@ MonthYearRule::MonthYearRule(const TQString& freqText, const TQString& freqWhats
TQWhatsThis::add(mDayOfWeekCombo, i18n("Select the day of the week on which to repeat the alarm"));
box->setStretchFactor(new TQWidget(box), 1); // left adjust the controls
- box->setFixedHeight(box->sizeHint().height());
+ box->setFixedHeight(box->tqsizeHint().height());
connect(mButtonGroup, TQT_SIGNAL(buttonSet(int)), TQT_SLOT(clicked(int)));
}
@@ -1456,47 +1456,47 @@ YearlyRule::YearlyRule(bool readOnly, TQWidget* parent, const char* name)
true, readOnly, parent, name)
{
// Set up the month selection widgets
- TQBoxLayout* hlayout = new TQHBoxLayout(layout(), KDialog::spacingHint());
+ TQBoxLayout* htqlayout = new TQHBoxLayout(tqlayout(), KDialog::spacingHint());
TQLabel* label = new TQLabel(i18n("List of months to select", "Months:"), this);
- label->setFixedSize(label->sizeHint());
- hlayout->addWidget(label, 0, Qt::AlignAuto | Qt::AlignTop);
+ label->setFixedSize(label->tqsizeHint());
+ htqlayout->addWidget(label, 0, Qt::AlignAuto | Qt::AlignTop);
// List the months of the year.
TQWidget* w = new TQWidget(this); // this is to control the TQWhatsThis text display area
- hlayout->addWidget(w, 1, Qt::AlignAuto);
+ htqlayout->addWidget(w, 1, Qt::AlignAuto);
TQGridLayout* grid = new TQGridLayout(w, 4, 3, 0, KDialog::spacingHint());
const KCalendarSystem* calendar = KGlobal::locale()->calendar();
- int year = TQDate::currentDate().year();
+ int year = TQDate::tqcurrentDate().year();
for (int i = 0; i < 12; ++i)
{
mMonthBox[i] = new CheckBox(calendar->monthName(i + 1, year, true), w);
- mMonthBox[i]->setFixedSize(mMonthBox[i]->sizeHint());
+ mMonthBox[i]->setFixedSize(mMonthBox[i]->tqsizeHint());
mMonthBox[i]->setReadOnly(readOnly);
grid->addWidget(mMonthBox[i], i%3, i/3, Qt::AlignAuto);
}
connect(mMonthBox[1], TQT_SIGNAL(toggled(bool)), TQT_SLOT(enableFeb29()));
- w->setFixedHeight(w->sizeHint().height());
+ w->setFixedHeight(w->tqsizeHint().height());
TQWhatsThis::add(w, i18n("Select the months of the year in which to repeat the alarm"));
// February 29th handling option
TQHBox* f29box = new TQHBox(this);
- layout()->addWidget(f29box);
+ tqlayout()->addWidget(f29box);
TQHBox* box = new TQHBox(f29box); // this is to control the TQWhatsThis text display area
box->setSpacing(KDialog::spacingHint());
mFeb29Label = new TQLabel(i18n("February 2&9th alarm in non-leap years:"), box);
- mFeb29Label->setFixedSize(mFeb29Label->sizeHint());
+ mFeb29Label->setFixedSize(mFeb29Label->tqsizeHint());
mFeb29Combo = new ComboBox(false, box);
mFeb29Combo->insertItem(i18n("No date", "None"));
mFeb29Combo->insertItem(i18n("1st March (short form)", "1 Mar"));
mFeb29Combo->insertItem(i18n("28th February (short form)", "28 Feb"));
- mFeb29Combo->setFixedSize(mFeb29Combo->sizeHint());
+ mFeb29Combo->setFixedSize(mFeb29Combo->tqsizeHint());
mFeb29Combo->setReadOnly(readOnly);
mFeb29Label->setBuddy(mFeb29Combo);
- box->setFixedSize(box->sizeHint());
+ box->setFixedSize(box->tqsizeHint());
TQWhatsThis::add(box,
i18n("Select which date, if any, the February 29th alarm should trigger in non-leap years"));
new TQWidget(f29box); // left adjust the visible widgets
- f29box->setFixedHeight(f29box->sizeHint().height());
+ f29box->setFixedHeight(f29box->tqsizeHint().height());
}
void YearlyRule::setDefaultValues(int dayOfMonth, int dayOfWeek, int month)