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/viewarea.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/viewarea.h')
-rw-r--r-- | src/viewarea.h | 41 |
1 files changed, 21 insertions, 20 deletions
diff --git a/src/viewarea.h b/src/viewarea.h index 6277b6e..4f859ce 100644 --- a/src/viewarea.h +++ b/src/viewarea.h @@ -20,7 +20,7 @@ #ifndef KMPLAYER_VIEW_AREA_H #define KMPLAYER_VIEW_AREA_H -#include <qwidget.h> +#include <tqwidget.h> class KActionCollection; @@ -32,51 +32,52 @@ class ViewAreaPrivate; /* * The area in which the video widget and controlpanel are laid out */ -class KMPLAYER_EXPORT ViewArea : public QWidget { +class KMPLAYER_EXPORT ViewArea : public TQWidget { Q_OBJECT + TQ_OBJECT public: - ViewArea (QWidget * parent, View * view); + ViewArea (TQWidget * tqparent, View * view); ~ViewArea (); KDE_NO_EXPORT bool isFullScreen () const { return m_fullscreen; } KDE_NO_EXPORT bool isMinimalMode () const { return m_minimal; } KDE_NO_EXPORT KActionCollection * actionCollection () const { return m_collection; } - KDE_NO_EXPORT QRect topWindowRect () const { return m_topwindow_rect; } + KDE_NO_EXPORT TQRect topWindowRect () const { return m_topwindow_rect; } SurfacePtr getSurface (NodePtr node); void setAudioVideoGeometry (const IRect &rect, unsigned int * bg); void setAudioVideoNode (NodePtr n); void mouseMoved (); void scheduleRepaint (const IRect &rect); - void resizeEvent (QResizeEvent *); + void resizeEvent (TQResizeEvent *); void minimalMode (); public slots: void fullScreen (); void accelActivated (); void scale (int); protected: - void showEvent (QShowEvent *); - void mouseMoveEvent (QMouseEvent *); - void mousePressEvent (QMouseEvent *); - void mouseDoubleClickEvent (QMouseEvent *); - void dragEnterEvent (QDragEnterEvent *); - void dropEvent (QDropEvent *); - void contextMenuEvent (QContextMenuEvent * e); - void paintEvent (QPaintEvent *); - void timerEvent (QTimerEvent * e); - void closeEvent (QCloseEvent * e); + void showEvent (TQShowEvent *); + void mouseMoveEvent (TQMouseEvent *); + void mousePressEvent (TQMouseEvent *); + void mouseDoubleClickEvent (TQMouseEvent *); + void dragEnterEvent (TQDragEnterEvent *); + void dropEvent (TQDropEvent *); + void contextMenuEvent (TQContextMenuEvent * e); + void paintEvent (TQPaintEvent *); + void timerEvent (TQTimerEvent * e); + void closeEvent (TQCloseEvent * e); private: void syncVisual (const IRect & rect); void updateSurfaceBounds (); ViewAreaPrivate * d; - QWidget * m_parent; + TQWidget * m_parent; View * m_view; KActionCollection * m_collection; SurfacePtr surface; NodePtrW video_node; - QRect m_av_geometry; - IRect m_repaint_rect; - QRect m_topwindow_rect; + TQRect m_av_tqgeometry; + IRect m_tqrepaint_rect; + TQRect m_topwindow_rect; int m_mouse_invisible_timer; - int m_repaint_timer; + int m_tqrepaint_timer; int m_fullscreen_scale; int scale_lbl_id; int scale_slider_id; |