summaryrefslogtreecommitdiffstats
path: root/kalarm/lib/dateedit.h
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/lib/dateedit.h
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/lib/dateedit.h')
-rw-r--r--kalarm/lib/dateedit.h36
1 files changed, 18 insertions, 18 deletions
diff --git a/kalarm/lib/dateedit.h b/kalarm/lib/dateedit.h
index 031a96741..c7c015785 100644
--- a/kalarm/lib/dateedit.h
+++ b/kalarm/lib/dateedit.h
@@ -42,49 +42,49 @@ class DateEdit : public KDateEdit
* @param parent The parent object of this widget.
* @param name The name of this widget.
*/
- explicit DateEdit(QWidget* parent = 0, const char* name = 0);
+ explicit DateEdit(TQWidget* parent = 0, const char* name = 0);
/** Returns true if the widget contains a valid date. */
bool isValid() const { return date().isValid(); }
/** Returns the earliest date which can be entered.
* If there is no minimum date, returns an invalid date.
*/
- const QDate& minDate() const { return mMinDate; }
+ const TQDate& minDate() const { return mMinDate; }
/** Returns the latest date which can be entered.
* If there is no maximum date, returns an invalid date.
*/
- const QDate& maxDate() const { return mMaxDate; }
+ const TQDate& maxDate() const { return mMaxDate; }
/** Sets the earliest date which can be entered.
* @param date Earliest date allowed. If invalid, any minimum limit is removed.
* @param errorDate Error message to be displayed when a date earlier than
- * @p date is entered. Set to QString::null to use the default error message.
+ * @p date is entered. Set to TQString::null to use the default error message.
*/
- void setMinDate(const QDate& date, const QString& errorDate = QString::null);
+ void setMinDate(const TQDate& date, const TQString& errorDate = TQString::null);
/** Sets the latest date which can be entered.
* @param date Latest date allowed. If invalid, any maximum limit is removed.
* @param errorDate Error message to be displayed when a date later than
- * @p date is entered. Set to QString::null to use the default error message.
+ * @p date is entered. Set to TQString::null to use the default error message.
*/
- void setMaxDate(const QDate& date, const QString& errorDate = QString::null);
+ void setMaxDate(const TQDate& date, const TQString& errorDate = TQString::null);
/** Sets the date held in the widget to an invalid date. */
void setInvalid();
protected:
- virtual void mousePressEvent(QMouseEvent*);
- virtual void mouseReleaseEvent(QMouseEvent*);
- virtual void mouseMoveEvent(QMouseEvent*);
- virtual void keyPressEvent(QKeyEvent*);
- virtual void keyReleaseEvent(QKeyEvent*);
+ virtual void mousePressEvent(TQMouseEvent*);
+ virtual void mouseReleaseEvent(TQMouseEvent*);
+ virtual void mouseMoveEvent(TQMouseEvent*);
+ virtual void keyPressEvent(TQKeyEvent*);
+ virtual void keyReleaseEvent(TQKeyEvent*);
private slots:
- void newDateEntered(const QDate&);
+ void newDateEntered(const TQDate&);
private:
- void pastLimitMessage(const QDate& limit, const QString& error, const QString& defaultError);
+ void pastLimitMessage(const TQDate& limit, const TQString& error, const TQString& defaultError);
- QDate mMinDate; // minimum allowed date, or invalid for no minimum
- QDate mMaxDate; // maximum allowed date, or invalid for no maximum
- QString mMinDateErrString; // error message when entered date < mMinDate
- QString mMaxDateErrString; // error message when entered date > mMaxDate
+ TQDate mMinDate; // minimum allowed date, or invalid for no minimum
+ TQDate mMaxDate; // maximum allowed date, or invalid for no maximum
+ TQString mMinDateErrString; // error message when entered date < mMinDate
+ TQString mMaxDateErrString; // error message when entered date > mMaxDate
};
#endif // DATEEDIT_H