diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-30 06:10:56 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-30 06:10:56 +0000 |
commit | 769e63d24adf5c844137484f06a972fcce732d6a (patch) | |
tree | 5185797dcb3ff4b1b3cb71d367123bf89eb2410f /src/kmplayer_koffice_part.h | |
parent | 0a8af92185eac74d48da1225e6053a0d66c078f5 (diff) | |
download | kmplayer-769e63d24adf5c844137484f06a972fcce732d6a.tar.gz kmplayer-769e63d24adf5c844137484f06a972fcce732d6a.zip |
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
Diffstat (limited to 'src/kmplayer_koffice_part.h')
-rw-r--r-- | src/kmplayer_koffice_part.h | 32 |
1 files changed, 17 insertions, 15 deletions
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 <koDocument.h> #include <koView.h> #endif //HAVE_KOFFICE -#include <qobject.h> -#include <qvaluelist.h> -#include <qstringlist.h> -#include <qguardedptr.h> -#include <qregexp.h> +#include <tqobject.h> +#include <tqvaluelist.h> +#include <tqstringlist.h> +#include <tqguardedptr.h> +#include <tqregexp.h> #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 <QWidget> m_oldparent; + TQGuardedPtr <TQWidget> 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; |