summaryrefslogtreecommitdiffstats
path: root/kalarm/recurrenceeditprivate.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
commit67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch)
tree5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /kalarm/recurrenceeditprivate.h
parent2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff)
downloadtdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz
tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip
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
Diffstat (limited to 'kalarm/recurrenceeditprivate.h')
-rw-r--r--kalarm/recurrenceeditprivate.h25
1 files changed, 15 insertions, 10 deletions
diff --git a/kalarm/recurrenceeditprivate.h b/kalarm/recurrenceeditprivate.h
index 51a7085d..659921d5 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<int> months() const;
void setMonths(const TQValueList<int>& months);
void setDefaultValues(int dayOfMonth, int dayOfWeek, int month);