summaryrefslogtreecommitdiffstats
path: root/kalarm/find.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /kalarm/find.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kalarm/find.cpp')
-rw-r--r--kalarm/find.cpp56
1 files changed, 28 insertions, 28 deletions
diff --git a/kalarm/find.cpp b/kalarm/find.cpp
index 7caf4bde0..a05517826 100644
--- a/kalarm/find.cpp
+++ b/kalarm/find.cpp
@@ -20,10 +20,10 @@
#include "kalarm.h"
-#include <qlayout.h>
-#include <qwhatsthis.h>
-#include <qgroupbox.h>
-#include <qcheckbox.h>
+#include <tqlayout.h>
+#include <tqwhatsthis.h>
+#include <tqgroupbox.h>
+#include <tqcheckbox.h>
#include <kfinddialog.h>
#include <kfind.h>
@@ -50,7 +50,7 @@ static long FIND_KALARM_OPTIONS = FIND_LIVE | FIND_EXPIRED | FIND_MESSAGE | FIND
Find::Find(EventListViewBase* parent)
- : QObject(parent),
+ : TQObject(parent),
mListView(parent),
mDialog(0),
mFind(0),
@@ -90,25 +90,25 @@ void Find::display()
mDialog = new KFindDialog(false, mListView, "FindDlg", mOptions, mHistory, (mListView->selectedCount() > 1));
#endif
mDialog->setHasSelection(false);
- QWidget* kalarmWidgets = mDialog->findExtension();
+ TQWidget* kalarmWidgets = mDialog->findExtension();
// Alarm types
- QBoxLayout* layout = new QVBoxLayout(kalarmWidgets, 0, KDialog::spacingHint());
- QGroupBox* group = new QGroupBox(i18n("Alarm Type"), kalarmWidgets);
+ TQBoxLayout* layout = new TQVBoxLayout(kalarmWidgets, 0, KDialog::spacingHint());
+ TQGroupBox* group = new TQGroupBox(i18n("Alarm Type"), kalarmWidgets);
layout->addWidget(group);
- QGridLayout* grid = new QGridLayout(group, 2, 2, KDialog::marginHint(), KDialog::spacingHint());
+ TQGridLayout* grid = new TQGridLayout(group, 2, 2, KDialog::marginHint(), KDialog::spacingHint());
grid->addRowSpacing(0, mDialog->fontMetrics().lineSpacing()/2);
grid->setColStretch(1, 1);
// Live & expired alarm selection
- mLive = new QCheckBox(i18n("Acti&ve"), group);
+ mLive = new TQCheckBox(i18n("Acti&ve"), group);
mLive->setFixedSize(mLive->sizeHint());
- QWhatsThis::add(mLive, i18n("Check to include active alarms in the search."));
+ TQWhatsThis::add(mLive, i18n("Check to include active alarms in the search."));
grid->addWidget(mLive, 1, 0, Qt::AlignAuto);
- mExpired = new QCheckBox(i18n("Ex&pired"), group);
+ mExpired = new TQCheckBox(i18n("Ex&pired"), group);
mExpired->setFixedSize(mExpired->sizeHint());
- QWhatsThis::add(mExpired,
+ 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);
@@ -117,24 +117,24 @@ void Find::display()
grid->addMultiCellWidget(mActiveExpiredSep, 2, 2, 0, 2);
// Alarm actions
- mMessageType = new QCheckBox(i18n("Text"), group, "message");
+ mMessageType = new TQCheckBox(i18n("Text"), group, "message");
mMessageType->setFixedSize(mMessageType->sizeHint());
- QWhatsThis::add(mMessageType, i18n("Check to include text message alarms in the search."));
+ TQWhatsThis::add(mMessageType, i18n("Check to include text message alarms in the search."));
grid->addWidget(mMessageType, 3, 0);
- mFileType = new QCheckBox(i18n("Fi&le"), group, "file");
+ mFileType = new TQCheckBox(i18n("Fi&le"), group, "file");
mFileType->setFixedSize(mFileType->sizeHint());
- QWhatsThis::add(mFileType, i18n("Check to include file alarms in the search."));
+ TQWhatsThis::add(mFileType, i18n("Check to include file alarms in the search."));
grid->addWidget(mFileType, 3, 2);
- mCommandType = new QCheckBox(i18n("Co&mmand"), group, "command");
+ mCommandType = new TQCheckBox(i18n("Co&mmand"), group, "command");
mCommandType->setFixedSize(mCommandType->sizeHint());
- QWhatsThis::add(mCommandType, i18n("Check to include command alarms in the search."));
+ TQWhatsThis::add(mCommandType, i18n("Check to include command alarms in the search."));
grid->addWidget(mCommandType, 4, 0);
- mEmailType = new QCheckBox(i18n("&Email"), group, "email");
+ mEmailType = new TQCheckBox(i18n("&Email"), group, "email");
mEmailType->setFixedSize(mEmailType->sizeHint());
- QWhatsThis::add(mEmailType, i18n("Check to include email alarms in the search."));
+ TQWhatsThis::add(mEmailType, i18n("Check to include email alarms in the search."));
grid->addWidget(mEmailType, 4, 2);
// Set defaults
@@ -146,7 +146,7 @@ void Find::display()
mEmailType->setChecked(mOptions & FIND_EMAIL);
#ifndef MODAL_FIND
- connect(mDialog, SIGNAL(okClicked()), this, SLOT(slotFind()));
+ connect(mDialog, TQT_SIGNAL(okClicked()), this, TQT_SLOT(slotFind()));
#endif
}
@@ -195,7 +195,7 @@ void Find::display()
mDialog->setHasCursor(mListView->currentItem());
#ifdef MODAL_FIND
- if (mDialog->exec() == QDialog::Accepted)
+ if (mDialog->exec() == TQDialog::Accepted)
slotFind();
else
delete mDialog;
@@ -245,12 +245,12 @@ void Find::slotFind()
#else
mFind = new KFind(mLastPattern, options, mListView, mDialog);
#endif
- connect(mFind, SIGNAL(destroyed()), SLOT(slotKFindDestroyed()));
+ connect(mFind, TQT_SIGNAL(destroyed()), TQT_SLOT(slotKFindDestroyed()));
mFind->closeFindNextDialog(); // prevent 'Find Next' dialog appearing
}
// Set the starting point for the search
- mStartID = QString::null;
+ mStartID = TQString::null;
mNoCurrentItem = newPattern;
bool checkEnd = false;
if (newPattern)
@@ -363,9 +363,9 @@ void Find::findNext(bool forward, bool sort, bool checkEnd, bool fromCurrent)
// No match was found
if (mFound || checkEnd)
{
- QString msg = forward ? i18n("End of alarm list reached.\nContinue from the beginning?")
+ 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, QString::null, KStdGuiItem::cont(), KStdGuiItem::cancel()) == KMessageBox::Yes)
+ if (KMessageBox::questionYesNo(mListView, msg, TQString::null, KStdGuiItem::cont(), KStdGuiItem::cancel()) == KMessageBox::Yes)
{
mNoCurrentItem = true;
findNext(forward, false);
@@ -383,7 +383,7 @@ void Find::findNext(bool forward, bool sort, bool checkEnd, bool fromCurrent)
*/
EventListViewItemBase* Find::nextItem(EventListViewItemBase* item, bool forward) const
{
- QListViewItem* it;
+ TQListViewItem* it;
if (mOptions & KFindDialog::FindBackwards)
forward = !forward;
if (forward)