summaryrefslogtreecommitdiffstats
path: root/src/app/analyzer.cpp
diff options
context:
space:
mode:
authorgregory guy <gregory-tde@laposte.net>2020-06-13 16:09:24 +0200
committergregory guy <gregory-tde@laposte.net>2020-06-13 16:09:24 +0200
commit2c9bc9b806f533df7b8f5349467d0f4be95314a4 (patch)
tree15f82ae94dd430374f3d939958912c4fb2855326 /src/app/analyzer.cpp
parent38eaf7209a322a622e1b898eaa5477568ca9c6b6 (diff)
downloadcodeine-2c9bc9b806f533df7b8f5349467d0f4be95314a4.tar.gz
codeine-2c9bc9b806f533df7b8f5349467d0f4be95314a4.zip
Conversion qt3 -> tqt3
Signed-off-by: gregory guy <gregory-tde@laposte.net>
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 <max.howell@methylblue.com>, (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*/);