summaryrefslogtreecommitdiffstats
path: root/kalarm/birthdaydlg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kalarm/birthdaydlg.cpp')
-rw-r--r--kalarm/birthdaydlg.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/kalarm/birthdaydlg.cpp b/kalarm/birthdaydlg.cpp
index 97e7bc6f7..dd4ab50f6 100644
--- a/kalarm/birthdaydlg.cpp
+++ b/kalarm/birthdaydlg.cpp
@@ -81,15 +81,15 @@ BirthdayDlg::BirthdayDlg(TQWidget* parent)
// Prefix and suffix to the name in the alarm text
// Get default prefix and suffix texts from config file
KConfig* config = kapp->config();
- config->setGroup(TQString::tqfromLatin1("General"));
- mPrefixText = config->readEntry(TQString::tqfromLatin1("BirthdayPrefix"), i18n("Birthday: "));
- mSuffixText = config->readEntry(TQString::tqfromLatin1("BirthdaySuffix"));
+ config->setGroup(TQString::fromLatin1("General"));
+ mPrefixText = config->readEntry(TQString::fromLatin1("BirthdayPrefix"), i18n("Birthday: "));
+ mSuffixText = config->readEntry(TQString::fromLatin1("BirthdaySuffix"));
TQGroupBox* textGroup = new TQGroupBox(2, Qt::Horizontal, i18n("Alarm Text"), topWidget);
topLayout->addWidget(textGroup);
TQLabel* label = new TQLabel(i18n("Pre&fix:"), textGroup);
mPrefix = new BLineEdit(mPrefixText, textGroup);
- mPrefix->setMinimumSize(mPrefix->tqsizeHint());
+ mPrefix->setMinimumSize(mPrefix->sizeHint());
label->setBuddy(mPrefix);
connect(mPrefix, TQT_SIGNAL(focusLost()), TQT_SLOT(slotTextLostFocus()));
TQWhatsThis::add(mPrefix,
@@ -98,7 +98,7 @@ BirthdayDlg::BirthdayDlg(TQWidget* parent)
label = new TQLabel(i18n("S&uffix:"), textGroup);
mSuffix = new BLineEdit(mSuffixText, textGroup);
- mSuffix->setMinimumSize(mSuffix->tqsizeHint());
+ mSuffix->setMinimumSize(mSuffix->sizeHint());
label->setBuddy(mSuffix);
connect(mSuffix, TQT_SIGNAL(focusLost()), TQT_SLOT(slotTextLostFocus()));
TQWhatsThis::add(mSuffix,
@@ -128,12 +128,12 @@ BirthdayDlg::BirthdayDlg(TQWidget* parent)
// Font and colour choice button and sample text
mFontColourButton = new FontColourButton(group);
- mFontColourButton->setMaximumHeight(mFontColourButton->tqsizeHint().height() * 3/2);
+ mFontColourButton->setMaximumHeight(mFontColourButton->sizeHint().height() * 3/2);
groupLayout->addWidget(mFontColourButton);
// Sound checkbox and file selector
mSoundPicker = new SoundPicker(group);
- mSoundPicker->setFixedSize(mSoundPicker->tqsizeHint());
+ mSoundPicker->setFixedSize(mSoundPicker->sizeHint());
groupLayout->addWidget(mSoundPicker, 0, TQt::AlignAuto);
// How much to advance warning to give
@@ -142,7 +142,7 @@ BirthdayDlg::BirthdayDlg(TQWidget* parent)
i18n("Enter the number of days before each birthday to display a reminder. "
"This is in addition to the alarm which is displayed on the birthday."),
false, false, group);
- mReminder->setFixedSize(mReminder->tqsizeHint());
+ mReminder->setFixedSize(mReminder->sizeHint());
mReminder->setMaximum(0, 364);
mReminder->setMinutes(0, true);
groupLayout->addWidget(mReminder, 0, TQt::AlignAuto);
@@ -295,7 +295,7 @@ void BirthdayDlg::updateSelectionList()
TQValueList<KAEvent> BirthdayDlg::events() const
{
TQValueList<KAEvent> list;
- TQDate today = TQDate::tqcurrentDate();
+ TQDate today = TQDate::currentDate();
TQDateTime todayNoon(today, TQTime(12, 0, 0));
int thisYear = today.year();
int reminder = mReminder->minutes();
@@ -344,9 +344,9 @@ void BirthdayDlg::slotOk()
{
// Save prefix and suffix texts to use as future defaults
KConfig* config = kapp->config();
- config->setGroup(TQString::tqfromLatin1("General"));
- config->writeEntry(TQString::tqfromLatin1("BirthdayPrefix"), mPrefix->text());
- config->writeEntry(TQString::tqfromLatin1("BirthdaySuffix"), mSuffix->text());
+ config->setGroup(TQString::fromLatin1("General"));
+ config->writeEntry(TQString::fromLatin1("BirthdayPrefix"), mPrefix->text());
+ config->writeEntry(TQString::fromLatin1("BirthdaySuffix"), mSuffix->text());
config->sync();
mFlags = (mSoundPicker->sound() == SoundPicker::BEEP ? KAEvent::BEEP : 0)