From 2c9bc9b806f533df7b8f5349467d0f4be95314a4 Mon Sep 17 00:00:00 2001 From: gregory guy Date: Sat, 13 Jun 2020 16:09:24 +0200 Subject: Conversion qt3 -> tqt3 Signed-off-by: gregory guy --- src/part/part.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/part/part.cpp') diff --git a/src/part/part.cpp b/src/part/part.cpp index 20d1577..1b4b878 100644 --- a/src/part/part.cpp +++ b/src/part/part.cpp @@ -6,12 +6,12 @@ #include #include #include "part.h" -#include +#include #include "toolbar.h" #include "videoWindow.h" #include -#include +#include namespace Codeine { @@ -24,7 +24,7 @@ K_EXPORT_COMPONENT_FACTORY( libcodeine, Codeine::Factory ) namespace Codeine { - Part::Part( QWidget *parentWidget, const char *widgetName, QObject *parent, const char *name, const QStringList& ) + Part::Part( TQWidget *parentWidget, const char *widgetName, TQObject *parent, const char *name, const TQStringList& ) : ReadOnlyPart( parent, name ) , m_statusBarExtension( new KParts::StatusBarExtension( this ) ) { @@ -35,19 +35,19 @@ namespace Codeine //FIXME this will terminate the host, eg Konqueror Debug::fatal() << "Couldn't init xine!\n"; - KAction *play = new KToggleAction( i18n("Play"), "player_play", Qt::Key_Space, videoWindow(), SLOT(togglePlay()), actionCollection(), "play" ); - KAction *mute = new KToggleAction( i18n("Mute"), "player_mute", Qt::Key_M, videoWindow(), SLOT(toggleMute()), actionCollection(), "mute" ); + KAction *play = new KToggleAction( i18n("Play"), "player_play", TQt::Key_Space, videoWindow(), SLOT(togglePlay()), actionCollection(), "play" ); + KAction *mute = new KToggleAction( i18n("Mute"), "player_mute", TQt::Key_M, videoWindow(), SLOT(toggleMute()), actionCollection(), "mute" ); KToolBar *toolBar = new MouseOverToolBar( widget() ); play->plug( toolBar ); mute->plug( toolBar ); - m_slider = new QSlider( Qt::Horizontal, toolBar, "slider" ); + m_slider = new TQSlider( TQt::Horizontal, toolBar, "slider" ); m_slider->setMaxValue( 65535 ); toolBar->setStretchableWidget( m_slider ); toolBar->addSeparator(); //FIXME ugly - QObject *o = (QObject*)statusBar(); - connect( videoWindow(), SIGNAL(statusMessage( const QString& )), o, SLOT(message( const QString& )) ); - connect( videoWindow(), SIGNAL(titleChanged( const QString& )), o, SLOT(message( const QString& )) ); //FIXME + TQObject *o = (TQObject*)statusBar(); + connect( videoWindow(), SIGNAL(statusMessage( const TQString& )), o, SLOT(message( const TQString& )) ); + connect( videoWindow(), SIGNAL(titleChanged( const TQString& )), o, SLOT(message( const TQString& )) ); //FIXME } bool @@ -76,7 +76,7 @@ namespace Codeine } void - Part::timerEvent( QTimerEvent* ) + Part::timerEvent( TQTimerEvent* ) { m_slider->setValue( videoWindow()->position() ); } -- cgit v1.2.1