summaryrefslogtreecommitdiffstats
path: root/kalarm/lib/dateedit.h
diff options
context:
space:
mode:
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