summaryrefslogtreecommitdiffstats
path: root/libkcal/calendarresources.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 /libkcal/calendarresources.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 'libkcal/calendarresources.h')
-rw-r--r--libkcal/calendarresources.h27
1 files changed, 14 insertions, 13 deletions
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<ResourceCalendar>
{
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