diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /kalarm/repetition.cpp | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-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/repetition.cpp')
-rw-r--r-- | kalarm/repetition.cpp | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/kalarm/repetition.cpp b/kalarm/repetition.cpp index dc6613ee8..2df201300 100644 --- a/kalarm/repetition.cpp +++ b/kalarm/repetition.cpp @@ -20,8 +20,8 @@ #include "kalarm.h" -#include <qlayout.h> -#include <qwhatsthis.h> +#include <tqlayout.h> +#include <tqwhatsthis.h> #include <kdebug.h> #include <kdialog.h> @@ -40,8 +40,8 @@ = Button to display the Alarm Sub-Repetition dialogue. =============================================================================*/ -RepetitionButton::RepetitionButton(const QString& caption, bool waitForInitialisation, QWidget* parent, const char* name) - : QPushButton(caption, parent, name), +RepetitionButton::RepetitionButton(const TQString& caption, bool waitForInitialisation, TQWidget* parent, const char* name) + : TQPushButton(caption, parent, name), mDialog(0), mInterval(0), mCount(0), @@ -52,7 +52,7 @@ RepetitionButton::RepetitionButton(const QString& caption, bool waitForInitialis { setToggleButton(true); setOn(false); - connect(this, SIGNAL(clicked()), SLOT(slotPressed())); + connect(this, TQT_SIGNAL(clicked()), TQT_SLOT(slotPressed())); } void RepetitionButton::set(int interval, int count) @@ -127,7 +127,7 @@ void RepetitionButton::displayDialog() mDialog->setReadOnly(true); mDialog->exec(); } - else if (mDialog->exec() == QDialog::Accepted) + else if (mDialog->exec() == TQDialog::Accepted) { mCount = mDialog->count(); mInterval = mDialog->interval(); @@ -149,59 +149,59 @@ void RepetitionButton::displayDialog() static const int MAX_COUNT = 9999; // maximum range for count spinbox -RepetitionDlg::RepetitionDlg(const QString& caption, bool readOnly, QWidget* parent, const char* name) +RepetitionDlg::RepetitionDlg(const TQString& caption, bool readOnly, TQWidget* parent, const char* name) : KDialogBase(parent, name, true, caption, Ok|Cancel), mMaxDuration(-1), mDateOnly(false), mReadOnly(readOnly) { int spacing = spacingHint(); - QWidget* page = new QWidget(this); + TQWidget* page = new TQWidget(this); setMainWidget(page); - QVBoxLayout* topLayout = new QVBoxLayout(page, 0, spacing); + TQVBoxLayout* topLayout = new TQVBoxLayout(page, 0, spacing); - mTimeSelector = new TimeSelector(i18n("Repeat every 10 minutes", "&Repeat every"), QString::null, + mTimeSelector = new TimeSelector(i18n("Repeat every 10 minutes", "&Repeat every"), TQString::null, i18n("Instead of the alarm triggering just once at each recurrence, " "checking this option makes the alarm trigger multiple times at each recurrence."), i18n("Enter the time between repetitions of the alarm"), true, page); mTimeSelector->setFixedSize(mTimeSelector->sizeHint()); - connect(mTimeSelector, SIGNAL(valueChanged(int)), SLOT(intervalChanged(int))); - connect(mTimeSelector, SIGNAL(toggled(bool)), SLOT(repetitionToggled(bool))); + connect(mTimeSelector, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(intervalChanged(int))); + connect(mTimeSelector, TQT_SIGNAL(toggled(bool)), TQT_SLOT(repetitionToggled(bool))); topLayout->addWidget(mTimeSelector, 0, Qt::AlignAuto); mButtonGroup = new ButtonGroup(page, "buttonGroup"); - connect(mButtonGroup, SIGNAL(buttonSet(int)), SLOT(typeClicked())); + connect(mButtonGroup, TQT_SIGNAL(buttonSet(int)), TQT_SLOT(typeClicked())); topLayout->addWidget(mButtonGroup); - QBoxLayout* vlayout = new QVBoxLayout(mButtonGroup, marginHint(), spacing); - QBoxLayout* layout = new QHBoxLayout(vlayout, spacing); + TQBoxLayout* vlayout = new TQVBoxLayout(mButtonGroup, marginHint(), spacing); + TQBoxLayout* layout = new TQHBoxLayout(vlayout, spacing); mCountButton = new RadioButton(i18n("&Number of repetitions:"), mButtonGroup); mCountButton->setFixedSize(mCountButton->sizeHint()); - QWhatsThis::add(mCountButton, + TQWhatsThis::add(mCountButton, i18n("Check to specify the number of times the alarm should repeat after each recurrence")); layout->addWidget(mCountButton); mCount = new SpinBox(1, MAX_COUNT, 1, mButtonGroup); mCount->setFixedSize(mCount->sizeHint()); mCount->setLineShiftStep(10); mCount->setSelectOnStep(false); - connect(mCount, SIGNAL(valueChanged(int)), SLOT(countChanged(int))); - QWhatsThis::add(mCount, + connect(mCount, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(countChanged(int))); + TQWhatsThis::add(mCount, i18n("Enter the number of times to trigger the alarm after its initial occurrence")); layout->addWidget(mCount); mCountButton->setFocusWidget(mCount); layout->addStretch(); - layout = new QHBoxLayout(vlayout, spacing); + layout = new TQHBoxLayout(vlayout, spacing); mDurationButton = new RadioButton(i18n("&Duration:"), mButtonGroup); mDurationButton->setFixedSize(mDurationButton->sizeHint()); - QWhatsThis::add(mDurationButton, + TQWhatsThis::add(mDurationButton, i18n("Check to specify how long the alarm is to be repeated")); layout->addWidget(mDurationButton); mDuration = new TimePeriod(true, mButtonGroup); mDuration->setFixedSize(mDuration->sizeHint()); - connect(mDuration, SIGNAL(valueChanged(int)), SLOT(durationChanged(int))); - QWhatsThis::add(mDuration, + connect(mDuration, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(durationChanged(int))); + TQWhatsThis::add(mDuration, i18n("Enter the length of time to repeat the alarm")); layout->addWidget(mDuration); mDurationButton->setFocusWidget(mDuration); |