summaryrefslogtreecommitdiffstats
path: root/noatun/library/video.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'noatun/library/video.cpp')
-rw-r--r--noatun/library/video.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/noatun/library/video.cpp b/noatun/library/video.cpp
index c259d4ba..94646315 100644
--- a/noatun/library/video.cpp
+++ b/noatun/library/video.cpp
@@ -8,14 +8,14 @@
#include <noatun/player.h>
#include <noatun/engine.h>
-#include <qpopupmenu.h>
+#include <tqpopupmenu.h>
#include <kaction.h>
#include <klocale.h>
#include "globalvideo.h"
// sorry :)
-QPtrList<VideoFrame> VideoFrame::frames;
+TQPtrList<VideoFrame> VideoFrame::frames;
VideoFrame *VideoFrame::whose=0;
@@ -24,21 +24,21 @@ struct VideoFrame::Private
};
-VideoFrame::VideoFrame(KXMLGUIClient *clientParent, QWidget *parent, const char*name, WFlags f)
+VideoFrame::VideoFrame(KXMLGUIClient *clientParent, TQWidget *parent, const char*name, WFlags f)
: KVideoWidget(clientParent, parent, name, f)
{
d = new Private;
- connect(napp->player(), SIGNAL(newSong()), SLOT(changed()));
- connect(napp->player(), SIGNAL(stopped()), SLOT(stopped()));
+ connect(napp->player(), TQT_SIGNAL(newSong()), TQT_SLOT(changed()));
+ connect(napp->player(), TQT_SIGNAL(stopped()), TQT_SLOT(stopped()));
frames.append(this);
}
-VideoFrame::VideoFrame(QWidget *parent, const char *name, WFlags f)
+VideoFrame::VideoFrame(TQWidget *parent, const char *name, WFlags f)
: KVideoWidget(parent, name, f)
{
d = new Private;
- connect(napp->player(), SIGNAL(newSong()), SLOT(changed()));
- connect(napp->player(), SIGNAL(stopped()), SLOT(stopped()));
+ connect(napp->player(), TQT_SIGNAL(newSong()), TQT_SLOT(changed()));
+ connect(napp->player(), TQT_SIGNAL(stopped()), TQT_SLOT(stopped()));
frames.append(this);
}
@@ -62,9 +62,9 @@ VideoFrame *VideoFrame::playing()
return whose;
}
-QPopupMenu *VideoFrame::popupMenu(QWidget *parent)
+TQPopupMenu *VideoFrame::popupMenu(TQWidget *parent)
{
- QPopupMenu *view = new QPopupMenu(parent);
+ TQPopupMenu *view = new TQPopupMenu(parent);
action( "half_size" )->plug( view );
action( "normal_size" )->plug( view );
action( "double_size" )->plug( view );
@@ -110,14 +110,14 @@ void VideoFrame::stopped()
}
}
-#include <qlayout.h>
+#include <tqlayout.h>
GlobalVideo::GlobalVideo()
- : QWidget( 0, 0, WType_TopLevel | WStyle_Customize | WStyle_DialogBorder | WStyle_Title )
+ : TQWidget( 0, 0, WType_TopLevel | WStyle_Customize | WStyle_DialogBorder | WStyle_Title )
{
setCaption(i18n("Video - Noatun"));
- (new QVBoxLayout(this))->setAutoAdd(true);
+ (new TQVBoxLayout(this))->setAutoAdd(true);
video = new VideoFrame(this);
menu = video->popupMenu(this);
@@ -126,9 +126,9 @@ GlobalVideo::GlobalVideo()
// video->setMinimumSize(101,35);
video->setMinimumSize(128,96);
- connect(video, SIGNAL(acquired()), SLOT(appear()));
- connect(video, SIGNAL(lost()), SLOT(hide()));
- connect(video, SIGNAL(adaptSize(int,int)), this, SLOT(slotAdaptSize(int,int)));
+ connect(video, TQT_SIGNAL(acquired()), TQT_SLOT(appear()));
+ connect(video, TQT_SIGNAL(lost()), TQT_SLOT(hide()));
+ connect(video, TQT_SIGNAL(adaptSize(int,int)), this, TQT_SLOT(slotAdaptSize(int,int)));
video->setNormalSize();
video->give();
@@ -141,15 +141,15 @@ void GlobalVideo::slotAdaptSize(int w, int h)
void GlobalVideo::appear()
{
- QWidget::show();
+ TQWidget::show();
}
void GlobalVideo::hide()
{
- QWidget::hide();
+ TQWidget::hide();
}
-void GlobalVideo::mouseReleaseEvent(QMouseEvent *e)
+void GlobalVideo::mouseReleaseEvent(TQMouseEvent *e)
{
if (e->button() == RightButton)
{