summaryrefslogtreecommitdiffstats
path: root/kaboodle/view.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kaboodle/view.cpp')
-rw-r--r--kaboodle/view.cpp74
1 files changed, 37 insertions, 37 deletions
diff --git a/kaboodle/view.cpp b/kaboodle/view.cpp
index 3ddf3621..eba6ff20 100644
--- a/kaboodle/view.cpp
+++ b/kaboodle/view.cpp
@@ -29,33 +29,33 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <kiconloader.h>
#include <klocale.h>
#include <kvideowidget.h>
-#include <qdragobject.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qpushbutton.h>
-#include <qtoolbutton.h>
-#include <qtooltip.h>
-#include <qwidget.h>
-#include <qvbox.h>
+#include <tqdragobject.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqpushbutton.h>
+#include <tqtoolbutton.h>
+#include <tqtooltip.h>
+#include <tqwidget.h>
+#include <tqvbox.h>
#include "view.h"
#include "player.h"
namespace
{
-QButton *createButton(const QIconSet &_iconset, const QString &_tip, QObject *_receiver, const char *_slot, QWidget *_parent)
+TQButton *createButton(const TQIconSet &_iconset, const TQString &_tip, TQObject *_receiver, const char *_slot, TQWidget *_parent)
{
- QToolButton *button = new QToolButton(_parent);
+ TQToolButton *button = new TQToolButton(_parent);
button->setMaximumSize(50, 50);
button->setIconSet(_iconset);
- QToolTip::add(button, _tip);
- QObject::connect(button, SIGNAL(clicked()), _receiver, _slot);
+ TQToolTip::add(button, _tip);
+ TQObject::connect(button, TQT_SIGNAL(clicked()), _receiver, _slot);
button->show();
return button;
}
}
-Kaboodle::View::View(QWidget *parent, const char *name, Player *p)
+Kaboodle::View::View(TQWidget *parent, const char *name, Player *p)
: KMediaPlayer::View(parent, name)
, state((KMediaPlayer::Player::State)p->state())
, autoPlay(false)
@@ -64,54 +64,54 @@ Kaboodle::View::View(QWidget *parent, const char *name, Player *p)
, firstVideo(false)
, lastWidth(0)
{
- (new QHBoxLayout(this))->setAutoAdd(true);
- QVBox *box = new QVBox(this);
+ (new TQHBoxLayout(this))->setAutoAdd(true);
+ TQVBox *box = new TQVBox(this);
box->setSpacing(KDialog::spacingHint());
box->setMargin(0);
video = new KVideoWidget(player, box);
video->actionCollection()->readShortcutSettings();
setVideoWidget(video);
- connect(video, SIGNAL(adaptSize(int, int)), this, SLOT(calculateSize(int, int)));
- connect(video, SIGNAL(mouseButtonPressed(int, const QPoint&, int)), this, SLOT(slotButtonPressed(int, const QPoint &, int) ) ) ;
- connect(video, SIGNAL(mouseButtonDoubleClick(const QPoint&, int)), this, SLOT(slotDblClick(const QPoint &, int) ) ) ;
+ connect(video, TQT_SIGNAL(adaptSize(int, int)), this, TQT_SLOT(calculateSize(int, int)));
+ connect(video, TQT_SIGNAL(mouseButtonPressed(int, const TQPoint&, int)), this, TQT_SLOT(slotButtonPressed(int, const TQPoint &, int) ) ) ;
+ connect(video, TQT_SIGNAL(mouseButtonDoubleClick(const TQPoint&, int)), this, TQT_SLOT(slotDblClick(const TQPoint &, int) ) ) ;
- QWidget *sliderBox = new QWidget(box);
- sliderBox->setFocusPolicy(QWidget::ClickFocus);
+ TQWidget *sliderBox = new TQWidget(box);
+ sliderBox->setFocusPolicy(TQWidget::ClickFocus);
sliderBox->setAcceptDrops(true);
- QHBoxLayout *layout = new QHBoxLayout(sliderBox);
+ TQHBoxLayout *layout = new TQHBoxLayout(sliderBox);
layout->setSpacing(KDialog::spacingHint());
layout->setMargin(0);
layout->setAutoAdd(true);
- playButton = createButton(BarIconSet("1rightarrow"), i18n("Play"), player, SLOT(play()), sliderBox);
- pauseButton = createButton(BarIconSet("player_pause"), i18n("Pause"), player, SLOT(pause()), sliderBox);
- stopButton = createButton(BarIconSet("player_stop"), i18n("Stop"), player, SLOT(stop()), sliderBox);
+ playButton = createButton(BarIconSet("1rightarrow"), i18n("Play"), player, TQT_SLOT(play()), sliderBox);
+ pauseButton = createButton(BarIconSet("player_pause"), i18n("Pause"), player, TQT_SLOT(pause()), sliderBox);
+ stopButton = createButton(BarIconSet("player_stop"), i18n("Stop"), player, TQT_SLOT(stop()), sliderBox);
slider = new L33tSlider(0, 1000, 10, 0, L33tSlider::Horizontal, sliderBox);
- slider->setTickmarks(QSlider::NoMarks);
+ slider->setTickmarks(TQSlider::NoMarks);
slider->show();
- elapsedLabel = new QLabel(sliderBox);
- QFont labelFont = elapsedLabel->font();
+ elapsedLabel = new TQLabel(sliderBox);
+ TQFont labelFont = elapsedLabel->font();
labelFont.setPointSize(24);
labelFont.setBold(true);
- QFontMetrics labelFontMetrics(labelFont);
+ TQFontMetrics labelFontMetrics(labelFont);
elapsedLabel->setFont(labelFont);
elapsedLabel->setAlignment(AlignCenter | AlignVCenter | ExpandTabs);
elapsedLabel->setFixedHeight(labelFontMetrics.height());
elapsedLabel->setMinimumWidth(labelFontMetrics.width("00:00"));
- connect(player, SIGNAL(stateChanged(int)), this, SLOT(stateChanged(int)));
- connect(player, SIGNAL(completed()), this, SLOT(playerFinished()));
- connect(player, SIGNAL(timeout()), this, SLOT(playerTimeout()));
+ connect(player, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(stateChanged(int)));
+ connect(player, TQT_SIGNAL(completed()), this, TQT_SLOT(playerFinished()));
+ connect(player, TQT_SIGNAL(timeout()), this, TQT_SLOT(playerTimeout()));
- connect(slider, SIGNAL(userChanged(int)), this, SLOT(skipToWrapper(int)));
- connect(slider, SIGNAL(sliderMoved(int)), this, SLOT(sliderMoved(int)));
+ connect(slider, TQT_SIGNAL(userChanged(int)), this, TQT_SLOT(skipToWrapper(int)));
+ connect(slider, TQT_SIGNAL(sliderMoved(int)), this, TQT_SLOT(sliderMoved(int)));
slider->setEnabled(false);
- connect(this, SIGNAL(buttonsChanged(int)), this, SLOT(updateButtons(int)));
+ connect(this, TQT_SIGNAL(buttonsChanged(int)), this, TQT_SLOT(updateButtons(int)));
updateButtons(buttons());
updateLabel("--:--/--:--");
@@ -233,7 +233,7 @@ void Kaboodle::View::skipToWrapper(int second)
player->seek((unsigned long)(second*1000));
}
-void Kaboodle::View::updateLabel(const QString &text)
+void Kaboodle::View::updateLabel(const TQString &text)
{
if(elapsedLabel)
elapsedLabel->setText(text.left(5));
@@ -304,14 +304,14 @@ void Kaboodle::View::updateButtons(int b)
}
-void Kaboodle::View::slotButtonPressed(int /*type*/, const QPoint &, int /* state */)
+void Kaboodle::View::slotButtonPressed(int /*type*/, const TQPoint &, int /* state */)
{
if((KMediaPlayer::Player::State)player->state() == KMediaPlayer::Player::Pause )
player->play();
else player->pause();
}
-void Kaboodle::View::slotDblClick( const QPoint &, int /* state */)
+void Kaboodle::View::slotDblClick( const TQPoint &, int /* state */)
{
if ( video->isFullscreen() )
video->setWindowed();