summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-01-01 00:37:42 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-01-01 00:37:42 +0900
commit79abb65d9f117f795af1cd9371618e5065153fd2 (patch)
tree61c47c7225152089abc7f1614b49bc52e0cdaf53
parentc6c8865f961c6df0b992ba63f66cfd6dc0be3e31 (diff)
downloadkstreamripper-79abb65d9f117f795af1cd9371618e5065153fd2.tar.gz
kstreamripper-79abb65d9f117f795af1cd9371618e5065153fd2.zip
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r--src/kstreamripper.cpp54
-rw-r--r--src/processcontroller.cpp10
-rw-r--r--src/streampropertiesdlg.cpp4
3 files changed, 34 insertions, 34 deletions
diff --git a/src/kstreamripper.cpp b/src/kstreamripper.cpp
index 44dc7a4..344a099 100644
--- a/src/kstreamripper.cpp
+++ b/src/kstreamripper.cpp
@@ -64,13 +64,13 @@ KStreamRipper::KStreamRipper( TQWidget* parent, const char* name )
// Create context menu
contextMenu = new TQPopupMenu( m_streamsListView );
- contextMenu->insertItem( i18n("&Add Stream"), this, TQT_SLOT(addStreamButtonClicked()), CTRL+Key_A );
- contextMenu->insertItem( i18n("&Edit Stream"), this, TQT_SLOT(editStreamButtonClicked()), CTRL+Key_E );
- contextMenu->insertItem( i18n("&Delete Stream"), this, TQT_SLOT(deleteStreamButtonClicked()), Key_Delete );
+ contextMenu->insertItem( i18n("&Add Stream"), this, TQ_SLOT(addStreamButtonClicked()), CTRL+Key_A );
+ contextMenu->insertItem( i18n("&Edit Stream"), this, TQ_SLOT(editStreamButtonClicked()), CTRL+Key_E );
+ contextMenu->insertItem( i18n("&Delete Stream"), this, TQ_SLOT(deleteStreamButtonClicked()), Key_Delete );
contextMenu->insertSeparator();
- contextMenu->insertItem( i18n("&Rip Stream"), this, TQT_SLOT(ripButtonClicked()), CTRL+Key_R, 2 );
- contextMenu->insertItem( i18n("&Stop Rip"), this, TQT_SLOT(stopRipButtonClicked()), CTRL+Key_S, 3 );
- contextMenu->insertItem( i18n("&Tune in"), this, TQT_SLOT(tuneInButtonClicked()), CTRL+Key_T );
+ contextMenu->insertItem( i18n("&Rip Stream"), this, TQ_SLOT(ripButtonClicked()), CTRL+Key_R, 2 );
+ contextMenu->insertItem( i18n("&Stop Rip"), this, TQ_SLOT(stopRipButtonClicked()), CTRL+Key_S, 3 );
+ contextMenu->insertItem( i18n("&Tune in"), this, TQ_SLOT(tuneInButtonClicked()), CTRL+Key_T );
//app config
TDEConfig *appConfig = TDEGlobal::config();
@@ -102,34 +102,34 @@ KStreamRipper::KStreamRipper( TQWidget* parent, const char* name )
{
pc->setDescription( descList[idx] );
}
- connect(pc, TQT_SIGNAL(stopRipSignal(ProcessController*)), this, TQT_SLOT(ripStopped(ProcessController*)));
+ connect(pc, TQ_SIGNAL(stopRipSignal(ProcessController*)), this, TQ_SLOT(ripStopped(ProcessController*)));
}
//CONNECTS
//clicks
- connect(m_addStreamButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(addStreamButtonClicked()));
- connect(m_editStreamButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(editStreamButtonClicked()));
- connect(m_deleteStreamButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(deleteStreamButtonClicked()));
- connect(m_tuneInButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(tuneInButtonClicked()));
- connect(m_ripButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(ripButtonClicked()));
- connect(m_stopRipButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(stopRipButtonClicked()));
- connect(m_browseButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(browseButtonClicked()));
- connect(m_helpButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(helpButtonClicked()));
- connect(m_aboutButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(aboutButtonClicked()));
- connect(m_quitButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(quitButtonClicked()));
- connect(m_streamsListView, TQT_SIGNAL( contextMenuRequested( TQListViewItem *, const TQPoint& , int ) ),
- this, TQT_SLOT( slotContextMenu( TQListViewItem *, const TQPoint &, int ) ) );
+ connect(m_addStreamButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(addStreamButtonClicked()));
+ connect(m_editStreamButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(editStreamButtonClicked()));
+ connect(m_deleteStreamButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(deleteStreamButtonClicked()));
+ connect(m_tuneInButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(tuneInButtonClicked()));
+ connect(m_ripButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(ripButtonClicked()));
+ connect(m_stopRipButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(stopRipButtonClicked()));
+ connect(m_browseButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(browseButtonClicked()));
+ connect(m_helpButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(helpButtonClicked()));
+ connect(m_aboutButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(aboutButtonClicked()));
+ connect(m_quitButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(quitButtonClicked()));
+ connect(m_streamsListView, TQ_SIGNAL( contextMenuRequested( TQListViewItem *, const TQPoint& , int ) ),
+ this, TQ_SLOT( slotContextMenu( TQListViewItem *, const TQPoint &, int ) ) );
//other
- connect( m_streamsListView, TQT_SIGNAL(selectionChanged()), this, TQT_SLOT( selectedNewListItem()) );
+ connect( m_streamsListView, TQ_SIGNAL(selectionChanged()), this, TQ_SLOT( selectedNewListItem()) );
// zeroconf
#if KDE_IS_VERSION(3,3,90)
- connect(&m_browser, TQT_SIGNAL(serviceAdded(DNSSD::RemoteService::Ptr)), this,
- TQT_SLOT(serviceAdded(DNSSD::RemoteService::Ptr)));
- connect(&m_browser, TQT_SIGNAL(serviceRemoved(DNSSD::RemoteService::Ptr)), this,
- TQT_SLOT(serviceRemoved(DNSSD::RemoteService::Ptr)));
+ connect(&m_browser, TQ_SIGNAL(serviceAdded(DNSSD::RemoteService::Ptr)), this,
+ TQ_SLOT(serviceAdded(DNSSD::RemoteService::Ptr)));
+ connect(&m_browser, TQ_SIGNAL(serviceRemoved(DNSSD::RemoteService::Ptr)), this,
+ TQ_SLOT(serviceRemoved(DNSSD::RemoteService::Ptr)));
m_browser.startBrowse();
#endif
}
@@ -183,7 +183,7 @@ void KStreamRipper::closeEvent( TQCloseEvent *e )
void KStreamRipper::addStreamButtonClicked()
{
StreamPropertiesDlg *dlg = new StreamPropertiesDlg(this);
- connect( dlg, TQT_SIGNAL( finished( StreamPropertiesDlg* )), this, TQT_SLOT( addStreamFinished( StreamPropertiesDlg* )) );
+ connect( dlg, TQ_SIGNAL( finished( StreamPropertiesDlg* )), this, TQ_SLOT( addStreamFinished( StreamPropertiesDlg* )) );
dlg->setCaption("Add Stream...");
dlg->show();
}
@@ -192,7 +192,7 @@ void KStreamRipper::editStreamButtonClicked()
{
ProcessListViewItem *ProcItem = (ProcessListViewItem*)m_streamsListView->currentItem();
StreamPropertiesDlg *dlg = new StreamPropertiesDlg(this);
- connect( dlg, TQT_SIGNAL( finished( StreamPropertiesDlg* )), this, TQT_SLOT( editStreamFinished( StreamPropertiesDlg* )) );
+ connect( dlg, TQ_SIGNAL( finished( StreamPropertiesDlg* )), this, TQ_SLOT( editStreamFinished( StreamPropertiesDlg* )) );
dlg->setCaption("Edit Stream");
dlg->d_nameEdit->setText(ProcItem->text(0));
dlg->d_urlEdit->setText(ProcItem->getProcessController()->getUrl());
@@ -362,7 +362,7 @@ void KStreamRipper::addStreamFinished( StreamPropertiesDlg *e )
ProcessController *pc = procItem->getProcessController();
pc->setUrl( e->d_urlEdit->text() );
pc->setDescription( e->d_descEdit->text() );
- connect(pc, TQT_SIGNAL(stopRipSignal(ProcessController*)), this, TQT_SLOT(ripStopped(ProcessController*)));
+ connect(pc, TQ_SIGNAL(stopRipSignal(ProcessController*)), this, TQ_SLOT(ripStopped(ProcessController*)));
}
void KStreamRipper::editStreamFinished( StreamPropertiesDlg *e )
diff --git a/src/processcontroller.cpp b/src/processcontroller.cpp
index da5e15c..4e470d0 100644
--- a/src/processcontroller.cpp
+++ b/src/processcontroller.cpp
@@ -26,9 +26,9 @@ ProcessController::ProcessController(ProcessListViewItem * parent)
: TQObject(parent), myParent(parent), myStatus(false), myAutomatic(false), myUnicodeEnabled(false),
myProcess(new TQProcess(this))
{
- connect (myProcess, TQT_SIGNAL( readyReadStdout() ), (ProcessController *) this, TQT_SLOT( readStdout()) );
- connect (myProcess, TQT_SIGNAL(processExited() ), (ProcessController *) this, TQT_SLOT( processExited()) );
- // connect (myProcess, TQT_SIGNAL( destroyed() ), myProcess, TQT_SLOT( kill()) );
+ connect (myProcess, TQ_SIGNAL( readyReadStdout() ), (ProcessController *) this, TQ_SLOT( readStdout()) );
+ connect (myProcess, TQ_SIGNAL(processExited() ), (ProcessController *) this, TQ_SLOT( processExited()) );
+ // connect (myProcess, TQ_SIGNAL( destroyed() ), myProcess, TQ_SLOT( kill()) );
// this should work, according to http://doc.trolltech.com/3.2/qobject.html#~TQObject but it doesn't
}
@@ -74,7 +74,7 @@ void ProcessController::readStdout()
{
myParent->setText( 1, "Complete" );
myParent->setText( 2, "" );
- //TQTimer::singleShot( 1500, myParent, TQT_SLOT( setEmptyText(3) ));
+ //TQTimer::singleShot( 1500, myParent, TQ_SLOT( setEmptyText(3) ));
}
}
@@ -120,7 +120,7 @@ void ProcessController::stopRip()
myParent->setText( 2, "" );
myProcess->tryTerminate();
- TQTimer::singleShot( 2000, myProcess, TQT_SLOT( kill() ) );
+ TQTimer::singleShot( 2000, myProcess, TQ_SLOT( kill() ) );
}
diff --git a/src/streampropertiesdlg.cpp b/src/streampropertiesdlg.cpp
index 7c77364..92b9ff6 100644
--- a/src/streampropertiesdlg.cpp
+++ b/src/streampropertiesdlg.cpp
@@ -29,8 +29,8 @@
StreamPropertiesDlg::StreamPropertiesDlg(TQWidget *parent, const char *name)
: StreamPropertiesDlgBase(parent, name, true)
{
- connect( d_okButton, TQT_SIGNAL( clicked()), this, TQT_SLOT( okButtonClicked()) );
- connect( d_cancelButton, TQT_SIGNAL( clicked()), this, TQT_SLOT( cancelButtonClicked()) );
+ connect( d_okButton, TQ_SIGNAL( clicked()), this, TQ_SLOT( okButtonClicked()) );
+ connect( d_cancelButton, TQ_SIGNAL( clicked()), this, TQ_SLOT( cancelButtonClicked()) );
}