diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
commit | 67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch) | |
tree | 5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /korganizer/interfaces | |
parent | 2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff) | |
download | tdepim-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 'korganizer/interfaces')
-rw-r--r-- | korganizer/interfaces/calendar/calendardecoration.h | 4 | ||||
-rw-r--r-- | korganizer/interfaces/korganizer/baseview.h | 9 | ||||
-rw-r--r-- | korganizer/interfaces/korganizer/calendarviewbase.h | 6 | ||||
-rw-r--r-- | korganizer/interfaces/korganizer/corehelper.h | 4 | ||||
-rw-r--r-- | korganizer/interfaces/korganizer/incidencechangerbase.h | 23 | ||||
-rw-r--r-- | korganizer/interfaces/korganizer/part.h | 6 |
6 files changed, 27 insertions, 25 deletions
diff --git a/korganizer/interfaces/calendar/calendardecoration.h b/korganizer/interfaces/calendar/calendardecoration.h index 1653edb48..cd79f233d 100644 --- a/korganizer/interfaces/calendar/calendardecoration.h +++ b/korganizer/interfaces/calendar/calendardecoration.h @@ -51,12 +51,12 @@ class CalendarDecoration : public Plugin /** Return a short text for a given date, ususally only a few words. */ - virtual TQString shortText( const TQDate & ) { return TQString::null; } + virtual TQString shortText( const TQDate & ) { return TQString(); } /** Return along text for a given date. This text can be of any length, but usually it will have one or a few paragraphs. */ - virtual TQString longText( const TQDate & ) { return TQString::null; } + virtual TQString longText( const TQDate & ) { return TQString(); } /** Return a small pixmap. The size should be something like 30x30 pixels. diff --git a/korganizer/interfaces/korganizer/baseview.h b/korganizer/interfaces/korganizer/baseview.h index 920559daf..31a3edbc0 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 02c2459bb..8afefdd84 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 8c69a1adc..36a89f652 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 ec0288aac..ba4faf065 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 e75e9085d..a7093e28f 100644 --- a/korganizer/interfaces/korganizer/part.h +++ b/korganizer/interfaces/korganizer/part.h @@ -38,8 +38,8 @@ class Part : public KParts::Part typedef TQPtrList<Part> 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 *, |