summaryrefslogtreecommitdiffstats
path: root/noatun/library/video.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:43:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:43:15 +0000
commite654398e46e37abf457b2b1122ab898d2c51c49f (patch)
treed39ee6440f3c3663c3ead84a2d4cc2d034667e96 /noatun/library/video.cpp
parente4f29b18e19394b9352f52a6c0d0d0e3932cf511 (diff)
downloadtdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.tar.gz
tdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1157644 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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)
{