From 769e63d24adf5c844137484f06a972fcce732d6a Mon Sep 17 00:00:00 2001 From: tpearson Date: Thu, 30 Jun 2011 06:10:56 +0000 Subject: TQt4 port kmplayer This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kmplayer@1238840 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/kmplayer_koffice_part.h | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) (limited to 'src/kmplayer_koffice_part.h') diff --git a/src/kmplayer_koffice_part.h b/src/kmplayer_koffice_part.h index 632a570..ca9002e 100644 --- a/src/kmplayer_koffice_part.h +++ b/src/kmplayer_koffice_part.h @@ -28,11 +28,11 @@ #include #include #endif //HAVE_KOFFICE -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include #include "kmplayerview.h" #include "kmplayersource.h" @@ -42,39 +42,41 @@ class KAboutData; class KMPlayer; class KInstance; class KConfig; -class QIODevice; +class TQIODevice; #ifdef HAVE_KOFFICE class KOfficeMPlayer; class KOfficeMPlayerView : public KoView { Q_OBJECT + TQ_OBJECT public: - KOfficeMPlayerView (KOfficeMPlayer* part, QWidget* parent, const char* name = 0 ); + KOfficeMPlayerView (KOfficeMPlayer* part, TQWidget* tqparent, const char* name = 0 ); ~KOfficeMPlayerView (); void updateReadWrite(bool) {} private: KMPlayer::View * m_view; - QGuardedPtr m_oldparent; + TQGuardedPtr m_oldtqparent; }; class KOfficeMPlayer : public KoDocument { Q_OBJECT + TQ_OBJECT public: - KOfficeMPlayer (QWidget *parentWidget = 0, const char *widgetName = 0, QObject* parent = 0, const char* name = 0, bool singleViewMode = false); + KOfficeMPlayer (TQWidget *tqparentWidget = 0, const char *widgetName = 0, TQObject* tqparent = 0, const char* name = 0, bool singleViewMode = false); ~KOfficeMPlayer (); - virtual void paintContent (QPainter& painter, const QRect& rect, + virtual void paintContent (TQPainter& painter, const TQRect& rect, bool transparent = false, double zoomX = 1.0, double zoomY = 1.0); virtual bool initDoc (); - virtual bool loadXML (QIODevice *, const QDomDocument &); - virtual bool loadOasis (const QDomDocument &, KoOasisStyles &, const QDomDocument &, KoStore *); - virtual QDomDocument saveXML (); - virtual QCString mimeType() const { return "application/x-kmplayer"; } + virtual bool loadXML (TQIODevice *, const TQDomDocument &); + virtual bool loadOasis (const TQDomDocument &, KoOasisStyles &, const TQDomDocument &, KoStore *); + virtual TQDomDocument saveXML (); + virtual TQCString mimeType() const { return "application/x-kmplayer"; } KMPlayer * player () const { return m_player; } protected: - virtual KoView* createViewInstance (QWidget* parent, const char* name); + virtual KoView* createViewInstance (TQWidget* tqparent, const char* name); private: KConfig * m_config; KMPlayer * m_player; -- cgit v1.2.1