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/interfaces/korganizer/baseview.h | 9 +++++---- .../interfaces/korganizer/calendarviewbase.h | 6 +++--- korganizer/interfaces/korganizer/corehelper.h | 4 ++-- .../interfaces/korganizer/incidencechangerbase.h | 23 +++++++++++----------- korganizer/interfaces/korganizer/part.h | 6 +++--- 5 files changed, 25 insertions(+), 23 deletions(-) (limited to 'korganizer/interfaces/korganizer') diff --git a/korganizer/interfaces/korganizer/baseview.h b/korganizer/interfaces/korganizer/baseview.h index 920559da..31a3edbc 100644 --- a/korganizer/interfaces/korganizer/baseview.h +++ b/korganizer/interfaces/korganizer/baseview.h @@ -56,20 +56,21 @@ namespace KOrg { @author Preston Brown, Cornelius Schumacher @see KOTodoView, KOEventView, KOListView, KOAgendaView, KOMonthView */ -class KDE_EXPORT BaseView : public QWidget +class KDE_EXPORT BaseView : public TQWidget { Q_OBJECT + TQ_OBJECT public: /** Constructs a view. @param cal Pointer to the calendar object from which events will be retrieved for display. - @param parent parent widget. + @param tqparent tqparent widget. @param name name of this widget. */ - BaseView( Calendar *cal, TQWidget *parent = 0, const char *name = 0 ) - : TQWidget( parent, name ), + BaseView( Calendar *cal, TQWidget *tqparent = 0, const char *name = 0 ) + : TQWidget( tqparent, name ), mReadOnly( false ), mCalendar( cal ), mResource( 0 ), mChanger( 0 ) {} /** diff --git a/korganizer/interfaces/korganizer/calendarviewbase.h b/korganizer/interfaces/korganizer/calendarviewbase.h index 02c2459b..8afefdd8 100644 --- a/korganizer/interfaces/korganizer/calendarviewbase.h +++ b/korganizer/interfaces/korganizer/calendarviewbase.h @@ -34,11 +34,11 @@ namespace KOrg { @short interface for main calendar view widget @author Cornelius Schumacher */ -class CalendarViewBase : public QWidget +class CalendarViewBase : public TQWidget { public: - CalendarViewBase( TQWidget *parent, const char *name ) - : TQWidget( parent, name ) {} + CalendarViewBase( TQWidget *tqparent, const char *name ) + : TQWidget( tqparent, name ) {} virtual ~CalendarViewBase() {} virtual KCal::Calendar *calendar() = 0; diff --git a/korganizer/interfaces/korganizer/corehelper.h b/korganizer/interfaces/korganizer/corehelper.h index 8c69a1ad..36a89f65 100644 --- a/korganizer/interfaces/korganizer/corehelper.h +++ b/korganizer/interfaces/korganizer/corehelper.h @@ -17,8 +17,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 KORG_COREHELPER_H #define KORG_COREHELPER_H diff --git a/korganizer/interfaces/korganizer/incidencechangerbase.h b/korganizer/interfaces/korganizer/incidencechangerbase.h index ec0288aa..ba4faf06 100644 --- a/korganizer/interfaces/korganizer/incidencechangerbase.h +++ b/korganizer/interfaces/korganizer/incidencechangerbase.h @@ -36,18 +36,19 @@ using namespace KCal; namespace KOrg { -class IncidenceChangerBase : public QObject +class IncidenceChangerBase : public TQObject { Q_OBJECT + TQ_OBJECT public: - IncidenceChangerBase( Calendar*cal, TQObject *parent = 0 ) : - TQObject( parent ), mCalendar( cal ) {} + IncidenceChangerBase( Calendar*cal, TQObject *tqparent = 0 ) : + TQObject( tqparent ), mCalendar( cal ) {} virtual ~IncidenceChangerBase() {} virtual bool sendGroupwareMessage( Incidence *incidence, KCal::Scheduler::Method method, KOGlobals::HowChanged action, - TQWidget *parent ) = 0; + TQWidget *tqparent ) = 0; virtual bool beginChange( Incidence *incidence, ResourceCalendar *res, const TQString &subRes ) = 0; @@ -56,20 +57,20 @@ public: virtual bool addIncidence( Incidence *incidence, ResourceCalendar *res, const TQString &subRes, - TQWidget *parent ) = 0; + TQWidget *tqparent ) = 0; virtual bool addIncidence( Incidence *incidence, ResourceCalendar *res, const TQString &subRes, - TQWidget *parent, int dontAskForGroupware) = 0; + TQWidget *tqparent, int dontAskForGroupware) = 0; virtual bool changeIncidence( Incidence *oldinc, Incidence *newinc, - KOGlobals::WhatChanged, TQWidget *parent ) = 0; + KOGlobals::WhatChanged, TQWidget *tqparent ) = 0; virtual bool changeIncidence( Incidence *oldinc, Incidence *newinc, - KOGlobals::WhatChanged, TQWidget *parent, int dontAskForGroupware ) = 0; + KOGlobals::WhatChanged, TQWidget *tqparent, int dontAskForGroupware ) = 0; - virtual bool deleteIncidence( Incidence *incidence, TQWidget *parent ) = 0; + virtual bool deleteIncidence( Incidence *incidence, TQWidget *tqparent ) = 0; - virtual bool cutIncidences( const Incidence::List &incidences, TQWidget *parent ) = 0; - virtual bool cutIncidence( Incidence *incidence, TQWidget *parent ) = 0; + virtual bool cutIncidences( const Incidence::List &incidences, TQWidget *tqparent ) = 0; + virtual bool cutIncidence( Incidence *incidence, TQWidget *tqparent ) = 0; signals: void incidenceAdded( Incidence * ); diff --git a/korganizer/interfaces/korganizer/part.h b/korganizer/interfaces/korganizer/part.h index e75e9085..a7093e28 100644 --- a/korganizer/interfaces/korganizer/part.h +++ b/korganizer/interfaces/korganizer/part.h @@ -38,8 +38,8 @@ class Part : public KParts::Part typedef TQPtrList List; - Part( MainWindow *parent, const char *name ) - : KParts::Part( parent?(parent->tqtopLevelWidget()):0, name ), mMainWindow( parent ) {} + Part( MainWindow *tqparent, const char *name ) + : KParts::Part( tqparent?(tqparent->tqtopLevelWidget()):0, name ), mMainWindow( tqparent ) {} virtual ~Part() {} @@ -56,7 +56,7 @@ class Part : public KParts::Part class PartFactory : public KLibFactory { public: - virtual Part *create( MainWindow *parent, const char *name = 0 ) = 0; + virtual Part *create( MainWindow *tqparent, const char *name = 0 ) = 0; protected: virtual TQObject *createObject( TQObject *, const char *,const char *, -- cgit v1.2.3