diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
commit | 67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch) | |
tree | 5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /kalarm/birthdaydlg.cpp | |
parent | 2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff) | |
download | tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip |
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
Diffstat (limited to 'kalarm/birthdaydlg.cpp')
-rw-r--r-- | kalarm/birthdaydlg.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/kalarm/birthdaydlg.cpp b/kalarm/birthdaydlg.cpp index 2e2997853..5ed43275e 100644 --- a/kalarm/birthdaydlg.cpp +++ b/kalarm/birthdaydlg.cpp @@ -54,11 +54,11 @@ using namespace KCal; -class AddresseeItem : public QListViewItem +class AddresseeItem : public TQListViewItem { public: enum columns { NAME = 0, BIRTHDAY = 1 }; - AddresseeItem(TQListView* parent, const TQString& name, const TQDate& birthday); + AddresseeItem(TQListView* tqparent, const TQString& name, const TQDate& birthday); TQDate birthday() const { return mBirthday; } virtual TQString key(int column, bool ascending) const; private: @@ -70,8 +70,8 @@ class AddresseeItem : public QListViewItem const KABC::AddressBook* BirthdayDlg::mAddressBook = 0; -BirthdayDlg::BirthdayDlg(TQWidget* parent) - : KDialogBase(KDialogBase::Plain, i18n("Import Birthdays From KAddressBook"), Ok|Cancel, Ok, parent, "BirthdayDlg"), +BirthdayDlg::BirthdayDlg(TQWidget* tqparent) + : KDialogBase(KDialogBase::Plain, i18n("Import Birthdays From KAddressBook"), Ok|Cancel, Ok, tqparent, "BirthdayDlg"), mSpecialActionsButton(0) { TQWidget* topWidget = plainPage(); @@ -85,7 +85,7 @@ BirthdayDlg::BirthdayDlg(TQWidget* parent) mPrefixText = config->readEntry(TQString::tqfromLatin1("BirthdayPrefix"), i18n("Birthday: ")); mSuffixText = config->readEntry(TQString::tqfromLatin1("BirthdaySuffix")); - TQGroupBox* textGroup = new TQGroupBox(2, Qt::Horizontal, i18n("Alarm Text"), topWidget); + TQGroupBox* textGroup = new TQGroupBox(2, TQt::Horizontal, i18n("Alarm Text"), topWidget); topLayout->addWidget(textGroup); TQLabel* label = new TQLabel(i18n("Pre&fix:"), textGroup); mPrefix = new BLineEdit(mPrefixText, textGroup); @@ -105,7 +105,7 @@ BirthdayDlg::BirthdayDlg(TQWidget* parent) i18n("Enter text to appear after the person's name in the alarm message, " "including any necessary leading spaces.")); - TQGroupBox* group = new TQGroupBox(1, Qt::Horizontal, i18n("Select Birthdays"), topWidget); + TQGroupBox* group = new TQGroupBox(1, TQt::Horizontal, i18n("Select Birthdays"), topWidget); topLayout->addWidget(group); mAddresseeList = new BListView(group); mAddresseeList->setMultiSelection(true); @@ -134,7 +134,7 @@ BirthdayDlg::BirthdayDlg(TQWidget* parent) // Sound checkbox and file selector mSoundPicker = new SoundPicker(group); mSoundPicker->setFixedSize(mSoundPicker->tqsizeHint()); - groupLayout->addWidget(mSoundPicker, 0, Qt::AlignAuto); + groupLayout->addWidget(mSoundPicker, 0, TQt::AlignAuto); // How much to advance warning to give mReminder = new Reminder(i18n("&Reminder"), @@ -145,7 +145,7 @@ BirthdayDlg::BirthdayDlg(TQWidget* parent) mReminder->setFixedSize(mReminder->tqsizeHint()); mReminder->setMaximum(0, 364); mReminder->setMinutes(0, true); - groupLayout->addWidget(mReminder, 0, Qt::AlignAuto); + groupLayout->addWidget(mReminder, 0, TQt::AlignAuto); // Acknowledgement confirmation required - default = no confirmation TQHBoxLayout* tqlayout = new TQHBoxLayout(groupLayout, 2*spacingHint()); @@ -256,7 +256,7 @@ void BirthdayDlg::updateSelectionList() name = addressee.realName(); // Check if the birthday already has an alarm TQString text = mPrefixText + name + mSuffixText; - bool alarmExists = (messageList.find(text) != messageList.end()); + bool alarmExists = (messageList.tqfind(text) != messageList.end()); // Check if the birthday is already in the selection list bool inSelectionList = false; AddresseeItem* item = 0; @@ -396,8 +396,8 @@ void BirthdayDlg::slotTextLostFocus() = Class: AddresseeItem =============================================================================*/ -AddresseeItem::AddresseeItem(TQListView* parent, const TQString& name, const TQDate& birthday) - : TQListViewItem(parent), +AddresseeItem::AddresseeItem(TQListView* tqparent, const TQString& name, const TQDate& birthday) + : TQListViewItem(tqparent), mBirthday(birthday) { setText(NAME, name); @@ -417,8 +417,8 @@ TQString AddresseeItem::key(int column, bool) const = Class: BListView =============================================================================*/ -BListView::BListView(TQWidget* parent, const char* name) - : KListView(parent, name) +BListView::BListView(TQWidget* tqparent, const char* name) + : KListView(tqparent, name) { KAccel* accel = new KAccel(this); accel->insert(KStdAccel::SelectAll, this, TQT_SLOT(slotSelectAll())); |