From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kalarm/lib/dateedit.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'kalarm/lib/dateedit.cpp') diff --git a/kalarm/lib/dateedit.cpp b/kalarm/lib/dateedit.cpp index 71553d70..2fef25de 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); -- cgit v1.2.3