diff options
Diffstat (limited to 'kalarm/find.cpp')
-rw-r--r-- | kalarm/find.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/kalarm/find.cpp b/kalarm/find.cpp index 1bec3c7a8..77e841407 100644 --- a/kalarm/find.cpp +++ b/kalarm/find.cpp @@ -49,9 +49,9 @@ enum { static long FIND_KALARM_OPTIONS = FIND_LIVE | FIND_EXPIRED | FIND_MESSAGE | FIND_FILE | FIND_COMMAND | FIND_EMAIL; -Find::Find(EventListViewBase* parent) - : TQObject(parent), - mListView(parent), +Find::Find(EventListViewBase* tqparent) + : TQObject(tqparent), + mListView(tqparent), mDialog(0), mFind(0), mOptions(0) @@ -90,7 +90,7 @@ void Find::display() mDialog = new KFindDialog(false, mListView, "FindDlg", mOptions, mHistory, (mListView->selectedCount() > 1)); #endif mDialog->setHasSelection(false); - TQWidget* kalarmWidgets = mDialog->tqfindExtension(); + TQWidget* kalarmWidgets = mDialog->findExtension(); // Alarm types TQBoxLayout* tqlayout = new TQVBoxLayout(kalarmWidgets, 0, KDialog::spacingHint()); @@ -104,16 +104,16 @@ void Find::display() mLive = new TQCheckBox(i18n("Acti&ve"), group); mLive->setFixedSize(mLive->tqsizeHint()); TQWhatsThis::add(mLive, i18n("Check to include active alarms in the search.")); - grid->addWidget(mLive, 1, 0, Qt::AlignAuto); + grid->addWidget(mLive, 1, 0, TQt::AlignAuto); mExpired = new TQCheckBox(i18n("Ex&pired"), group); mExpired->setFixedSize(mExpired->tqsizeHint()); TQWhatsThis::add(mExpired, i18n("Check to include expired alarms in the search. " "This option is only available if expired alarms are currently being displayed.")); - grid->addWidget(mExpired, 1, 2, Qt::AlignAuto); + grid->addWidget(mExpired, 1, 2, TQt::AlignAuto); - mActiveExpiredSep = new KSeparator(Qt::Horizontal, kalarmWidgets); + mActiveExpiredSep = new KSeparator(TQt::Horizontal, kalarmWidgets); grid->addMultiCellWidget(mActiveExpiredSep, 2, 2, 0, 2); // Alarm actions @@ -211,7 +211,7 @@ void Find::slotFind() { if (!mDialog) return; - mHistory = mDialog->tqfindHistory(); // save search history so that it can be displayed again + mHistory = mDialog->findHistory(); // save search history so that it can be displayed again mOptions = mDialog->options() & ~FIND_KALARM_OPTIONS; mOptions |= (mLive->isEnabled() && mLive->isChecked() ? FIND_LIVE : 0) | (mExpired->isEnabled() && mExpired->isChecked() ? FIND_EXPIRED : 0) @@ -250,7 +250,7 @@ void Find::slotFind() } // Set the starting point for the search - mStartID = TQString::null; + mStartID = TQString(); mNoCurrentItem = newPattern; bool checkEnd = false; if (newPattern) @@ -307,40 +307,40 @@ void Find::findNext(bool forward, bool sort, bool checkEnd, bool fromCurrent) if (!(mOptions & FIND_MESSAGE)) break; mFind->setData(event.cleanText()); - found = (mFind->find() == KFind::Match); + found = (mFind->tqfind() == KFind::Match); break; case KAEvent::FILE: if (!(mOptions & FIND_FILE)) break; mFind->setData(event.cleanText()); - found = (mFind->find() == KFind::Match); + found = (mFind->tqfind() == KFind::Match); break; case KAEvent::COMMAND: if (!(mOptions & FIND_COMMAND)) break; mFind->setData(event.cleanText()); - found = (mFind->find() == KFind::Match); + found = (mFind->tqfind() == KFind::Match); break; case KAEvent::EMAIL: if (!(mOptions & FIND_EMAIL)) break; mFind->setData(event.emailAddresses(", ")); - found = (mFind->find() == KFind::Match); + found = (mFind->tqfind() == KFind::Match); if (found) break; mFind->setData(event.emailSubject()); - found = (mFind->find() == KFind::Match); + found = (mFind->tqfind() == KFind::Match); if (found) break; mFind->setData(event.emailAttachments().join(", ")); - found = (mFind->find() == KFind::Match); + found = (mFind->tqfind() == KFind::Match); if (found) break; mFind->setData(event.cleanText()); - found = (mFind->find() == KFind::Match); + found = (mFind->tqfind() == KFind::Match); break; } if (found) @@ -365,7 +365,7 @@ void Find::findNext(bool forward, bool sort, bool checkEnd, bool fromCurrent) { TQString msg = forward ? i18n("End of alarm list reached.\nContinue from the beginning?") : i18n("Beginning of alarm list reached.\nContinue from the end?"); - if (KMessageBox::questionYesNo(mListView, msg, TQString::null, KStdGuiItem::cont(), KStdGuiItem::cancel()) == KMessageBox::Yes) + if (KMessageBox::questionYesNo(mListView, msg, TQString(), KStdGuiItem::cont(), KStdGuiItem::cancel()) == KMessageBox::Yes) { mNoCurrentItem = true; findNext(forward, false); |