summaryrefslogtreecommitdiffstats
path: root/kaboodle
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-01-13 12:45:22 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-01-13 12:45:22 +0900
commit286a061a4cd8a904a0b16b5be4c274a20935d5df (patch)
tree815aee99e5e1b454806a0f67869d3a075d570b61 /kaboodle
parent913b81b69d896baca0092c488b037071f1a039d5 (diff)
downloadtdemultimedia-286a061a4cd8a904a0b16b5be4c274a20935d5df.tar.gz
tdemultimedia-286a061a4cd8a904a0b16b5be4c274a20935d5df.zip
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kaboodle')
-rw-r--r--kaboodle/controls.cpp4
-rw-r--r--kaboodle/player.cpp16
-rw-r--r--kaboodle/userinterface.cpp16
-rw-r--r--kaboodle/view.cpp26
4 files changed, 31 insertions, 31 deletions
diff --git a/kaboodle/controls.cpp b/kaboodle/controls.cpp
index 5ac7d3b0..74517bd4 100644
--- a/kaboodle/controls.cpp
+++ b/kaboodle/controls.cpp
@@ -97,11 +97,11 @@ int Kaboodle::SliderAction::plug( TQWidget *w, int index )
addContainer( toolBar, id );
- connect( toolBar, TQT_SIGNAL( destroyed() ), this, TQT_SLOT( slotDestroyed() ) );
+ connect( toolBar, TQ_SIGNAL( destroyed() ), this, TQ_SLOT( slotDestroyed() ) );
toolBar->setItemAutoSized( id, true );
if (w->inherits( "TDEToolBar" ))
- connect(toolBar, TQT_SIGNAL(moved(TDEToolBar::BarPosition)), this, TQT_SLOT(toolbarMoved(TDEToolBar::BarPosition)));
+ connect(toolBar, TQ_SIGNAL(moved(TDEToolBar::BarPosition)), this, TQ_SLOT(toolbarMoved(TDEToolBar::BarPosition)));
emit plugged();
diff --git a/kaboodle/player.cpp b/kaboodle/player.cpp
index 4ec345c7..776ff320 100644
--- a/kaboodle/player.cpp
+++ b/kaboodle/player.cpp
@@ -41,7 +41,7 @@ Kaboodle::Player::Player(TQObject *parent, const char *name)
{
setInstance(KaboodleFactory::instance());
- connect(&ticker, TQT_SIGNAL(timeout()), TQT_SLOT(tickerTimeout()));
+ connect(&ticker, TQ_SIGNAL(timeout()), TQ_SLOT(tickerTimeout()));
ticker.start(500);
setState(Empty);
}
@@ -56,18 +56,18 @@ Kaboodle::Player::Player(TQWidget *widgetParent, const char *widgetName,
{
setInstance(KaboodleFactory::instance());
- connect(&ticker, TQT_SIGNAL(timeout()), TQT_SLOT(tickerTimeout()));
+ connect(&ticker, TQ_SIGNAL(timeout()), TQ_SLOT(tickerTimeout()));
ticker.start(500);
setState(Empty);
- playAction = new TDEAction(i18n("&Play"), 0, this, TQT_SLOT(play()), actionCollection(), "play");
- pauseAction = new TDEAction(i18n("&Pause"), 0, this, TQT_SLOT(pause()), actionCollection(), "pause");
- stopAction = new TDEAction(i18n("&Stop"), 0, this, TQT_SLOT(stop()), actionCollection(), "stop");
- loopAction = new TDEToggleAction(i18n("&Looping"), 0, this, TQT_SLOT(loop()), actionCollection(), "loop");
+ playAction = new TDEAction(i18n("&Play"), 0, this, TQ_SLOT(play()), actionCollection(), "play");
+ pauseAction = new TDEAction(i18n("&Pause"), 0, this, TQ_SLOT(pause()), actionCollection(), "pause");
+ stopAction = new TDEAction(i18n("&Stop"), 0, this, TQ_SLOT(stop()), actionCollection(), "stop");
+ loopAction = new TDEToggleAction(i18n("&Looping"), 0, this, TQ_SLOT(loop()), actionCollection(), "loop");
stopAction->setEnabled(false);
playAction->setEnabled(false);
pauseAction->setEnabled(false);
- connect(this, TQT_SIGNAL(loopingChanged(bool)), loopAction, TQT_SLOT(setChecked(bool)));
+ connect(this, TQ_SIGNAL(loopingChanged(bool)), loopAction, TQ_SLOT(setChecked(bool)));
KParts::Part::setWidget(widget);
setXMLFile("kaboodlepartui.rc");
@@ -108,7 +108,7 @@ bool Kaboodle::Player::openURL(const KURL &f)
if (previousLoad)
{
- TQTimer::singleShot( 0, this, SLOT(play()) );
+ TQTimer::singleShot( 0, this, TQ_SLOT(play()) );
return true;
}
diff --git a/kaboodle/userinterface.cpp b/kaboodle/userinterface.cpp
index 0a334d08..45edc4a4 100644
--- a/kaboodle/userinterface.cpp
+++ b/kaboodle/userinterface.cpp
@@ -54,13 +54,13 @@ Kaboodle::UserInterface::UserInterface(TQWidget *parent, const KURL &initialFile
setAcceptDrops(true);
setStandardToolBarMenuEnabled(true);
- KStdAction::open(this, TQT_SLOT(fileOpen()), actionCollection());
- KStdAction::quit(kapp, TQT_SLOT(quit()), actionCollection());
- KStdAction::preferences(this, TQT_SLOT(playerPreferences()), actionCollection());
- KStdAction::keyBindings( this, TQT_SLOT( slotConfigureKeys() ), actionCollection() );
+ KStdAction::open(this, TQ_SLOT(fileOpen()), actionCollection());
+ KStdAction::quit(kapp, TQ_SLOT(quit()), actionCollection());
+ KStdAction::preferences(this, TQ_SLOT(playerPreferences()), actionCollection());
+ KStdAction::keyBindings( this, TQ_SLOT( slotConfigureKeys() ), actionCollection() );
- menubarAction = KStdAction::showMenubar(this, TQT_SLOT(showMenubar()), actionCollection());
- propertiesAction = new TDEAction(i18n("Properties"), 0, this, TQT_SLOT(properties()), actionCollection(), "properties");
+ menubarAction = KStdAction::showMenubar(this, TQ_SLOT(showMenubar()), actionCollection());
+ propertiesAction = new TDEAction(i18n("Properties"), 0, this, TQ_SLOT(properties()), actionCollection(), "properties");
propertiesAction->setEnabled(false);
part = new Player(this, "KaboodlePlayer", this, "KaboodleView");
@@ -72,8 +72,8 @@ Kaboodle::UserInterface::UserInterface(TQWidget *parent, const KURL &initialFile
statusBar()->show();
- connect(part, TQT_SIGNAL(setWindowCaption(const TQString &)), this, TQT_SLOT(updateTitle(const TQString &)));
- connect(part->view(), TQT_SIGNAL(adaptSize(int, int)), this, TQT_SLOT(adaptSize(int, int)));
+ connect(part, TQ_SIGNAL(setWindowCaption(const TQString &)), this, TQ_SLOT(updateTitle(const TQString &)));
+ connect(part->view(), TQ_SIGNAL(adaptSize(int, int)), this, TQ_SLOT(adaptSize(int, int)));
setIcon(SmallIcon("kaboodle"));
diff --git a/kaboodle/view.cpp b/kaboodle/view.cpp
index ef9e1fcb..3a16135c 100644
--- a/kaboodle/view.cpp
+++ b/kaboodle/view.cpp
@@ -49,7 +49,7 @@ TQButton *createButton(const TQIconSet &_iconset, const TQString &_tip, TQObject
button->setMaximumSize(50, 50);
button->setIconSet(_iconset);
TQToolTip::add(button, _tip);
- TQObject::connect(button, TQT_SIGNAL(clicked()), _receiver, _slot);
+ TQObject::connect(button, TQ_SIGNAL(clicked()), _receiver, _slot);
button->show();
return button;
}
@@ -72,9 +72,9 @@ Kaboodle::View::View(TQWidget *parent, const char *name, Player *p)
video = new KVideoWidget(player, box);
video->actionCollection()->readShortcutSettings();
setVideoWidget(video);
- 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) ) ) ;
+ connect(video, TQ_SIGNAL(adaptSize(int, int)), this, TQ_SLOT(calculateSize(int, int)));
+ connect(video, TQ_SIGNAL(mouseButtonPressed(int, const TQPoint&, int)), this, TQ_SLOT(slotButtonPressed(int, const TQPoint &, int) ) ) ;
+ connect(video, TQ_SIGNAL(mouseButtonDoubleClick(const TQPoint&, int)), this, TQ_SLOT(slotDblClick(const TQPoint &, int) ) ) ;
TQWidget *sliderBox = new TQWidget(box);
sliderBox->setFocusPolicy(TQWidget::ClickFocus);
@@ -85,9 +85,9 @@ Kaboodle::View::View(TQWidget *parent, const char *name, Player *p)
layout->setMargin(0);
layout->setAutoAdd(true);
- playButton = createButton(BarIconSet("1rightarrow"), i18n("Play"), player, TQT_SLOT(play()), sliderBox);
- pauseButton = createButton(BarIconSet("media-playback-pause"), i18n("Pause"), player, TQT_SLOT(pause()), sliderBox);
- stopButton = createButton(BarIconSet("media-playback-stop"), i18n("Stop"), player, TQT_SLOT(stop()), sliderBox);
+ playButton = createButton(BarIconSet("1rightarrow"), i18n("Play"), player, TQ_SLOT(play()), sliderBox);
+ pauseButton = createButton(BarIconSet("media-playback-pause"), i18n("Pause"), player, TQ_SLOT(pause()), sliderBox);
+ stopButton = createButton(BarIconSet("media-playback-stop"), i18n("Stop"), player, TQ_SLOT(stop()), sliderBox);
slider = new L33tSlider(0, 1000, 10, 0, TQt::Horizontal, sliderBox);
slider->setTickmarks(TQSlider::NoMarks);
@@ -103,15 +103,15 @@ Kaboodle::View::View(TQWidget *parent, const char *name, Player *p)
elapsedLabel->setFixedHeight(labelFontMetrics.height());
elapsedLabel->setMinimumWidth(labelFontMetrics.width("00:00"));
- 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(player, TQ_SIGNAL(stateChanged(int)), this, TQ_SLOT(stateChanged(int)));
+ connect(player, TQ_SIGNAL(completed()), this, TQ_SLOT(playerFinished()));
+ connect(player, TQ_SIGNAL(timeout()), this, TQ_SLOT(playerTimeout()));
- connect(slider, TQT_SIGNAL(userChanged(int)), this, TQT_SLOT(skipToWrapper(int)));
- connect(slider, TQT_SIGNAL(sliderMoved(int)), this, TQT_SLOT(sliderMoved(int)));
+ connect(slider, TQ_SIGNAL(userChanged(int)), this, TQ_SLOT(skipToWrapper(int)));
+ connect(slider, TQ_SIGNAL(sliderMoved(int)), this, TQ_SLOT(sliderMoved(int)));
slider->setEnabled(false);
- connect(this, TQT_SIGNAL(buttonsChanged(int)), this, TQT_SLOT(updateButtons(int)));
+ connect(this, TQ_SIGNAL(buttonsChanged(int)), this, TQ_SLOT(updateButtons(int)));
updateButtons(buttons());
updateLabel("--:--/--:--");