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 --- libkcal/calendarresources.h | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) (limited to 'libkcal/calendarresources.h') diff --git a/libkcal/calendarresources.h b/libkcal/calendarresources.h index 9a93be53..3f601502 100644 --- a/libkcal/calendarresources.h +++ b/libkcal/calendarresources.h @@ -66,6 +66,7 @@ class LIBKCAL_EXPORT CalendarResources : public KRES::ManagerObserver { Q_OBJECT + TQ_OBJECT public: /** @class DestinationPolicy @@ -74,12 +75,12 @@ class LIBKCAL_EXPORT CalendarResources : { public: DestinationPolicy( CalendarResourceManager *manager, - TQWidget *parent = 0 ) : - mManager( manager ), mParent( parent ) {} + TQWidget *tqparent = 0 ) : + mManager( manager ), mParent( tqparent ) {} virtual ResourceCalendar *destination( Incidence *incidence ) = 0; - virtual TQWidget *parent() { return mParent; } - virtual void setParent( TQWidget *newparent ) { mParent = newparent; } + virtual TQWidget *tqparent() { return mParent; } + virtual void setParent( TQWidget *newtqparent ) { mParent = newtqparent; } bool hasCalendarResources(); protected: CalendarResourceManager *resourceManager() @@ -97,8 +98,8 @@ class LIBKCAL_EXPORT CalendarResources : { public: StandardDestinationPolicy( CalendarResourceManager *manager, - TQWidget *parent = 0 ) : - DestinationPolicy( manager, parent ) {} + TQWidget *tqparent = 0 ) : + DestinationPolicy( manager, tqparent ) {} ResourceCalendar *destination( Incidence *incidence ); @@ -114,8 +115,8 @@ class LIBKCAL_EXPORT CalendarResources : { public: AskDestinationPolicy( CalendarResourceManager *manager, - TQWidget *parent = 0 ) : - DestinationPolicy( manager, parent ) {} + TQWidget *tqparent = 0 ) : + DestinationPolicy( manager, tqparent ) {} ResourceCalendar *destination( Incidence *incidence ); @@ -270,8 +271,8 @@ class LIBKCAL_EXPORT CalendarResources : void setAskDestinationPolicy(); /** - Returns the current parent for new dialogs. This is a bad hack, but we need - to properly set the parent for the resource selection dialog. Otherwise + Returns the current tqparent for new dialogs. This is a bad hack, but we need + to properly set the tqparent for the resource selection dialog. Otherwise the dialog will not be modal to the editor dialog in korganizer and the user can still work in the editor dialog (and thus crash korganizer). Afterwards we need to reset it (to avoid pointers to widgets that are @@ -279,12 +280,12 @@ class LIBKCAL_EXPORT CalendarResources : */ TQWidget *dialogParentWidget(); /** - Set the widget parent for new dialogs. This is a bad hack, but we need - to properly set the parent for the resource selection dialog. Otherwise + Set the widget tqparent for new dialogs. This is a bad hack, but we need + to properly set the tqparent for the resource selection dialog. Otherwise the dialog will not be modal to the editor dialog in korganizer and the user can still work in the editor dialog (and thus crash korganizer). */ - void setDialogParentWidget( TQWidget *parent ); + void setDialogParentWidget( TQWidget *tqparent ); /** Request ticket for saving the Calendar. If a ticket is returned the -- cgit v1.2.3