summaryrefslogtreecommitdiffstats
path: root/src/part/videoWindow.cpp
diff options
context:
space:
mode:
authorgregory guy <[email protected]>2020-06-13 16:09:24 +0200
committergregory guy <[email protected]>2020-06-13 16:09:24 +0200
commit2c9bc9b806f533df7b8f5349467d0f4be95314a4 (patch)
tree15f82ae94dd430374f3d939958912c4fb2855326 /src/part/videoWindow.cpp
parent38eaf7209a322a622e1b898eaa5477568ca9c6b6 (diff)
downloadcodeine-2c9bc9b806f533df7b8f5349467d0f4be95314a4.tar.gz
codeine-2c9bc9b806f533df7b8f5349467d0f4be95314a4.zip
Conversion qt3 -> tqt3
Signed-off-by: gregory guy <[email protected]>
Diffstat (limited to 'src/part/videoWindow.cpp')
-rw-r--r--src/part/videoWindow.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/part/videoWindow.cpp b/src/part/videoWindow.cpp
index d798b36..97b87cd 100644
--- a/src/part/videoWindow.cpp
+++ b/src/part/videoWindow.cpp
@@ -5,9 +5,9 @@
#include <cstdlib>
#include "debug.h"
-#include <qapplication.h> //sendEvent()
-#include <qcursor.h>
-#include <qevent.h>
+#include <ntqapplication.h> //sendEvent()
+#include <ntqcursor.h>
+#include <ntqevent.h>
#include "videoWindow.h"
#include <X11/Xlib.h> //TODO this breaks compile for lots of people due to excessive macro content
#include <xine.h> //x11_visual_t
@@ -26,8 +26,8 @@ namespace X
}
-VideoWindow::VideoWindow( QWidget *parent, const char *name )
- : QWidget( parent, name )
+VideoWindow::VideoWindow( TQWidget *parent, const char *name )
+ : TQWidget( parent, name )
, m_osd( 0 )
, m_stream( 0 )
, m_eventQueue( 0 )
@@ -44,11 +44,11 @@ VideoWindow::VideoWindow( QWidget *parent, const char *name )
show();
- setWFlags( Qt::WNoAutoErase );
+ setWFlags( TQt::WNoAutoErase );
setMouseTracking( true );
setAcceptDrops( true );
- setUpdatesEnabled( false ); //to stop Qt drawing over us
- setPaletteBackgroundColor( Qt::black );
+ setUpdatesEnabled( false ); //to stop TQt drawing over us
+ setPaletteBackgroundColor( TQt::black );
X::d = XOpenDisplay( std::getenv("DISPLAY") );
X::s = DefaultScreen( X::d );
@@ -146,22 +146,22 @@ VideoWindow::frameOutputCallBack(
}
bool
-VideoWindow::event( QEvent *e )
+VideoWindow::event( TQEvent *e )
{
switch( e->type() )
{
- case QEvent::MouseMove:
- case QEvent::MouseButtonPress:
+ case TQEvent::MouseMove:
+ case TQEvent::MouseButtonPress:
unsetCursor();
m_timer.start( CURSOR_HIDE_TIMEOUT, true );
break;
- case QEvent::Close:
- case QEvent::Hide:
+ case TQEvent::Close:
+ case TQEvent::Hide:
xine_stop( m_stream );
break;
- case QEvent::Leave:
+ case TQEvent::Leave:
m_timer.stop();
break;
@@ -169,7 +169,7 @@ VideoWindow::event( QEvent *e )
;
}
- return QWidget::event( e );
+ return TQWidget::event( e );
}
bool
@@ -186,7 +186,7 @@ VideoWindow::x11Event( XEvent *e )
void
VideoWindow::hideCursor()
{
- setCursor( Qt::BlankCursor );
+ setCursor( TQt::BlankCursor );
}
} //namespace Codeine