From 67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 13 Apr 2011 00:46:47 +0000 Subject: Initial conversion of kdepim to TQt This will probably require some tweaking before it will build under Qt4, however Qt3 builds are OK. Any alterations this commit makes to kdepim behaviour under Qt3 are unintentional and should be fixed. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kalarm/recurrenceeditprivate.h | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) (limited to 'kalarm/recurrenceeditprivate.h') diff --git a/kalarm/recurrenceeditprivate.h b/kalarm/recurrenceeditprivate.h index 51a7085db..659921d5b 100644 --- a/kalarm/recurrenceeditprivate.h +++ b/kalarm/recurrenceeditprivate.h @@ -36,10 +36,10 @@ class TimeSpinBox; class TQString; -class NoRule : public QFrame +class NoRule : public TQFrame { public: - NoRule(TQWidget* parent, const char* name = 0) : TQFrame(parent, name) + NoRule(TQWidget* tqparent, const char* name = 0) : TQFrame(tqparent, name) { setFrameStyle(TQFrame::NoFrame); } virtual int frequency() const { return 0; } }; @@ -47,9 +47,10 @@ class NoRule : public QFrame class Rule : public NoRule { Q_OBJECT + TQ_OBJECT public: Rule(const TQString& freqText, const TQString& freqWhatsThis, bool time, bool readOnly, - TQWidget* parent, const char* name = 0); + TQWidget* tqparent, const char* name = 0); int frequency() const; void setFrequency(int); virtual void setFrequencyFocus() { mSpinBox->setFocus(); } @@ -72,17 +73,19 @@ class Rule : public NoRule class SubDailyRule : public Rule { Q_OBJECT + TQ_OBJECT public: - SubDailyRule(bool readOnly, TQWidget* parent, const char* name = 0); + SubDailyRule(bool readOnly, TQWidget* tqparent, const char* name = 0); }; // Daily/weekly rule choices base class class DayWeekRule : public Rule { Q_OBJECT + TQ_OBJECT public: DayWeekRule(const TQString& freqText, const TQString& freqWhatsThis, const TQString& daysWhatsThis, - bool readOnly, TQWidget* parent, const char* name = 0); + bool readOnly, TQWidget* tqparent, const char* name = 0); TQBitArray days() const; void setDays(bool); void setDays(const TQBitArray& days); @@ -100,25 +103,26 @@ class DayWeekRule : public Rule class DailyRule : public DayWeekRule { public: - DailyRule(bool readOnly, TQWidget* parent, const char* name = 0); + DailyRule(bool readOnly, TQWidget* tqparent, const char* name = 0); }; // Weekly rule choices class WeeklyRule : public DayWeekRule { public: - WeeklyRule(bool readOnly, TQWidget* parent, const char* name = 0); + WeeklyRule(bool readOnly, TQWidget* tqparent, const char* name = 0); }; // Monthly/yearly rule choices base class class MonthYearRule : public Rule { Q_OBJECT + TQ_OBJECT public: enum DayPosType { DATE, POS }; MonthYearRule(const TQString& freqText, const TQString& freqWhatsThis, bool allowEveryWeek, - bool readOnly, TQWidget* parent, const char* name = 0); + bool readOnly, TQWidget* tqparent, const char* name = 0); DayPosType type() const; int date() const; // if date in month is selected int week() const; // if position is selected @@ -161,15 +165,16 @@ class MonthYearRule : public Rule class MonthlyRule : public MonthYearRule { public: - MonthlyRule(bool readOnly, TQWidget* parent, const char* name = 0); + MonthlyRule(bool readOnly, TQWidget* tqparent, const char* name = 0); }; // Yearly rule choices class YearlyRule : public MonthYearRule { Q_OBJECT + TQ_OBJECT public: - YearlyRule(bool readOnly, TQWidget* parent, const char* name = 0); + YearlyRule(bool readOnly, TQWidget* tqparent, const char* name = 0); TQValueList months() const; void setMonths(const TQValueList& months); void setDefaultValues(int dayOfMonth, int dayOfWeek, int month); -- cgit v1.2.1