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 --- korganizer/koeditorrecurrence.h | 47 +++++++++++++++++++++++------------------ 1 file changed, 26 insertions(+), 21 deletions(-) (limited to 'korganizer/koeditorrecurrence.h') diff --git a/korganizer/koeditorrecurrence.h b/korganizer/koeditorrecurrence.h index 831ba62b..3060d660 100644 --- a/korganizer/koeditorrecurrence.h +++ b/korganizer/koeditorrecurrence.h @@ -18,8 +18,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. As a special exception, permission is given to link this program - with any edition of Qt, and distribute the resulting executable, - without including the source code for Qt in the source distribution. + with any edition of TQt, and distribute the resulting executable, + without including the source code for TQt in the source distribution. */ #ifndef _KOEDITORRECURRENCE_H #define _KOEDITORRECURRENCE_H @@ -44,10 +44,10 @@ class Incidence; } using namespace KCal; -class RecurBase : public QWidget +class RecurBase : public TQWidget { public: - RecurBase( TQWidget *parent = 0, const char *name = 0 ); + RecurBase( TQWidget *tqparent = 0, const char *name = 0 ); void setFrequency( int ); int frequency(); @@ -58,10 +58,10 @@ class RecurBase : public QWidget TQWidget *frequencyEdit(); protected: - static TQComboBox *createWeekCountCombo( TQWidget *parent=0, const char *name=0 ); - static TQComboBox *createWeekdayCombo( TQWidget *parent=0, const char *name=0 ); - static TQComboBox *createMonthNameCombo( TQWidget *parent=0, const char *name=0 ); - TQBoxLayout *createFrequencySpinBar( TQWidget *parent, TQLayout *tqlayout, + static TQComboBox *createWeekCountCombo( TQWidget *tqparent=0, const char *name=0 ); + static TQComboBox *createWeekdayCombo( TQWidget *tqparent=0, const char *name=0 ); + static TQComboBox *createMonthNameCombo( TQWidget *tqparent=0, const char *name=0 ); + TQBoxLayout *createFrequencySpinBar( TQWidget *tqparent, TQLayout *tqlayout, TQString everyText, TQString unitText ); private: @@ -71,13 +71,13 @@ class RecurBase : public QWidget class RecurDaily : public RecurBase { public: - RecurDaily( TQWidget *parent = 0, const char *name = 0 ); + RecurDaily( TQWidget *tqparent = 0, const char *name = 0 ); }; class RecurWeekly : public RecurBase { public: - RecurWeekly( TQWidget *parent = 0, const char *name = 0 ); + RecurWeekly( TQWidget *tqparent = 0, const char *name = 0 ); void setDays( const TQBitArray & ); TQBitArray days(); @@ -89,7 +89,7 @@ class RecurWeekly : public RecurBase class RecurMonthly : public RecurBase { public: - RecurMonthly( TQWidget *parent = 0, const char *name = 0 ); + RecurMonthly( TQWidget *tqparent = 0, const char *name = 0 ); void setByDay( int day ); void setByPos( int count, int weekday ); @@ -116,7 +116,7 @@ class RecurYearly : public RecurBase public: enum YearlyType { byDay, byPos, byMonth }; - RecurYearly( TQWidget *parent = 0, const char *name = 0 ); + RecurYearly( TQWidget *tqparent = 0, const char *name = 0 ); void setByDay( int day ); void setByPos( int count, int weekday, int month ); @@ -146,11 +146,12 @@ class RecurYearly : public RecurBase TQSpinBox *mByDaySpin; }; -class RecurrenceChooser : public QWidget +class RecurrenceChooser : public TQWidget { Q_OBJECT + TQ_OBJECT public: - RecurrenceChooser( TQWidget *parent = 0, const char *name = 0 ); + RecurrenceChooser( TQWidget *tqparent = 0, const char *name = 0 ); enum { Daily, Weekly, Monthly, Yearly }; @@ -182,8 +183,9 @@ class ExceptionsBase class ExceptionsWidget : public TQWidget, public ExceptionsBase { Q_OBJECT + TQ_OBJECT public: - ExceptionsWidget( TQWidget *parent = 0, const char *name = 0 ); + ExceptionsWidget( TQWidget *tqparent = 0, const char *name = 0 ); void setDates( const DateList & ); DateList dates(); @@ -202,7 +204,7 @@ class ExceptionsWidget : public TQWidget, public ExceptionsBase class ExceptionsDialog : public KDialogBase, public ExceptionsBase { public: - ExceptionsDialog( TQWidget *parent, const char *name = 0 ); + ExceptionsDialog( TQWidget *tqparent, const char *name = 0 ); void setDates( const DateList & ); DateList dates(); @@ -229,8 +231,9 @@ class RecurrenceRangeBase class RecurrenceRangeWidget : public TQWidget, public RecurrenceRangeBase { Q_OBJECT + TQ_OBJECT public: - RecurrenceRangeWidget( TQWidget *parent = 0, const char *name = 0 ); + RecurrenceRangeWidget( TQWidget *tqparent = 0, const char *name = 0 ); void setDefaults( const TQDateTime &from ); @@ -259,7 +262,7 @@ class RecurrenceRangeWidget : public TQWidget, public RecurrenceRangeBase class RecurrenceRangeDialog : public KDialogBase, public RecurrenceRangeBase { public: - RecurrenceRangeDialog( TQWidget *parent = 0, const char *name = 0 ); + RecurrenceRangeDialog( TQWidget *tqparent = 0, const char *name = 0 ); void setDefaults( const TQDateTime &from ); @@ -276,11 +279,12 @@ class RecurrenceRangeDialog : public KDialogBase, public RecurrenceRangeBase RecurrenceRangeWidget *mRecurrenceRangeWidget; }; -class KOEditorRecurrence : public QWidget +class KOEditorRecurrence : public TQWidget { Q_OBJECT + TQ_OBJECT public: - KOEditorRecurrence ( TQWidget *parent = 0, const char *name = 0 ); + KOEditorRecurrence ( TQWidget *tqparent = 0, const char *name = 0 ); virtual ~KOEditorRecurrence(); enum { Daily, Weekly, Monthly, Yearly }; @@ -345,8 +349,9 @@ class KOEditorRecurrence : public QWidget class KOEditorRecurrenceDialog : public KDialogBase { Q_OBJECT + TQ_OBJECT public: - KOEditorRecurrenceDialog( TQWidget *parent ); + KOEditorRecurrenceDialog( TQWidget *tqparent ); KOEditorRecurrence* editor() const { return mRecurrence; } protected slots: -- cgit v1.2.3