summaryrefslogtreecommitdiffstats
path: root/src/app/analyzer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/analyzer.cpp')
-rw-r--r--src/app/analyzer.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/app/analyzer.cpp b/src/app/analyzer.cpp
index c9b8637..593bd16 100644
--- a/src/app/analyzer.cpp
+++ b/src/app/analyzer.cpp
@@ -5,26 +5,26 @@
#include "codeine.h"
#include "debug.h"
#include <math.h> //interpolate()
-#include <qevent.h> //event()
+#include <ntqevent.h> //event()
#include "xineEngine.h"
#include "fht.cpp"
template<class W>
-Analyzer::Base<W>::Base( QWidget *parent, uint timeout )
+Analyzer::Base<W>::Base( TQWidget *parent, uint timeout )
: W( parent, "Analyzer" )
, m_timeout( timeout )
{}
template<class W> bool
-Analyzer::Base<W>::event( QEvent *e )
+Analyzer::Base<W>::event( TQEvent *e )
{
switch( e->type() ) {
- case QEvent::Hide:
+ case TQEvent::Hide:
m_timer.stop();
break;
- case QEvent::Show:
+ case TQEvent::Show:
m_timer.start( timeout() );
break;
@@ -32,14 +32,14 @@ Analyzer::Base<W>::event( QEvent *e )
;
}
- return QWidget::event( e );
+ return TQWidget::event( e );
}
-Analyzer::Base2D::Base2D( QWidget *parent, uint timeout )
- : Base<QWidget>( parent, timeout )
+Analyzer::Base2D::Base2D( TQWidget *parent, uint timeout )
+ : Base<TQWidget>( parent, timeout )
{
- setWFlags( Qt::WNoAutoErase ); //no flicker
+ setWFlags( TQt::WNoAutoErase ); //no flicker
connect( &m_timer, SIGNAL(timeout()), SLOT(draw()) );
}
@@ -72,7 +72,7 @@ Analyzer::Base2D::draw()
}
void
-Analyzer::Base2D::resizeEvent( QResizeEvent* )
+Analyzer::Base2D::resizeEvent( TQResizeEvent* )
{
m_canvas.resize( size() );
m_canvas.fill( colorGroup().background() );
@@ -83,9 +83,9 @@ Analyzer::Base2D::resizeEvent( QResizeEvent* )
// Author: Max Howell <[email protected]>, (C) 2003
// Copyright: See COPYING file that comes with this distribution
-#include <qpainter.h>
+#include <ntqpainter.h>
-Analyzer::Block::Block( QWidget *parent )
+Analyzer::Block::Block( TQWidget *parent )
: Analyzer::Base2D( parent, 20 )
{
setMinimumWidth( 64 ); //-1 is padding, no drawing takes place there
@@ -114,7 +114,7 @@ Analyzer::Block::analyze( const Analyzer::Scope &s )
{
canvas()->fill( colorGroup().foreground().light() );
- QPainter p( canvas() );
+ TQPainter p( canvas() );
p.setPen( colorGroup().background() );
const double F = double(height()) / (log10( 256 ) * 1.1 /*<- max. amplitude*/);