diff options
Diffstat (limited to 'kalarm/lib/dateedit.cpp')
-rw-r--r-- | kalarm/lib/dateedit.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/kalarm/lib/dateedit.cpp b/kalarm/lib/dateedit.cpp index 71553d704..2fef25de5 100644 --- a/kalarm/lib/dateedit.cpp +++ b/kalarm/lib/dateedit.cpp @@ -25,13 +25,13 @@ #include "dateedit.moc" -DateEdit::DateEdit(QWidget* parent, const char* name) +DateEdit::DateEdit(TQWidget* parent, const char* name) : KDateEdit(parent, name) { - connect(this, SIGNAL(dateEntered(const QDate&)), SLOT(newDateEntered(const QDate&))); + connect(this, TQT_SIGNAL(dateEntered(const TQDate&)), TQT_SLOT(newDateEntered(const TQDate&))); } -void DateEdit::setMinDate(const QDate& d, const QString& errorDate) +void DateEdit::setMinDate(const TQDate& d, const TQString& errorDate) { mMinDate = d; if (mMinDate.isValid() && date().isValid() && date() < mMinDate) @@ -39,7 +39,7 @@ void DateEdit::setMinDate(const QDate& d, const QString& errorDate) mMinDateErrString = errorDate; } -void DateEdit::setMaxDate(const QDate& d, const QString& errorDate) +void DateEdit::setMaxDate(const TQDate& d, const TQString& errorDate) { mMaxDate = d; if (mMaxDate.isValid() && date().isValid() && date() > mMaxDate) @@ -49,11 +49,11 @@ void DateEdit::setMaxDate(const QDate& d, const QString& errorDate) void DateEdit::setInvalid() { - setDate(QDate()); + setDate(TQDate()); } // Check a new date against any minimum or maximum date. -void DateEdit::newDateEntered(const QDate& newDate) +void DateEdit::newDateEntered(const TQDate& newDate) { if (newDate.isValid()) { @@ -72,12 +72,12 @@ void DateEdit::newDateEntered(const QDate& newDate) } } -void DateEdit::pastLimitMessage(const QDate& limit, const QString& error, const QString& defaultError) +void DateEdit::pastLimitMessage(const TQDate& limit, const TQString& error, const TQString& defaultError) { - QString errString = error; + TQString errString = error; if (errString.isNull()) { - if (limit == QDate::currentDate()) + if (limit == TQDate::currentDate()) errString = i18n("today"); else errString = KGlobal::locale()->formatDate(limit, true); @@ -86,7 +86,7 @@ void DateEdit::pastLimitMessage(const QDate& limit, const QString& error, const KMessageBox::sorry(this, errString); } -void DateEdit::mousePressEvent(QMouseEvent *e) +void DateEdit::mousePressEvent(TQMouseEvent *e) { if (isReadOnly()) { @@ -97,25 +97,25 @@ void DateEdit::mousePressEvent(QMouseEvent *e) KDateEdit::mousePressEvent(e); } -void DateEdit::mouseReleaseEvent(QMouseEvent* e) +void DateEdit::mouseReleaseEvent(TQMouseEvent* e) { if (!isReadOnly()) KDateEdit::mouseReleaseEvent(e); } -void DateEdit::mouseMoveEvent(QMouseEvent* e) +void DateEdit::mouseMoveEvent(TQMouseEvent* e) { if (!isReadOnly()) KDateEdit::mouseMoveEvent(e); } -void DateEdit::keyPressEvent(QKeyEvent* e) +void DateEdit::keyPressEvent(TQKeyEvent* e) { if (!isReadOnly()) KDateEdit::keyPressEvent(e); } -void DateEdit::keyReleaseEvent(QKeyEvent* e) +void DateEdit::keyReleaseEvent(TQKeyEvent* e) { if (!isReadOnly()) KDateEdit::keyReleaseEvent(e); |