Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/18/head
Michele Calgaro 11 months ago
parent 09d3e49e01
commit 27fd576acb
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -53,12 +53,12 @@ FileSelectDlg::FileSelectDlg(GroupManager* gm, bool* user, bool* start, TQWidget
: FileSelectDlgBase(parent, name, modal, fl), m_gman(gm), m_user(user), m_start(start) : FileSelectDlgBase(parent, name, modal, fl), m_gman(gm), m_user(user), m_start(start)
{ {
root = 0; root = 0;
connect(m_select_all, TQT_SIGNAL(clicked()), this, TQT_SLOT(selectAll())); connect(m_select_all, TQ_SIGNAL(clicked()), this, TQ_SLOT(selectAll()));
connect(m_select_none, TQT_SIGNAL(clicked()), this, TQT_SLOT(selectNone())); connect(m_select_none, TQ_SIGNAL(clicked()), this, TQ_SLOT(selectNone()));
connect(m_invert_selection, TQT_SIGNAL(clicked()), this, TQT_SLOT(invertSelection())); connect(m_invert_selection, TQ_SIGNAL(clicked()), this, TQ_SLOT(invertSelection()));
connect(m_ok, TQT_SIGNAL(clicked()), this, TQT_SLOT(accept())); connect(m_ok, TQ_SIGNAL(clicked()), this, TQ_SLOT(accept()));
connect(m_cancel, TQT_SIGNAL(clicked()), this, TQT_SLOT(reject())); connect(m_cancel, TQ_SIGNAL(clicked()), this, TQ_SLOT(reject()));
connect(m_downloadLocation, TQT_SIGNAL(textChanged (const TQString &)), this, TQT_SLOT(updateSizeLabels())); connect(m_downloadLocation, TQ_SIGNAL(textChanged (const TQString &)), this, TQ_SLOT(updateSizeLabels()));
m_downloadLocation->setMode(KFile::Directory); m_downloadLocation->setMode(KFile::Directory);
} }

@ -46,7 +46,7 @@ FilterBar::FilterBar(TQWidget *parent, const char *name) :
layout->addSpacing(gap); layout->addSpacing(gap);
m_close = new TDEToolBarButton("window-close",0,this); m_close = new TDEToolBarButton("window-close",0,this);
connect(m_close,TQT_SIGNAL(clicked()),this,TQT_SLOT(hide())); connect(m_close,TQ_SIGNAL(clicked()),this,TQ_SLOT(hide()));
layout->addWidget(m_close); layout->addWidget(m_close);
m_filter = new TQLabel(i18n("Find:"), this); m_filter = new TQLabel(i18n("Find:"), this);
@ -67,9 +67,9 @@ FilterBar::FilterBar(TQWidget *parent, const char *name) :
layout->addWidget(m_case_sensitive); layout->addWidget(m_case_sensitive);
layout->addItem(new TQSpacerItem(10,10,TQSizePolicy::Expanding)); layout->addItem(new TQSpacerItem(10,10,TQSizePolicy::Expanding));
connect(m_filterInput, TQT_SIGNAL(textChanged(const TQString&)), connect(m_filterInput, TQ_SIGNAL(textChanged(const TQString&)),
this, TQT_SLOT(slotChangeFilter(const TQString&))); this, TQ_SLOT(slotChangeFilter(const TQString&)));
connect(m_clear, TQT_SIGNAL(clicked()), m_filterInput, TQT_SLOT(clear())); connect(m_clear, TQ_SIGNAL(clicked()), m_filterInput, TQ_SLOT(clear()));
} }
FilterBar::~FilterBar() FilterBar::~FilterBar()

@ -80,11 +80,11 @@ namespace kt
current = gman->allGroup(); current = gman->allGroup();
connect(this,TQT_SIGNAL(clicked(TQListViewItem*)),this,TQT_SLOT(onExecuted( TQListViewItem* ))); connect(this,TQ_SIGNAL(clicked(TQListViewItem*)),this,TQ_SLOT(onExecuted( TQListViewItem* )));
connect(this,TQT_SIGNAL(contextMenu(TDEListView*,TQListViewItem*,const TQPoint & )), connect(this,TQ_SIGNAL(contextMenu(TDEListView*,TQListViewItem*,const TQPoint & )),
this,TQT_SLOT(showContextMenu( TDEListView*, TQListViewItem*, const TQPoint& ))); this,TQ_SLOT(showContextMenu( TDEListView*, TQListViewItem*, const TQPoint& )));
connect(this,TQT_SIGNAL(dropped(TQDropEvent*,TQListViewItem*)), connect(this,TQ_SIGNAL(dropped(TQDropEvent*,TQListViewItem*)),
this,TQT_SLOT(onDropped( TQDropEvent*, TQListViewItem* ))); this,TQ_SLOT(onDropped( TQDropEvent*, TQListViewItem* )));
current_item = 0; current_item = 0;
menu = 0; menu = 0;
@ -136,16 +136,16 @@ namespace kt
menu = new TDEPopupMenu(this); menu = new TDEPopupMenu(this);
new_group = new TDEAction(i18n("New Group"),"document-new",0, new_group = new TDEAction(i18n("New Group"),"document-new",0,
this, TQT_SLOT(addGroup()),col, "New Group"); this, TQ_SLOT(addGroup()),col, "New Group");
edit_group = new TDEAction(i18n("Edit Name"),"edit",0, edit_group = new TDEAction(i18n("Edit Name"),"edit",0,
this, TQT_SLOT(editGroupName()),col,"Edit Group Name"); this, TQ_SLOT(editGroupName()),col,"Edit Group Name");
remove_group = new TDEAction(i18n("Remove Group"),"remove",0, remove_group = new TDEAction(i18n("Remove Group"),"remove",0,
this, TQT_SLOT(removeGroup()),col,"Remove Group"); this, TQ_SLOT(removeGroup()),col,"Remove Group");
open_in_new_tab = new TDEAction(i18n("Open Tab"),"document-open",0, open_in_new_tab = new TDEAction(i18n("Open Tab"),"document-open",0,
this ,TQT_SLOT(openView()),col,"Open Tab"); this ,TQ_SLOT(openView()),col,"Open Tab");
open_in_new_tab->plug(menu); open_in_new_tab->plug(menu);
menu->insertSeparator(); menu->insertSeparator();

@ -117,11 +117,11 @@ KTorrent::KTorrent()
{ {
setHidden(true); setHidden(true);
//setToolviewStyle(KMdi::TextAndIcon); //setToolviewStyle(KMdi::TextAndIcon);
connect(this,TQT_SIGNAL(widgetChanged(TQWidget*)),this,TQT_SLOT(currentTabChanged(TQWidget*))); connect(this,TQ_SIGNAL(widgetChanged(TQWidget*)),this,TQ_SLOT(currentTabChanged(TQWidget*)));
m_view_man = new ViewManager(this); m_view_man = new ViewManager(this);
m_group_view = new kt::GroupView(m_view_man,actionCollection()); m_group_view = new kt::GroupView(m_view_man,actionCollection());
connect(m_group_view,TQT_SIGNAL(openNewTab(kt::Group*)),this,TQT_SLOT(openView(kt::Group*))); connect(m_group_view,TQ_SIGNAL(openNewTab(kt::Group*)),this,TQ_SLOT(openView(kt::Group*)));
m_pref = new KTorrentPreferences(*this); m_pref = new KTorrentPreferences(*this);
@ -137,26 +137,26 @@ KTorrent::KTorrent()
TQToolButton* tb = new TQToolButton(m_activeTabWidget); TQToolButton* tb = new TQToolButton(m_activeTabWidget);
tb->setIconSet(SmallIcon("tab_new")); tb->setIconSet(SmallIcon("tab_new"));
tb->adjustSize(); tb->adjustSize();
connect(tb,TQT_SIGNAL(clicked()),this,TQT_SLOT(openDefaultView())); connect(tb,TQ_SIGNAL(clicked()),this,TQ_SLOT(openDefaultView()));
m_activeTabWidget->setCornerWidget(tb, TopLeft); m_activeTabWidget->setCornerWidget(tb, TopLeft);
connect(m_group_view,TQT_SIGNAL(currentGroupChanged( kt::Group* )), connect(m_group_view,TQ_SIGNAL(currentGroupChanged( kt::Group* )),
this,TQT_SLOT(groupChanged(kt::Group*))); this,TQ_SLOT(groupChanged(kt::Group*)));
connect(m_group_view,TQT_SIGNAL(groupRenamed(kt::Group*)), connect(m_group_view,TQ_SIGNAL(groupRenamed(kt::Group*)),
this,TQT_SLOT(groupRenamed(kt::Group*))); this,TQ_SLOT(groupRenamed(kt::Group*)));
connect(m_group_view,TQT_SIGNAL(groupRemoved(kt::Group*)), connect(m_group_view,TQ_SIGNAL(groupRemoved(kt::Group*)),
this,TQT_SLOT(groupRemoved(kt::Group*))); this,TQ_SLOT(groupRemoved(kt::Group*)));
connect(m_core,TQT_SIGNAL(torrentAdded(kt::TorrentInterface* )), connect(m_core,TQ_SIGNAL(torrentAdded(kt::TorrentInterface* )),
m_view_man,TQT_SLOT(addTorrent(kt::TorrentInterface* ))); m_view_man,TQ_SLOT(addTorrent(kt::TorrentInterface* )));
connect(m_core,TQT_SIGNAL(torrentRemoved(kt::TorrentInterface* )), connect(m_core,TQ_SIGNAL(torrentRemoved(kt::TorrentInterface* )),
m_view_man,TQT_SLOT(removeTorrent(kt::TorrentInterface* ))); m_view_man,TQ_SLOT(removeTorrent(kt::TorrentInterface* )));
connect(m_core, TQT_SIGNAL(torrentRemoved( kt::TorrentInterface* )), connect(m_core, TQ_SIGNAL(torrentRemoved( kt::TorrentInterface* )),
m_group_view, TQT_SLOT(onTorrentRemoved( kt::TorrentInterface* ))); m_group_view, TQ_SLOT(onTorrentRemoved( kt::TorrentInterface* )));
m_statusInfo = new KSqueezedTextLabel(this); m_statusInfo = new KSqueezedTextLabel(this);
m_statusSpeed = new TQLabel(this); m_statusSpeed = new TQLabel(this);
@ -191,7 +191,7 @@ KTorrent::KTorrent()
m_core->loadTorrents(); m_core->loadTorrents();
m_core->loadPlugins(); m_core->loadPlugins();
connect(&m_gui_update_timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(updatedStats())); connect(&m_gui_update_timer, TQ_SIGNAL(timeout()), this, TQ_SLOT(updatedStats()));
//Apply GUI update interval //Apply GUI update interval
int val = 500; int val = 500;
switch(Settings::guiUpdateInterval()) switch(Settings::guiUpdateInterval())
@ -243,7 +243,7 @@ KTorrent::KTorrent()
m_statusbarAction->setChecked(!statusbar_hidden); m_statusbarAction->setChecked(!statusbar_hidden);
MaximizeLimits(); MaximizeLimits();
connect(&m_status_msg_expire,TQT_SIGNAL(timeout()),this,TQT_SLOT(statusBarMsgExpired())); connect(&m_status_msg_expire,TQ_SIGNAL(timeout()),this,TQ_SLOT(statusBarMsgExpired()));
m_view_man->updateActions(); m_view_man->updateActions();
} }
@ -270,36 +270,36 @@ void KTorrent::openView(kt::Group* g)
addTabPage(v,g->groupIcon(),v->caption(),m_view_man); addTabPage(v,g->groupIcon(),v->caption(),m_view_man);
connect(v,TQT_SIGNAL(currentChanged(kt::TorrentInterface* )), connect(v,TQ_SIGNAL(currentChanged(kt::TorrentInterface* )),
this,TQT_SLOT(currentTorrentChanged(kt::TorrentInterface* ))); this,TQ_SLOT(currentTorrentChanged(kt::TorrentInterface* )));
connect(v,TQT_SIGNAL(wantToRemove(kt::TorrentInterface*,bool )), connect(v,TQ_SIGNAL(wantToRemove(kt::TorrentInterface*,bool )),
m_core,TQT_SLOT(remove(kt::TorrentInterface*,bool ))); m_core,TQ_SLOT(remove(kt::TorrentInterface*,bool )));
connect(v->listView(),TQT_SIGNAL(dropped(TQDropEvent*,TQListViewItem*)), connect(v->listView(),TQ_SIGNAL(dropped(TQDropEvent*,TQListViewItem*)),
this,TQT_SLOT(urlDropped(TQDropEvent*,TQListViewItem*))); this,TQ_SLOT(urlDropped(TQDropEvent*,TQListViewItem*)));
connect(v,TQT_SIGNAL(wantToStart( kt::TorrentInterface* )), connect(v,TQ_SIGNAL(wantToStart( kt::TorrentInterface* )),
m_core,TQT_SLOT(start( kt::TorrentInterface* ))); m_core,TQ_SLOT(start( kt::TorrentInterface* )));
connect(v,TQT_SIGNAL(wantToStop( kt::TorrentInterface*, bool )), connect(v,TQ_SIGNAL(wantToStop( kt::TorrentInterface*, bool )),
m_core,TQT_SLOT(stop( kt::TorrentInterface*, bool ))); m_core,TQ_SLOT(stop( kt::TorrentInterface*, bool )));
connect(v,TQT_SIGNAL(needsDataCheck( kt::TorrentInterface* )), connect(v,TQ_SIGNAL(needsDataCheck( kt::TorrentInterface* )),
m_core,TQT_SLOT(doDataCheck( kt::TorrentInterface* ))); m_core,TQ_SLOT(doDataCheck( kt::TorrentInterface* )));
connect(v,TQT_SIGNAL(updateActions( int )), connect(v,TQ_SIGNAL(updateActions( int )),
this,TQT_SLOT(onUpdateActions( int ))); this,TQ_SLOT(onUpdateActions( int )));
//connect Core queue() with queue() from KTView. //connect Core queue() with queue() from KTView.
connect(v, TQT_SIGNAL(queue( kt::TorrentInterface* )), connect(v, TQ_SIGNAL(queue( kt::TorrentInterface* )),
m_core, TQT_SLOT(queue( kt::TorrentInterface* ))); m_core, TQ_SLOT(queue( kt::TorrentInterface* )));
connect(v,TQT_SIGNAL(updateGroupsSubMenu(TDEPopupMenu*)), connect(v,TQ_SIGNAL(updateGroupsSubMenu(TDEPopupMenu*)),
m_group_view,TQT_SLOT(updateGroupsSubMenu(TDEPopupMenu*))); m_group_view,TQ_SLOT(updateGroupsSubMenu(TDEPopupMenu*)));
connect(v,TQT_SIGNAL(groupsSubMenuItemActivated(KTorrentView*, const TQString&)), connect(v,TQ_SIGNAL(groupsSubMenuItemActivated(KTorrentView*, const TQString&)),
m_group_view,TQT_SLOT(onGroupsSubMenuItemActivated(KTorrentView*, const TQString&))); m_group_view,TQ_SLOT(onGroupsSubMenuItemActivated(KTorrentView*, const TQString&)));
if (m_core) if (m_core)
{ {
@ -497,68 +497,68 @@ void KTorrent::currentTorrentChanged(kt::TorrentInterface* tc)
void KTorrent::setupActions() void KTorrent::setupActions()
{ {
KStdAction::openNew(this,TQT_SLOT(fileNew()),actionCollection()); KStdAction::openNew(this,TQ_SLOT(fileNew()),actionCollection());
KStdAction::open(this, TQT_SLOT(fileOpen()), actionCollection()); KStdAction::open(this, TQ_SLOT(fileOpen()), actionCollection());
KStdAction::quit(kapp, TQT_SLOT(quit()), actionCollection()); KStdAction::quit(kapp, TQ_SLOT(quit()), actionCollection());
KStdAction::paste(kapp,TQT_SLOT(paste()),actionCollection()); KStdAction::paste(kapp,TQ_SLOT(paste()),actionCollection());
m_statusbarAction = KStdAction::showStatusbar(this, TQT_SLOT(optionsShowStatusbar()), actionCollection()); m_statusbarAction = KStdAction::showStatusbar(this, TQ_SLOT(optionsShowStatusbar()), actionCollection());
m_menubarAction = KStdAction::showMenubar(this, TQT_SLOT(optionsShowMenubar()), actionCollection()); m_menubarAction = KStdAction::showMenubar(this, TQ_SLOT(optionsShowMenubar()), actionCollection());
KStdAction::keyBindings(this, TQT_SLOT(optionsConfigureKeys()), actionCollection()); KStdAction::keyBindings(this, TQ_SLOT(optionsConfigureKeys()), actionCollection());
KStdAction::configureToolbars(this, TQT_SLOT(optionsConfigureToolbars()), actionCollection()); KStdAction::configureToolbars(this, TQ_SLOT(optionsConfigureToolbars()), actionCollection());
TDEAction* pref = KStdAction::preferences(this, TQT_SLOT(optionsPreferences()), actionCollection()); TDEAction* pref = KStdAction::preferences(this, TQ_SLOT(optionsPreferences()), actionCollection());
m_start = new TDEAction( m_start = new TDEAction(
i18n("to start", "Start"), "ktstart",0,this, TQT_SLOT(startDownload()), i18n("to start", "Start"), "ktstart",0,this, TQ_SLOT(startDownload()),
actionCollection(), "Start"); actionCollection(), "Start");
m_stop = new TDEAction( m_stop = new TDEAction(
i18n("to stop", "Stop"), "ktstop",0,this, TQT_SLOT(stopDownload()), i18n("to stop", "Stop"), "ktstop",0,this, TQ_SLOT(stopDownload()),
actionCollection(), "Stop"); actionCollection(), "Stop");
m_remove = new TDEAction( m_remove = new TDEAction(
i18n("Remove"), "ktremove",0,this, TQT_SLOT(removeDownload()), i18n("Remove"), "ktremove",0,this, TQ_SLOT(removeDownload()),
actionCollection(), "Remove"); actionCollection(), "Remove");
m_startall = new TDEAction( m_startall = new TDEAction(
i18n("to start all", "Start All"), "ktstart_all",0,this, TQT_SLOT(startAllDownloadsCurrentView()), i18n("to start all", "Start All"), "ktstart_all",0,this, TQ_SLOT(startAllDownloadsCurrentView()),
actionCollection(), "Start all"); actionCollection(), "Start all");
m_startall_systray = new TDEAction(i18n("to start all", "Start All"), "ktstart_all",0,this, TQT_SLOT(startAllDownloads()),actionCollection()); m_startall_systray = new TDEAction(i18n("to start all", "Start All"), "ktstart_all",0,this, TQ_SLOT(startAllDownloads()),actionCollection());
m_stopall = new TDEAction( m_stopall = new TDEAction(
i18n("to stop all", "Stop All"), "ktstop_all",0,this, TQT_SLOT(stopAllDownloadsCurrentView()), i18n("to stop all", "Stop All"), "ktstop_all",0,this, TQ_SLOT(stopAllDownloadsCurrentView()),
actionCollection(), "Stop all"); actionCollection(), "Stop all");
m_stopall_systray = new TDEAction(i18n("to stop all", "Stop All"), "ktstop_all",0,this, TQT_SLOT(stopAllDownloads()),actionCollection()); m_stopall_systray = new TDEAction(i18n("to stop all", "Stop All"), "ktstop_all",0,this, TQ_SLOT(stopAllDownloads()),actionCollection());
m_pasteurl = new TDEAction( m_pasteurl = new TDEAction(
i18n("to paste torrent URL", "Paste Torrent URL..."), "ktstart",0,this, TQT_SLOT(torrentPaste()), i18n("to paste torrent URL", "Paste Torrent URL..."), "ktstart",0,this, TQ_SLOT(torrentPaste()),
actionCollection(), "paste_url"); actionCollection(), "paste_url");
m_queuemgr = new TDEAction( m_queuemgr = new TDEAction(
i18n("to open Queue Manager", "Open Queue Manager..."), i18n("to open Queue Manager", "Open Queue Manager..."),
"ktqueuemanager", 0, this, TQT_SLOT(queueManagerShow()), "ktqueuemanager", 0, this, TQ_SLOT(queueManagerShow()),
actionCollection(), "Queue manager"); actionCollection(), "Queue manager");
m_queueaction = new TDEAction( m_queueaction = new TDEAction(
i18n("Enqueue/Dequeue"), i18n("Enqueue/Dequeue"),
"player_playlist", 0, m_view_man, TQT_SLOT(queueAction()), "player_playlist", 0, m_view_man, TQ_SLOT(queueAction()),
actionCollection(), "queue_action"); actionCollection(), "queue_action");
m_ipfilter = new TDEAction( m_ipfilter = new TDEAction(
i18n("IPFilter"), i18n("IPFilter"),
"filter", 0, this, TQT_SLOT(showIPFilter()), "filter", 0, this, TQ_SLOT(showIPFilter()),
actionCollection(), "ipfilter_action"); actionCollection(), "ipfilter_action");
m_datacheck = new TDEAction( m_datacheck = new TDEAction(
i18n("Check Data Integrity"), i18n("Check Data Integrity"),
TQString(),0,m_view_man,TQT_SLOT(checkDataIntegrity()),actionCollection(),"check_data"); TQString(),0,m_view_man,TQ_SLOT(checkDataIntegrity()),actionCollection(),"check_data");
m_find = KStdAction::find(this,TQT_SLOT(find()),actionCollection()); m_find = KStdAction::find(this,TQ_SLOT(find()),actionCollection());
//Plug actions to systemtray context menu //Plug actions to systemtray context menu
m_startall_systray->plug(m_systray_icon->contextMenu()); m_startall_systray->plug(m_systray_icon->contextMenu());
@ -720,7 +720,7 @@ void KTorrent::optionsConfigureToolbars()
saveMainWindowSettings(TDEGlobal::config()); saveMainWindowSettings(TDEGlobal::config());
#endif #endif
KEditToolbar dlg(factory()); KEditToolbar dlg(factory());
connect(&dlg,TQT_SIGNAL(newToolbarConfig()),this,TQT_SLOT(newToolbarConfig())); connect(&dlg,TQ_SIGNAL(newToolbarConfig()),this,TQ_SLOT(newToolbarConfig()));
dlg.exec(); dlg.exec();
} }

@ -70,7 +70,7 @@ KTorrentCore::KTorrentCore(kt::GUIInterface* gui) : max_downloads(0),keep_seedin
UpdateCurrentTime(); UpdateCurrentTime();
qman = new QueueManager(); qman = new QueueManager();
connect(qman, TQT_SIGNAL(lowDiskSpace(kt::TorrentInterface*,bool)), this, TQT_SLOT(onLowDiskSpace(kt::TorrentInterface*,bool))); connect(qman, TQ_SIGNAL(lowDiskSpace(kt::TorrentInterface*,bool)), this, TQ_SLOT(onLowDiskSpace(kt::TorrentInterface*,bool)));
data_dir = Settings::tempDir(); data_dir = Settings::tempDir();
@ -91,7 +91,7 @@ KTorrentCore::KTorrentCore(kt::GUIInterface* gui) : max_downloads(0),keep_seedin
data_dir += bt::DirSeparator(); data_dir += bt::DirSeparator();
// downloads.setAutoDelete(true); // downloads.setAutoDelete(true);
connect(&update_timer,TQT_SIGNAL(timeout()),this,TQT_SLOT(update())); connect(&update_timer,TQ_SIGNAL(timeout()),this,TQ_SLOT(update()));
update_timer.start(CORE_UPDATE_INTERVAL); update_timer.start(CORE_UPDATE_INTERVAL);
Uint16 port = Settings::port(); Uint16 port = Settings::port();
@ -328,7 +328,7 @@ void KTorrentCore::load(const KURL& url)
else else
{ {
TDEIO::Job* j = TDEIO::storedGet(url,false,true); TDEIO::Job* j = TDEIO::storedGet(url,false,true);
connect(j,TQT_SIGNAL(result(TDEIO::Job*)),this,TQT_SLOT(downloadFinished( TDEIO::Job* ))); connect(j,TQ_SIGNAL(result(TDEIO::Job*)),this,TQ_SLOT(downloadFinished( TDEIO::Job* )));
} }
} }
@ -395,7 +395,7 @@ void KTorrentCore::loadSilently(const KURL& url)
{ {
// download to a random file in tmp // download to a random file in tmp
TDEIO::Job* j = TDEIO::storedGet(url,false,true); TDEIO::Job* j = TDEIO::storedGet(url,false,true);
connect(j,TQT_SIGNAL(result(TDEIO::Job*)),this,TQT_SLOT(downloadFinishedSilently( TDEIO::Job* ))); connect(j,TQ_SIGNAL(result(TDEIO::Job*)),this,TQ_SLOT(downloadFinishedSilently( TDEIO::Job* )));
} }
} }
@ -427,7 +427,7 @@ void KTorrentCore::loadSilentlyDir(const KURL& url, const KURL& savedir)
// download to a random file in tmp // download to a random file in tmp
TDEIO::Job* j = TDEIO::storedGet(url,false,true); TDEIO::Job* j = TDEIO::storedGet(url,false,true);
custom_save_locations.insert(j,savedir); // keep track of save location custom_save_locations.insert(j,savedir); // keep track of save location
connect(j,TQT_SIGNAL(result(TDEIO::Job*)),this,TQT_SLOT(downloadFinishedSilently( TDEIO::Job* ))); connect(j,TQ_SIGNAL(result(TDEIO::Job*)),this,TQ_SLOT(downloadFinishedSilently( TDEIO::Job* )));
} }
} }
@ -1097,20 +1097,20 @@ void KTorrentCore::emitCorruptedData(kt::TorrentInterface* tc)
void KTorrentCore::connectSignals(kt::TorrentInterface* tc) void KTorrentCore::connectSignals(kt::TorrentInterface* tc)
{ {
connect(tc,TQT_SIGNAL(finished(kt::TorrentInterface*)), connect(tc,TQ_SIGNAL(finished(kt::TorrentInterface*)),
this,TQT_SLOT(torrentFinished(kt::TorrentInterface* ))); this,TQ_SLOT(torrentFinished(kt::TorrentInterface* )));
connect(tc, TQT_SIGNAL(stoppedByError(kt::TorrentInterface*, TQString )), connect(tc, TQ_SIGNAL(stoppedByError(kt::TorrentInterface*, TQString )),
this, TQT_SLOT(slotStoppedByError(kt::TorrentInterface*, TQString ))); this, TQ_SLOT(slotStoppedByError(kt::TorrentInterface*, TQString )));
connect(tc, TQT_SIGNAL(seedingAutoStopped(kt::TorrentInterface*, kt::AutoStopReason)), connect(tc, TQ_SIGNAL(seedingAutoStopped(kt::TorrentInterface*, kt::AutoStopReason)),
this, TQT_SLOT(torrentSeedAutoStopped(kt::TorrentInterface*, kt::AutoStopReason))); this, TQ_SLOT(torrentSeedAutoStopped(kt::TorrentInterface*, kt::AutoStopReason)));
connect(tc,TQT_SIGNAL(aboutToBeStarted( kt::TorrentInterface*,bool & )), connect(tc,TQ_SIGNAL(aboutToBeStarted( kt::TorrentInterface*,bool & )),
this, TQT_SLOT(aboutToBeStarted( kt::TorrentInterface*,bool & ))); this, TQ_SLOT(aboutToBeStarted( kt::TorrentInterface*,bool & )));
connect(tc,TQT_SIGNAL(corruptedDataFound( kt::TorrentInterface* )), connect(tc,TQ_SIGNAL(corruptedDataFound( kt::TorrentInterface* )),
this, TQT_SLOT(emitCorruptedData( kt::TorrentInterface* ))); this, TQ_SLOT(emitCorruptedData( kt::TorrentInterface* )));
connect(qman, TQT_SIGNAL(queuingNotPossible(kt::TorrentInterface*)), connect(qman, TQ_SIGNAL(queuingNotPossible(kt::TorrentInterface*)),
this, TQT_SLOT(enqueueTorrentOverMaxRatio( kt::TorrentInterface* ))); this, TQ_SLOT(enqueueTorrentOverMaxRatio( kt::TorrentInterface* )));
connect(qman, TQT_SIGNAL(lowDiskSpace(kt::TorrentInterface*, bool)), connect(qman, TQ_SIGNAL(lowDiskSpace(kt::TorrentInterface*, bool)),
this, TQT_SLOT(onLowDiskSpace(kt::TorrentInterface*, bool))); this, TQ_SLOT(onLowDiskSpace(kt::TorrentInterface*, bool)));
} }

@ -93,21 +93,21 @@ KTorrentView::KTorrentView(TQWidget *parent)
setupColumns(); setupColumns();
connect(view,TQT_SIGNAL(executed(TQListViewItem* )), connect(view,TQ_SIGNAL(executed(TQListViewItem* )),
this,TQT_SLOT(onExecuted(TQListViewItem* ))); this,TQ_SLOT(onExecuted(TQListViewItem* )));
connect(view,TQT_SIGNAL(currentChanged(TQListViewItem* )), connect(view,TQ_SIGNAL(currentChanged(TQListViewItem* )),
this,TQT_SLOT(onExecuted(TQListViewItem* ))); this,TQ_SLOT(onExecuted(TQListViewItem* )));
connect(view,TQT_SIGNAL(contextMenu(TDEListView*, TQListViewItem*, const TQPoint& )), connect(view,TQ_SIGNAL(contextMenu(TDEListView*, TQListViewItem*, const TQPoint& )),
this,TQT_SLOT(showContextMenu(TDEListView*, TQListViewItem*, const TQPoint& ))); this,TQ_SLOT(showContextMenu(TDEListView*, TQListViewItem*, const TQPoint& )));
connect(view,TQT_SIGNAL(selectionChanged()),this,TQT_SLOT(onSelectionChanged())); connect(view,TQ_SIGNAL(selectionChanged()),this,TQ_SLOT(onSelectionChanged()));
menu = new KTorrentViewMenu(this); menu = new KTorrentViewMenu(this);
connect(menu,TQT_SIGNAL(groupItemActivated(const TQString&)),this,TQT_SLOT(gsmItemActived(const TQString&))); connect(menu,TQ_SIGNAL(groupItemActivated(const TQString&)),this,TQ_SLOT(gsmItemActived(const TQString&)));
connect(m_headerMenu, TQT_SIGNAL(activated(int)), this, TQT_SLOT(onColumnVisibilityChange( int ))); connect(m_headerMenu, TQ_SIGNAL(activated(int)), this, TQ_SLOT(onColumnVisibilityChange( int )));
view->setFrameShape(TQFrame::NoFrame); view->setFrameShape(TQFrame::NoFrame);
} }

@ -35,69 +35,69 @@ KTorrentViewMenu::KTorrentViewMenu (KTorrentView *parent, const char *name )
stop_id = insertItem( stop_id = insertItem(
iload->loadIconSet("ktstop",TDEIcon::Small),i18n("to stop", "Stop"), iload->loadIconSet("ktstop",TDEIcon::Small),i18n("to stop", "Stop"),
parent,TQT_SLOT(stopDownloads())); parent,TQ_SLOT(stopDownloads()));
start_id = insertItem( start_id = insertItem(
iload->loadIconSet("ktstart",TDEIcon::Small),i18n("to start", "Start"), iload->loadIconSet("ktstart",TDEIcon::Small),i18n("to start", "Start"),
parent,TQT_SLOT(startDownloads())); parent,TQ_SLOT(startDownloads()));
remove_id = insertItem( remove_id = insertItem(
iload->loadIconSet("ktremove",TDEIcon::Small),i18n("Remove Torrent"), iload->loadIconSet("ktremove",TDEIcon::Small),i18n("Remove Torrent"),
parent,TQT_SLOT(removeDownloads())); parent,TQ_SLOT(removeDownloads()));
remove_all_id = insertItem( remove_all_id = insertItem(
iload->loadIconSet("ktremove",TDEIcon::Small),i18n("Remove Torrent and Data"), iload->loadIconSet("ktremove",TDEIcon::Small),i18n("Remove Torrent and Data"),
parent,TQT_SLOT(removeDownloadsAndData())); parent,TQ_SLOT(removeDownloadsAndData()));
queue_id = insertItem( queue_id = insertItem(
iload->loadIconSet("player_playlist",TDEIcon::Small),i18n("Enqueue/Dequeue"), iload->loadIconSet("player_playlist",TDEIcon::Small),i18n("Enqueue/Dequeue"),
parent,TQT_SLOT(queueSlot())); parent,TQ_SLOT(queueSlot()));
insertSeparator(); insertSeparator();
add_peer_id = insertItem( add_peer_id = insertItem(
iload->loadIconSet("add", TDEIcon::Small), i18n("Add Peers"), iload->loadIconSet("add", TDEIcon::Small), i18n("Add Peers"),
parent, TQT_SLOT(showAddPeersWidget())); parent, TQ_SLOT(showAddPeersWidget()));
peer_sources_menu = new TDEPopupMenu(this); peer_sources_menu = new TDEPopupMenu(this);
peer_sources_id = insertItem(i18n("Additional Peer Sources"), peer_sources_menu); peer_sources_id = insertItem(i18n("Additional Peer Sources"), peer_sources_menu);
peer_sources_menu->insertTitle(i18n("Torrent Peer Sources:")); peer_sources_menu->insertTitle(i18n("Torrent Peer Sources:"));
peer_sources_menu->setCheckable(true); peer_sources_menu->setCheckable(true);
dht_id = peer_sources_menu->insertItem(i18n("DHT"), parent, TQT_SLOT(dhtSlot())); dht_id = peer_sources_menu->insertItem(i18n("DHT"), parent, TQ_SLOT(dhtSlot()));
ut_pex_id = peer_sources_menu->insertItem(i18n("Peer Exchange"), parent, TQT_SLOT(utPexSlot())); ut_pex_id = peer_sources_menu->insertItem(i18n("Peer Exchange"), parent, TQ_SLOT(utPexSlot()));
insertSeparator(); insertSeparator();
announce_id = insertItem( announce_id = insertItem(
iload->loadIconSet("apply",TDEIcon::Small),i18n("Manual Announce"), iload->loadIconSet("apply",TDEIcon::Small),i18n("Manual Announce"),
parent,TQT_SLOT(manualAnnounce())); parent,TQ_SLOT(manualAnnounce()));
preview_id = insertItem( preview_id = insertItem(
iload->loadIconSet("frame_image",TDEIcon::Small),i18n("Preview"), iload->loadIconSet("frame_image",TDEIcon::Small),i18n("Preview"),
parent, TQT_SLOT(previewFiles())); parent, TQ_SLOT(previewFiles()));
insertSeparator(); insertSeparator();
dirs_sub_menu = new TDEPopupMenu(this); dirs_sub_menu = new TDEPopupMenu(this);
dirs_id = insertItem(i18n("Open Directory"), dirs_sub_menu); dirs_id = insertItem(i18n("Open Directory"), dirs_sub_menu);
outputdir_id = dirs_sub_menu->insertItem(iload->loadIconSet("folder",TDEIcon::Small), i18n("Data Directory"), outputdir_id = dirs_sub_menu->insertItem(iload->loadIconSet("folder",TDEIcon::Small), i18n("Data Directory"),
parent, TQT_SLOT(openOutputDirectory())); parent, TQ_SLOT(openOutputDirectory()));
torxdir_id = dirs_sub_menu->insertItem(iload->loadIconSet("folder",TDEIcon::Small), i18n("Temporary Directory"), torxdir_id = dirs_sub_menu->insertItem(iload->loadIconSet("folder",TDEIcon::Small), i18n("Temporary Directory"),
parent, TQT_SLOT(openTorXDirectory())); parent, TQ_SLOT(openTorXDirectory()));
downloaddir_id = insertItem(i18n("Set Download Location"), parent, TQT_SLOT(setDownloadLocationSlot())); downloaddir_id = insertItem(i18n("Set Download Location"), parent, TQ_SLOT(setDownloadLocationSlot()));
insertSeparator(); insertSeparator();
remove_from_group_id = insertItem(i18n("Remove From Group"),parent, TQT_SLOT(removeFromGroup())); remove_from_group_id = insertItem(i18n("Remove From Group"),parent, TQ_SLOT(removeFromGroup()));
groups_sub_menu = new TDEPopupMenu(this); groups_sub_menu = new TDEPopupMenu(this);
add_to_group_id = insertItem(i18n("Add to Group"),groups_sub_menu); add_to_group_id = insertItem(i18n("Add to Group"),groups_sub_menu);
insertSeparator(); insertSeparator();
scan_id = insertItem(i18n("Check Data Integrity"),parent, TQT_SLOT(checkDataIntegrity())); scan_id = insertItem(i18n("Check Data Integrity"),parent, TQ_SLOT(checkDataIntegrity()));
connect(groups_sub_menu,TQT_SIGNAL(activated(int)),this,TQT_SLOT(gsmItemActived(int))); connect(groups_sub_menu,TQ_SIGNAL(activated(int)),this,TQ_SLOT(gsmItemActived(int)));
traffic_lim_id = insertItem(i18n("Speed Limits"),parent,TQT_SLOT(speedLimits())); traffic_lim_id = insertItem(i18n("Speed Limits"),parent,TQ_SLOT(speedLimits()));
} }

@ -56,9 +56,9 @@ Button::Button(ButtonBar *parent, const TQString text, const TQIconSet &icon,
TQToolTip::add(this, m_realText); TQToolTip::add(this, m_realText);
m_assignAccelAction = new TDEAction(i18n("Assign Accelerator..."), 0, m_assignAccelAction = new TDEAction(i18n("Assign Accelerator..."), 0,
this, TQT_SLOT(assignAccel()), this); this, TQ_SLOT(assignAccel()), this);
m_clearAccelAction = new TDEAction(i18n("Clear Accelerator"), 0, m_clearAccelAction = new TDEAction(i18n("Clear Accelerator"), 0,
this, TQT_SLOT(clearAccel()), this); this, TQ_SLOT(clearAccel()), this);
TDEConfig *config = kapp->config(); TDEConfig *config = kapp->config();
config->setGroup("UI"); config->setGroup("UI");

@ -85,9 +85,9 @@ DDockWindow::DDockWindow(DMainWindow *parent, Position position)
m_widgetStack = new TQWidgetStack(this); m_widgetStack = new TQWidgetStack(this);
m_internalLayout->addWidget(m_widgetStack); m_internalLayout->addWidget(m_widgetStack);
m_moveToDockLeft = new TDEAction( i18n("Move to left dock"), 0, this, TQT_SLOT(moveToDockLeft()), this ); m_moveToDockLeft = new TDEAction( i18n("Move to left dock"), 0, this, TQ_SLOT(moveToDockLeft()), this );
m_moveToDockRight = new TDEAction( i18n("Move to right dock"), 0, this, TQT_SLOT(moveToDockRight()), this ); m_moveToDockRight = new TDEAction( i18n("Move to right dock"), 0, this, TQ_SLOT(moveToDockRight()), this );
m_moveToDockBottom = new TDEAction( i18n("Move to bottom dock"), 0, this, TQT_SLOT(moveToDockBottom()), this ); m_moveToDockBottom = new TDEAction( i18n("Move to bottom dock"), 0, this, TQ_SLOT(moveToDockBottom()), this );
setVisible(m_visible); setVisible(m_visible);
@ -192,8 +192,8 @@ void DDockWindow::addWidget(const TQString &title, TQWidget *widget, bool skipAc
m_bar->addButton(button); m_bar->addButton(button);
m_widgetStack->addWidget(widget); m_widgetStack->addWidget(widget);
connect(button, TQT_SIGNAL(clicked()), this, TQT_SLOT(selectWidget())); connect(button, TQ_SIGNAL(clicked()), this, TQ_SLOT(selectWidget()));
connect(button, TQT_SIGNAL(contextMenu(TQPopupMenu*)), this, TQT_SLOT(contextMenu(TQPopupMenu*)) ); connect(button, TQ_SIGNAL(contextMenu(TQPopupMenu*)), this, TQ_SLOT(contextMenu(TQPopupMenu*)) );
if (!skipActivation) if (!skipActivation)
{ {

@ -213,10 +213,10 @@ DTabWidget *DMainWindow::createTab()
DTabWidget *tab = new DTabWidget(m_central); DTabWidget *tab = new DTabWidget(m_central);
m_tabs.append(tab); m_tabs.append(tab);
if (tab->closeButton()) if (tab->closeButton())
connect(tab->closeButton(), TQT_SIGNAL(clicked()), this, TQT_SLOT(closeTab())); connect(tab->closeButton(), TQ_SIGNAL(clicked()), this, TQ_SLOT(closeTab()));
connect(tab, TQT_SIGNAL(closeRequest(TQWidget*)), this, TQT_SLOT(closeTab(TQWidget*))); connect(tab, TQ_SIGNAL(closeRequest(TQWidget*)), this, TQ_SLOT(closeTab(TQWidget*)));
connect(tab, TQT_SIGNAL(contextMenu(TQWidget*,const TQPoint &)), connect(tab, TQ_SIGNAL(contextMenu(TQWidget*,const TQPoint &)),
this, TQT_SLOT(tabContext(TQWidget*,const TQPoint &))); this, TQ_SLOT(tabContext(TQWidget*,const TQPoint &)));
return tab; return tab;
} }
@ -280,7 +280,7 @@ void DMainWindow::addDockWidget(DDockWindow::Position position, TQWidget *view,
DDockWindow* dock = toolWindow(position); DDockWindow* dock = toolWindow(position);
dock->addWidget(title, view); dock->addWidget(title, view);
m_docks[view] = position; m_docks[view] = position;
connect(view, TQT_SIGNAL(destroyed()), this, TQT_SLOT(widgetDestroyed())); connect(view, TQ_SIGNAL(destroyed()), this, TQ_SLOT(widgetDestroyed()));
if (dock->isHidden()) if (dock->isHidden())
dock->show(); dock->show();
} }

@ -49,8 +49,8 @@ DTabWidget::DTabWidget(TQWidget *parent, const char *name)
setTabReorderingEnabled(true); setTabReorderingEnabled(true);
} }
connect(this, TQT_SIGNAL(currentChanged(TQWidget*)), this, TQT_SLOT(setFocus(TQWidget*))); connect(this, TQ_SIGNAL(currentChanged(TQWidget*)), this, TQ_SLOT(setFocus(TQWidget*)));
// connect(this, TQT_SIGNAL(currentChanged(TQWidget*)), this, TQT_SLOT(updateHistory(TQWidget*))); // connect(this, TQ_SIGNAL(currentChanged(TQWidget*)), this, TQ_SLOT(updateHistory(TQWidget*)));
} }
void DTabWidget::loadSettings() void DTabWidget::loadSettings()

@ -226,12 +226,12 @@ void GeneralPrefPage::createWidget(TQWidget* parent)
{ {
gp = new GeneralPref(parent); gp = new GeneralPref(parent);
updateData(); updateData();
connect(gp->custom_ip_check, TQT_SIGNAL(toggled(bool)), connect(gp->custom_ip_check, TQ_SIGNAL(toggled(bool)),
this, TQT_SLOT(customIPChecked(bool))); this, TQ_SLOT(customIPChecked(bool)));
connect(gp->use_dht, TQT_SIGNAL(toggled(bool)), connect(gp->use_dht, TQ_SIGNAL(toggled(bool)),
this, TQT_SLOT(dhtChecked(bool))); this, TQ_SLOT(dhtChecked(bool)));
connect(gp->use_encryption, TQT_SIGNAL(toggled(bool)), connect(gp->use_encryption, TQ_SIGNAL(toggled(bool)),
this, TQT_SLOT(useEncryptionChecked(bool))); this, TQ_SLOT(useEncryptionChecked(bool)));
} }
bool GeneralPrefPage::apply() bool GeneralPrefPage::apply()
@ -463,14 +463,14 @@ void AdvancedPrefPage::createWidget(TQWidget* parent)
{ {
ap = new AdvancedPref(parent); ap = new AdvancedPref(parent);
updateData(); updateData();
connect(ap->no_recheck, TQT_SIGNAL(toggled(bool)), connect(ap->no_recheck, TQ_SIGNAL(toggled(bool)),
this, TQT_SLOT(noDataCheckChecked(bool))); this, TQ_SLOT(noDataCheckChecked(bool)));
connect(ap->auto_recheck, TQT_SIGNAL(toggled(bool)), connect(ap->auto_recheck, TQ_SIGNAL(toggled(bool)),
this, TQT_SLOT(autoRecheckChecked(bool))); this, TQ_SLOT(autoRecheckChecked(bool)));
connect(ap->do_not_use_kde_proxy, TQT_SIGNAL(toggled(bool)), connect(ap->do_not_use_kde_proxy, TQ_SIGNAL(toggled(bool)),
this, TQT_SLOT(doNotUseKDEProxyChecked(bool))); this, TQ_SLOT(doNotUseKDEProxyChecked(bool)));
connect(ap->prealloc_disabled,TQT_SIGNAL(toggled(bool)), connect(ap->prealloc_disabled,TQ_SIGNAL(toggled(bool)),
this,TQT_SLOT(preallocDisabledChecked(bool))); this,TQ_SLOT(preallocDisabledChecked(bool)));
preallocDisabledChecked(ap->prealloc_disabled->isChecked()); preallocDisabledChecked(ap->prealloc_disabled->isChecked());
} }

@ -105,8 +105,8 @@ QueueDialog::QueueDialog(bt::QueueManager* qm, TQWidget *parent, const char *nam
logo->setPixmap(iload->loadIcon("ktqueuemanager", TDEIcon::Desktop)); logo->setPixmap(iload->loadIcon("ktqueuemanager", TDEIcon::Desktop));
connect(downloadList, TQT_SIGNAL(selectionChanged(TQListViewItem*)), this, TQT_SLOT(downloadList_currentChanged( TQListViewItem* ))); connect(downloadList, TQ_SIGNAL(selectionChanged(TQListViewItem*)), this, TQ_SLOT(downloadList_currentChanged( TQListViewItem* )));
connect(seedList, TQT_SIGNAL(selectionChanged(TQListViewItem*)), this, TQT_SLOT(seedList_currentChanged( TQListViewItem* ))); connect(seedList, TQ_SIGNAL(selectionChanged(TQListViewItem*)), this, TQ_SLOT(seedList_currentChanged( TQListViewItem* )));
if(downloadList->firstChild()) if(downloadList->firstChild())
downloadList->setCurrentItem(downloadList->firstChild()); downloadList->setCurrentItem(downloadList->firstChild());

@ -40,8 +40,8 @@ ScanDialog::ScanDialog(KTorrentCore* core,bool auto_import,
: ScanDlgBase(parent,name, modal,fl),DataCheckerListener(auto_import),mutex(true),core(core) : ScanDlgBase(parent,name, modal,fl),DataCheckerListener(auto_import),mutex(true),core(core)
{ {
m_cancel->setGuiItem(KStdGuiItem::cancel()); m_cancel->setGuiItem(KStdGuiItem::cancel());
connect(m_cancel,TQT_SIGNAL(clicked()),this,TQT_SLOT(onCancelPressed())); connect(m_cancel,TQ_SIGNAL(clicked()),this,TQ_SLOT(onCancelPressed()));
connect(&timer,TQT_SIGNAL(timeout()),this,TQT_SLOT(update())); connect(&timer,TQ_SIGNAL(timeout()),this,TQ_SLOT(update()));
tc = 0; tc = 0;
silently = false; silently = false;
restart = false; restart = false;
@ -127,8 +127,8 @@ void ScanDialog::finished()
{ {
// cancel now becomes a close button // cancel now becomes a close button
m_cancel->setGuiItem(KStdGuiItem::close()); m_cancel->setGuiItem(KStdGuiItem::close());
disconnect(m_cancel,TQT_SIGNAL(clicked()),this,TQT_SLOT(onCancelPressed())); disconnect(m_cancel,TQ_SIGNAL(clicked()),this,TQ_SLOT(onCancelPressed()));
connect(m_cancel,TQT_SIGNAL(clicked()),this,TQT_SLOT(accept())); connect(m_cancel,TQ_SIGNAL(clicked()),this,TQ_SLOT(accept()));
} }
} }
else else

@ -38,8 +38,8 @@ TorrentCreatorDlg::TorrentCreatorDlg(KTorrentCore* core,TQWidget *parent, const
KComboBox* cb = m_chunk_size; KComboBox* cb = m_chunk_size;
cb->setCurrentItem(3); cb->setCurrentItem(3);
connect(m_create_btn,TQT_SIGNAL(clicked()),this,TQT_SLOT(onCreate())); connect(m_create_btn,TQ_SIGNAL(clicked()),this,TQ_SLOT(onCreate()));
connect(m_cancel_btn,TQT_SIGNAL(clicked()),this,TQT_SLOT(reject())); connect(m_cancel_btn,TQ_SIGNAL(clicked()),this,TQ_SLOT(reject()));
m_nodes->setHidden(true); m_nodes->setHidden(true);

@ -33,8 +33,8 @@ TrayHoverPopup::TrayHoverPopup(const TQPixmap & pix,TQWidget *parent, const char
{ {
setTimeout(0); setTimeout(0);
setAutoDelete(false); setAutoDelete(false);
connect(&hover_timer,TQT_SIGNAL(timeout()),this,TQT_SLOT(onHoverTimeout())); connect(&hover_timer,TQ_SIGNAL(timeout()),this,TQ_SLOT(onHoverTimeout()));
connect(&show_timer,TQT_SIGNAL(timeout()),this,TQT_SLOT(onShowTimeout())); connect(&show_timer,TQ_SIGNAL(timeout()),this,TQ_SLOT(onShowTimeout()));
create(); create();
setPalette(TQToolTip::palette()); setPalette(TQToolTip::palette());
setLineWidth(1); setLineWidth(1);

@ -49,26 +49,26 @@ TrayIcon::TrayIcon( KTorrentCore* tc, TQWidget *parent, const char *name)
m_hover_popup = new TrayHoverPopup(m_kt_pix,this); m_hover_popup = new TrayHoverPopup(m_kt_pix,this);
connect(this,TQT_SIGNAL(quitSelected()),kapp,TQT_SLOT(quit())); connect(this,TQ_SIGNAL(quitSelected()),kapp,TQ_SLOT(quit()));
connect(m_core, TQT_SIGNAL(finished(kt::TorrentInterface* )), connect(m_core, TQ_SIGNAL(finished(kt::TorrentInterface* )),
this, TQT_SLOT(finished(kt::TorrentInterface* ))); this, TQ_SLOT(finished(kt::TorrentInterface* )));
connect(m_core,TQT_SIGNAL(torrentStoppedByError(kt::TorrentInterface*, TQString )), connect(m_core,TQ_SIGNAL(torrentStoppedByError(kt::TorrentInterface*, TQString )),
this,TQT_SLOT(torrentStoppedByError(kt::TorrentInterface*, TQString ))); this,TQ_SLOT(torrentStoppedByError(kt::TorrentInterface*, TQString )));
connect(m_core,TQT_SIGNAL(maxShareRatioReached( kt::TorrentInterface* )), connect(m_core,TQ_SIGNAL(maxShareRatioReached( kt::TorrentInterface* )),
this,TQT_SLOT(maxShareRatioReached( kt::TorrentInterface* ))); this,TQ_SLOT(maxShareRatioReached( kt::TorrentInterface* )));
connect(m_core,TQT_SIGNAL(maxSeedTimeReached(kt::TorrentInterface*)), connect(m_core,TQ_SIGNAL(maxSeedTimeReached(kt::TorrentInterface*)),
this, TQT_SLOT(maxSeedTimeReached(kt::TorrentInterface*))); this, TQ_SLOT(maxSeedTimeReached(kt::TorrentInterface*)));
connect(m_core,TQT_SIGNAL(corruptedData( kt::TorrentInterface* )), connect(m_core,TQ_SIGNAL(corruptedData( kt::TorrentInterface* )),
this,TQT_SLOT(corruptedData( kt::TorrentInterface* ))); this,TQ_SLOT(corruptedData( kt::TorrentInterface* )));
connect(m_core, TQT_SIGNAL(queuingNotPossible( kt::TorrentInterface* )), connect(m_core, TQ_SIGNAL(queuingNotPossible( kt::TorrentInterface* )),
this, TQT_SLOT(queuingNotPossible( kt::TorrentInterface* ))); this, TQ_SLOT(queuingNotPossible( kt::TorrentInterface* )));
connect(m_core,TQT_SIGNAL(canNotStart(kt::TorrentInterface*, kt::TorrentStartResponse)), connect(m_core,TQ_SIGNAL(canNotStart(kt::TorrentInterface*, kt::TorrentStartResponse)),
this,TQT_SLOT(canNotStart(kt::TorrentInterface*, kt::TorrentStartResponse))); this,TQ_SLOT(canNotStart(kt::TorrentInterface*, kt::TorrentStartResponse)));
connect(m_core, TQT_SIGNAL(lowDiskSpace(kt::TorrentInterface*, bool)), connect(m_core, TQ_SIGNAL(lowDiskSpace(kt::TorrentInterface*, bool)),
this, TQT_SLOT(lowDiskSpace(kt::TorrentInterface*, bool))); this, TQ_SLOT(lowDiskSpace(kt::TorrentInterface*, bool)));
connect(this->contextMenu(),TQT_SIGNAL(aboutToShow()),m_hover_popup,TQT_SLOT(contextMenuAboutToShow())); connect(this->contextMenu(),TQ_SIGNAL(aboutToShow()),m_hover_popup,TQ_SLOT(contextMenuAboutToShow()));
connect(this->contextMenu(),TQT_SIGNAL(aboutToHide()),m_hover_popup,TQT_SLOT(contextMenuAboutToHide())); connect(this->contextMenu(),TQ_SIGNAL(aboutToHide()),m_hover_popup,TQ_SLOT(contextMenuAboutToHide()));
} }
TrayIcon::~TrayIcon() TrayIcon::~TrayIcon()
@ -287,7 +287,7 @@ SetMaxRate::SetMaxRate( KTorrentCore* tc, int t, TQWidget *parent, const char *n
m_core = tc; m_core = tc;
type=t; type=t;
makeMenu(); makeMenu();
connect(this,TQT_SIGNAL(activated (int)),this,TQT_SLOT(rateSelected(int ))); connect(this,TQ_SIGNAL(activated (int)),this,TQ_SLOT(rateSelected(int )));
} }
void SetMaxRate::makeMenu() void SetMaxRate::makeMenu()
{ {

@ -33,11 +33,11 @@ UPnPTestApp::UPnPTestApp(TQWidget *parent, const char *name)
: TDEMainWindow(parent, name) : TDEMainWindow(parent, name)
{ {
sock = new UPnPMCastSocket(true); sock = new UPnPMCastSocket(true);
connect(sock,TQT_SIGNAL(discovered( UPnPRouter* )),this,TQT_SLOT(discovered( UPnPRouter* ))); connect(sock,TQ_SIGNAL(discovered( UPnPRouter* )),this,TQ_SLOT(discovered( UPnPRouter* )));
mwnd = new MainWidget(this); mwnd = new MainWidget(this);
setCentralWidget(mwnd); setCentralWidget(mwnd);
connect(mwnd->test_btn,TQT_SIGNAL(clicked()),this,TQT_SLOT(onTestBtn())); connect(mwnd->test_btn,TQ_SIGNAL(clicked()),this,TQ_SLOT(onTestBtn()));
connect(mwnd->close_btn,TQT_SIGNAL(clicked()),this,TQT_SLOT(onCloseBtn())); connect(mwnd->close_btn,TQ_SIGNAL(clicked()),this,TQ_SLOT(onCloseBtn()));
bt::Log & lg = bt::Globals::instance().getLog(0); bt::Log & lg = bt::Globals::instance().getLog(0);
lg.addMonitor(this); lg.addMonitor(this);
Out() << "UPnPTestApp started up !" << endl; Out() << "UPnPTestApp started up !" << endl;

@ -31,7 +31,7 @@ namespace kt
ExitJobOperation::ExitJobOperation(TDEIO::Job* j) ExitJobOperation::ExitJobOperation(TDEIO::Job* j)
{ {
connect(j,TQT_SIGNAL(result(TDEIO::Job*)),this,TQT_SLOT(onResult( TDEIO::Job* ))); connect(j,TQ_SIGNAL(result(TDEIO::Job*)),this,TQ_SLOT(onResult( TDEIO::Job* )));
} }
ExitJobOperation::~ExitJobOperation() ExitJobOperation::~ExitJobOperation()

@ -46,7 +46,7 @@ namespace dht
DHT::DHT() : node(0),srv(0),db(0),tman(0) DHT::DHT() : node(0),srv(0),db(0),tman(0)
{ {
connect(&update_timer,TQT_SIGNAL(timeout()),this,TQT_SLOT(update())); connect(&update_timer,TQ_SIGNAL(timeout()),this,TQ_SLOT(update()));
} }

@ -37,9 +37,9 @@ namespace dht
DHTTrackerBackend::DHTTrackerBackend(DHTBase & dh_table,kt::TorrentInterface* tor) DHTTrackerBackend::DHTTrackerBackend(DHTBase & dh_table,kt::TorrentInterface* tor)
: dh_table(dh_table),curr_task(0),tor(tor) : dh_table(dh_table),curr_task(0),tor(tor)
{ {
connect(&timer,TQT_SIGNAL(timeout()),this,TQT_SLOT(onTimeout())); connect(&timer,TQ_SIGNAL(timeout()),this,TQ_SLOT(onTimeout()));
connect(&dh_table,TQT_SIGNAL(started()),this,TQT_SLOT(manualUpdate())); connect(&dh_table,TQ_SIGNAL(started()),this,TQ_SLOT(manualUpdate()));
connect(&dh_table,TQT_SIGNAL(stopped()),this,TQT_SLOT(dhtStopped())); connect(&dh_table,TQ_SIGNAL(stopped()),this,TQ_SLOT(dhtStopped()));
started = false; started = false;
} }
@ -98,8 +98,8 @@ namespace dht
const kt::DHTNode & n = tor->getDHTNode(i); const kt::DHTNode & n = tor->getDHTNode(i);
curr_task->addDHTNode(n.ip,n.port); curr_task->addDHTNode(n.ip,n.port);
} }
connect(curr_task,TQT_SIGNAL(dataReady( Task* )),this,TQT_SLOT(onDataReady( Task* ))); connect(curr_task,TQ_SIGNAL(dataReady( Task* )),this,TQ_SLOT(onDataReady( Task* )));
connect(curr_task,TQT_SIGNAL(finished( Task* )),this,TQT_SLOT(onFinished( Task* ))); connect(curr_task,TQ_SIGNAL(finished( Task* )),this,TQ_SLOT(onFinished( Task* )));
return true; return true;
} }

@ -345,8 +345,8 @@ namespace dht
refresh_task = t; refresh_task = t;
if (refresh_task) if (refresh_task)
{ {
connect(refresh_task,TQT_SIGNAL(finished( Task* )), connect(refresh_task,TQ_SIGNAL(finished( Task* )),
this,TQT_SLOT(onFinished( Task* ))); this,TQ_SLOT(onFinished( Task* )));
} }
} }

@ -33,7 +33,7 @@ namespace dht
RPCCall::RPCCall(RPCServer* rpc,MsgBase* msg,bool queued) : msg(msg),rpc(rpc),queued(queued) RPCCall::RPCCall(RPCServer* rpc,MsgBase* msg,bool queued) : msg(msg),rpc(rpc),queued(queued)
{ {
connect(&timer,TQT_SIGNAL(timeout()),this,TQT_SLOT(onTimeout())); connect(&timer,TQ_SIGNAL(timeout()),this,TQ_SLOT(onTimeout()));
if (!queued) if (!queued)
timer.start(30*1000,true); timer.start(30*1000,true);
} }
@ -71,8 +71,8 @@ namespace dht
void RPCCall::addListener(RPCCallListener* cl) void RPCCall::addListener(RPCCallListener* cl)
{ {
connect(this,TQT_SIGNAL(onCallResponse( RPCCall*, MsgBase* )),cl,TQT_SLOT(onResponse( RPCCall*, MsgBase* ))); connect(this,TQ_SIGNAL(onCallResponse( RPCCall*, MsgBase* )),cl,TQ_SLOT(onResponse( RPCCall*, MsgBase* )));
connect(this,TQT_SIGNAL(onCallTimeout( RPCCall* )),cl,TQT_SLOT(onTimeout( RPCCall* ))); connect(this,TQ_SIGNAL(onCallTimeout( RPCCall* )),cl,TQ_SLOT(onTimeout( RPCCall* )));
} }
} }

@ -72,7 +72,7 @@ namespace dht
bt::Globals::instance().getPortList().addNewPort(port,net::UDP,true); bt::Globals::instance().getPortList().addNewPort(port,net::UDP,true);
} }
sock->setBlocking(false); sock->setBlocking(false);
connect(sock,TQT_SIGNAL(readyRead()),this,TQT_SLOT(readPacket())); connect(sock,TQ_SIGNAL(readyRead()),this,TQ_SLOT(readPacket()));
} }
void RPCServer::stop() void RPCServer::stop()

@ -117,7 +117,7 @@ namespace dht
void Task::addDHTNode(const TQString & ip,bt::Uint16 port) void Task::addDHTNode(const TQString & ip,bt::Uint16 port)
{ {
KResolver::resolveAsync(this,TQT_SLOT(onResolverResults(KResolverResults )), KResolver::resolveAsync(this,TQ_SLOT(onResolverResults(KResolverResults )),
ip,TQString::number(port)); ip,TQString::number(port));
} }

@ -165,8 +165,8 @@ namespace kt
items.push_back(item); items.push_back(item);
item->setOdd(items.size() % 2 == 1); item->setOdd(items.size() % 2 == 1);
connect(item, TQT_SIGNAL(clicked(LabelViewItem*)), connect(item, TQ_SIGNAL(clicked(LabelViewItem*)),
this, TQT_SLOT(onItemClicked(LabelViewItem*))); this, TQ_SLOT(onItemClicked(LabelViewItem*)));
} }
void LabelView::removeItem(LabelViewItem* item) void LabelView::removeItem(LabelViewItem* item)
@ -176,8 +176,8 @@ namespace kt
{ {
item_box->remove(item); item_box->remove(item);
items.erase(i); items.erase(i);
disconnect(item, TQT_SIGNAL(clicked(LabelViewItem*)), disconnect(item, TQ_SIGNAL(clicked(LabelViewItem*)),
this, TQT_SLOT(onItemClicked(LabelViewItem*))); this, TQ_SLOT(onItemClicked(LabelViewItem*)));
// check for selected being equal to item // check for selected being equal to item
if (item == selected) if (item == selected)

@ -78,12 +78,12 @@ namespace kt
{ {
pmw = new PluginManagerWidget(parent); pmw = new PluginManagerWidget(parent);
connect(pmw->load_btn,TQT_SIGNAL(clicked()),this,TQT_SLOT(onLoad())); connect(pmw->load_btn,TQ_SIGNAL(clicked()),this,TQ_SLOT(onLoad()));
connect(pmw->unload_btn,TQT_SIGNAL(clicked()),this,TQT_SLOT(onUnload())); connect(pmw->unload_btn,TQ_SIGNAL(clicked()),this,TQ_SLOT(onUnload()));
connect(pmw->load_all_btn,TQT_SIGNAL(clicked()),this,TQT_SLOT(onLoadAll())); connect(pmw->load_all_btn,TQ_SIGNAL(clicked()),this,TQ_SLOT(onLoadAll()));
connect(pmw->unload_all_btn,TQT_SIGNAL(clicked()),this,TQT_SLOT(onUnloadAll())); connect(pmw->unload_all_btn,TQ_SIGNAL(clicked()),this,TQ_SLOT(onUnloadAll()));
LabelView* lv = pmw->plugin_view; LabelView* lv = pmw->plugin_view;
connect(lv,TQT_SIGNAL(currentChanged(LabelViewItem * )),this,TQT_SLOT(onCurrentChanged( LabelViewItem* ))); connect(lv,TQ_SIGNAL(currentChanged(LabelViewItem * )),this,TQ_SLOT(onCurrentChanged( LabelViewItem* )));
} }
void PluginManagerPrefPage::updatePluginList() void PluginManagerPrefPage::updatePluginList()

@ -32,7 +32,7 @@ namespace bt
AuthenticateBase::AuthenticateBase(mse::StreamSocket* s) : sock(s),finished(false),local(false) AuthenticateBase::AuthenticateBase(mse::StreamSocket* s) : sock(s),finished(false),local(false)
{ {
connect(&timer,TQT_SIGNAL(timeout()),this,TQT_SLOT(onTimeout())); connect(&timer,TQ_SIGNAL(timeout()),this,TQ_SLOT(onTimeout()));
timer.start(20000,true); timer.start(20000,true);
memset(handshake,0x00,68); memset(handshake,0x00,68);
bytes_of_handshake_recieved = 0; bytes_of_handshake_recieved = 0;

@ -155,8 +155,8 @@ namespace bt
{ {
PeerDownloader* pd = pdown.at(i); PeerDownloader* pd = pdown.at(i);
pd->release(); pd->release();
disconnect(pd,TQT_SIGNAL(timedout(const Request& )),this,TQT_SLOT(onTimeout(const Request& ))); disconnect(pd,TQ_SIGNAL(timedout(const Request& )),this,TQ_SLOT(onTimeout(const Request& )));
disconnect(pd,TQT_SIGNAL(rejected( const Request& )),this,TQT_SLOT(onRejected( const Request& ))); disconnect(pd,TQ_SIGNAL(rejected( const Request& )),this,TQ_SLOT(onRejected( const Request& )));
} }
dstatus.clear(); dstatus.clear();
pdown.clear(); pdown.clear();
@ -171,8 +171,8 @@ namespace bt
pdown.append(pd); pdown.append(pd);
dstatus.insert(pd->getPeer()->getID(),new DownloadStatus()); dstatus.insert(pd->getPeer()->getID(),new DownloadStatus());
sendRequests(pd); sendRequests(pd);
connect(pd,TQT_SIGNAL(timedout(const Request& )),this,TQT_SLOT(onTimeout(const Request& ))); connect(pd,TQ_SIGNAL(timedout(const Request& )),this,TQ_SLOT(onTimeout(const Request& )));
connect(pd,TQT_SIGNAL(rejected( const Request& )),this,TQT_SLOT(onRejected( const Request& ))); connect(pd,TQ_SIGNAL(rejected( const Request& )),this,TQ_SLOT(onRejected( const Request& )));
return true; return true;
} }
@ -305,8 +305,8 @@ namespace bt
dstatus.erase(pd->getPeer()->getID()); dstatus.erase(pd->getPeer()->getID());
pdown.remove(pd); pdown.remove(pd);
disconnect(pd,TQT_SIGNAL(timedout(const Request& )),this,TQT_SLOT(onTimeout(const Request& ))); disconnect(pd,TQ_SIGNAL(timedout(const Request& )),this,TQ_SLOT(onTimeout(const Request& )));
disconnect(pd,TQT_SIGNAL(rejected( const Request& )),this,TQT_SLOT(onRejected( const Request& ))); disconnect(pd,TQ_SIGNAL(rejected( const Request& )),this,TQ_SLOT(onRejected( const Request& )));
} }

@ -79,8 +79,8 @@ namespace bt
for (Uint32 i = 0;i < tor.getNumFiles();i++) for (Uint32 i = 0;i < tor.getNumFiles();i++)
{ {
TorrentFile & tf = tor.getFile(i); TorrentFile & tf = tor.getFile(i);
connect(&tf,TQT_SIGNAL(downloadPriorityChanged(TorrentFile*, Priority, Priority )), connect(&tf,TQ_SIGNAL(downloadPriorityChanged(TorrentFile*, Priority, Priority )),
this,TQT_SLOT(downloadPriorityChanged(TorrentFile*, Priority, Priority ))); this,TQ_SLOT(downloadPriorityChanged(TorrentFile*, Priority, Priority )));
if (tf.getPriority() != NORMAL_PRIORITY) if (tf.getPriority() != NORMAL_PRIORITY)
{ {
@ -232,8 +232,8 @@ namespace bt
for (Uint32 i = 0;i < tor.getNumFiles();i++) for (Uint32 i = 0;i < tor.getNumFiles();i++)
{ {
TorrentFile & tf = tor.getFile(i); TorrentFile & tf = tor.getFile(i);
connect(&tf,TQT_SIGNAL(downloadPriorityChanged(TorrentFile*, Priority, Priority )), connect(&tf,TQ_SIGNAL(downloadPriorityChanged(TorrentFile*, Priority, Priority )),
this,TQT_SLOT(downloadPriorityChanged(TorrentFile*, Priority, Priority ))); this,TQ_SLOT(downloadPriorityChanged(TorrentFile*, Priority, Priority )));
if (tf.getPriority() != NORMAL_PRIORITY) if (tf.getPriority() != NORMAL_PRIORITY)
{ {

@ -52,8 +52,8 @@ namespace bt
unnecessary_data = 0; unnecessary_data = 0;
current_chunks.setAutoDelete(true); current_chunks.setAutoDelete(true);
connect(&pman,TQT_SIGNAL(newPeer(Peer* )),this,TQT_SLOT(onNewPeer(Peer* ))); connect(&pman,TQ_SIGNAL(newPeer(Peer* )),this,TQ_SLOT(onNewPeer(Peer* )));
connect(&pman,TQT_SIGNAL(peerKilled(Peer* )),this,TQT_SLOT(onPeerKilled(Peer*))); connect(&pman,TQ_SIGNAL(peerKilled(Peer* )),this,TQ_SLOT(onPeerKilled(Peer*)));
} }
@ -360,8 +360,8 @@ namespace bt
void Downloader::onNewPeer(Peer* peer) void Downloader::onNewPeer(Peer* peer)
{ {
PeerDownloader* pd = peer->getPeerDownloader(); PeerDownloader* pd = peer->getPeerDownloader();
connect(pd,TQT_SIGNAL(downloaded(const Piece& )), connect(pd,TQ_SIGNAL(downloaded(const Piece& )),
this,TQT_SLOT(pieceRecieved(const Piece& ))); this,TQ_SLOT(pieceRecieved(const Piece& )));
} }
void Downloader::onPeerKilled(Peer* peer) void Downloader::onPeerKilled(Peer* peer)

@ -124,7 +124,7 @@ namespace bt
j->setMetaData(md); j->setMetaData(md);
TDEIO::Scheduler::scheduleJob(j); TDEIO::Scheduler::scheduleJob(j);
connect(j,TQT_SIGNAL(result(TDEIO::Job* )),this,TQT_SLOT(onScrapeResult( TDEIO::Job* ))); connect(j,TQ_SIGNAL(result(TDEIO::Job* )),this,TQ_SLOT(onScrapeResult( TDEIO::Job* )));
} }
void HTTPTracker::onScrapeResult(TDEIO::Job* j) void HTTPTracker::onScrapeResult(TDEIO::Job* j)
@ -188,7 +188,7 @@ namespace bt
if (!url.isValid()) if (!url.isValid())
{ {
requestPending(); requestPending();
TQTimer::singleShot(500,this,TQT_SLOT(emitInvalidURLFailure())); TQTimer::singleShot(500,this,TQ_SLOT(emitInvalidURLFailure()));
return; return;
} }
@ -453,7 +453,7 @@ namespace bt
j->setMetaData(md); j->setMetaData(md);
TDEIO::Scheduler::scheduleJob(j); TDEIO::Scheduler::scheduleJob(j);
connect(j,TQT_SIGNAL(result(TDEIO::Job* )),this,TQT_SLOT(onAnnounceResult( TDEIO::Job* ))); connect(j,TQ_SIGNAL(result(TDEIO::Job* )),this,TQ_SLOT(onAnnounceResult( TDEIO::Job* )));
active_job = j; active_job = j;
requestPending(); requestPending();

@ -81,8 +81,8 @@ namespace bt
active_src = i.key(); active_src = i.key();
active_dst = i.data(); active_dst = i.data();
Out(SYS_GEN|LOG_DEBUG) << "Moving " << active_src << " -> " << active_dst << endl; Out(SYS_GEN|LOG_DEBUG) << "Moving " << active_src << " -> " << active_dst << endl;
connect(active_job,TQT_SIGNAL(result(TDEIO::Job*)),this,TQT_SLOT(onJobDone(TDEIO::Job*))); connect(active_job,TQ_SIGNAL(result(TDEIO::Job*)),this,TQ_SLOT(onJobDone(TDEIO::Job*)));
connect(active_job,TQT_SIGNAL(canceled(TDEIO::Job*)),this,TQT_SLOT(onCanceled(TDEIO::Job*))); connect(active_job,TQ_SIGNAL(canceled(TDEIO::Job*)),this,TQ_SLOT(onCanceled(TDEIO::Job*)));
todo.erase(i); todo.erase(i);
} }
@ -95,8 +95,8 @@ namespace bt
} }
TQMap<TQString,TQString>::iterator i = success.begin(); TQMap<TQString,TQString>::iterator i = success.begin();
active_job = TDEIO::move(KURL::fromPathOrURL(i.data()),KURL::fromPathOrURL(i.key()),false); active_job = TDEIO::move(KURL::fromPathOrURL(i.data()),KURL::fromPathOrURL(i.key()),false);
connect(active_job,TQT_SIGNAL(result(TDEIO::Job*)),this,TQT_SLOT(onJobDone(TDEIO::Job*))); connect(active_job,TQ_SIGNAL(result(TDEIO::Job*)),this,TQ_SLOT(onJobDone(TDEIO::Job*)));
connect(active_job,TQT_SIGNAL(canceled(TDEIO::Job*)),this,TQT_SLOT(onCanceled(TDEIO::Job*))); connect(active_job,TQ_SIGNAL(canceled(TDEIO::Job*)),this,TQ_SLOT(onCanceled(TDEIO::Job*)));
success.erase(i); success.erase(i);
} }
} }

@ -70,8 +70,8 @@ namespace bt
PeerDownloader::PeerDownloader(Peer* peer,Uint32 chunk_size) : peer(peer),grabbed(0),chunk_size(chunk_size / MAX_PIECE_LEN) PeerDownloader::PeerDownloader(Peer* peer,Uint32 chunk_size) : peer(peer),grabbed(0),chunk_size(chunk_size / MAX_PIECE_LEN)
{ {
connect(peer,TQT_SIGNAL(piece(const Piece& )),this,TQT_SLOT(piece(const Piece& ))); connect(peer,TQ_SIGNAL(piece(const Piece& )),this,TQ_SLOT(piece(const Piece& )));
connect(peer,TQT_SIGNAL(destroyed()),this,TQT_SLOT(peerDestroyed())); connect(peer,TQ_SIGNAL(destroyed()),this,TQ_SLOT(peerDestroyed()));
nearly_done = false; nearly_done = false;
max_wait_queue_size = 25; max_wait_queue_size = 25;
} }

@ -239,7 +239,7 @@ namespace bt
if (auth->isLocal()) if (auth->isLocal())
st->setLocal(true); st->setLocal(true);
connect(this,TQT_SIGNAL(stopped()),st,TQT_SLOT(onPeerManagerDestroyed())); connect(this,TQ_SIGNAL(stopped()),st,TQ_SLOT(onPeerManagerDestroyed()));
AuthenticationMonitor::instance().add(st); AuthenticationMonitor::instance().add(st);
num_pending++; num_pending++;
total_connections++; total_connections++;
@ -259,11 +259,11 @@ namespace bt
{ {
Peer* peer = new Peer(sock,peer_id,tor.getNumChunks(),tor.getChunkSize(),support,local); Peer* peer = new Peer(sock,peer_id,tor.getNumChunks(),tor.getChunkSize(),support,local);
connect(peer,TQT_SIGNAL(haveChunk(Peer*, Uint32 )),this,TQT_SLOT(onHave(Peer*, Uint32 ))); connect(peer,TQ_SIGNAL(haveChunk(Peer*, Uint32 )),this,TQ_SLOT(onHave(Peer*, Uint32 )));
connect(peer,TQT_SIGNAL(bitSetRecieved(const BitSet& )), connect(peer,TQ_SIGNAL(bitSetRecieved(const BitSet& )),
this,TQT_SLOT(onBitSetRecieved(const BitSet& ))); this,TQ_SLOT(onBitSetRecieved(const BitSet& )));
connect(peer,TQT_SIGNAL(rerunChoker()),this,TQT_SLOT(onRerunChoker())); connect(peer,TQ_SIGNAL(rerunChoker()),this,TQ_SLOT(onRerunChoker()));
connect(peer,TQT_SIGNAL(pex( const TQByteArray& )),this,TQT_SLOT(pex( const TQByteArray& ))); connect(peer,TQ_SIGNAL(pex( const TQByteArray& )),this,TQ_SLOT(pex( const TQByteArray& )));
peer_list.append(peer); peer_list.append(peer);
peer_map.insert(peer->getID(),peer); peer_map.insert(peer->getID(),peer);
@ -356,7 +356,7 @@ namespace bt
if (pp.local) if (pp.local)
auth->setLocal(true); auth->setLocal(true);
connect(this,TQT_SIGNAL(stopped()),auth,TQT_SLOT(onPeerManagerDestroyed())); connect(this,TQ_SIGNAL(stopped()),auth,TQ_SLOT(onPeerManagerDestroyed()));
AuthenticationMonitor::instance().add(auth); AuthenticationMonitor::instance().add(auth);
num_pending++; num_pending++;

@ -65,7 +65,7 @@ namespace bt
//load custom trackers //load custom trackers
loadCustomURLs(); loadCustomURLs();
connect(&timer,TQT_SIGNAL(timeout()),this,TQT_SLOT(updateCurrentManually())); connect(&timer,TQ_SIGNAL(timeout()),this,TQ_SLOT(updateCurrentManually()));
} }
PeerSourceManager::~PeerSourceManager() PeerSourceManager::~PeerSourceManager()
@ -85,21 +85,21 @@ namespace bt
void PeerSourceManager::addTracker(Tracker* trk) void PeerSourceManager::addTracker(Tracker* trk)
{ {
trackers.insert(trk->trackerURL(),trk); trackers.insert(trk->trackerURL(),trk);
connect(trk,TQT_SIGNAL(peersReady( kt::PeerSource* )), connect(trk,TQ_SIGNAL(peersReady( kt::PeerSource* )),
pman,TQT_SLOT(peerSourceReady( kt::PeerSource* ))); pman,TQ_SLOT(peerSourceReady( kt::PeerSource* )));
} }
void PeerSourceManager::addPeerSource(kt::PeerSource* ps) void PeerSourceManager::addPeerSource(kt::PeerSource* ps)
{ {
additional.append(ps); additional.append(ps);
connect(ps,TQT_SIGNAL(peersReady( kt::PeerSource* )), connect(ps,TQ_SIGNAL(peersReady( kt::PeerSource* )),
pman,TQT_SLOT(peerSourceReady( kt::PeerSource* ))); pman,TQ_SLOT(peerSourceReady( kt::PeerSource* )));
} }
void PeerSourceManager::removePeerSource(kt::PeerSource* ps) void PeerSourceManager::removePeerSource(kt::PeerSource* ps)
{ {
disconnect(ps,TQT_SIGNAL(peersReady( kt::PeerSource* )), disconnect(ps,TQ_SIGNAL(peersReady( kt::PeerSource* )),
pman,TQT_SLOT(peerSourceReady( kt::PeerSource* ))); pman,TQ_SLOT(peerSourceReady( kt::PeerSource* )));
additional.remove(ps); additional.remove(ps);
} }
@ -477,10 +477,10 @@ namespace bt
if (curr) if (curr)
{ {
disconnect(curr,TQT_SIGNAL(requestFailed( const TQString& )), disconnect(curr,TQ_SIGNAL(requestFailed( const TQString& )),
this,TQT_SLOT(onTrackerError( const TQString& ))); this,TQ_SLOT(onTrackerError( const TQString& )));
disconnect(curr,TQT_SIGNAL(requestOK()),this,TQT_SLOT(onTrackerOK())); disconnect(curr,TQ_SIGNAL(requestOK()),this,TQ_SLOT(onTrackerOK()));
disconnect(curr,TQT_SIGNAL(requestPending()),this,TQT_SLOT(onTrackerRequestPending())); disconnect(curr,TQ_SIGNAL(requestPending()),this,TQ_SLOT(onTrackerRequestPending()));
curr = 0; curr = 0;
} }
@ -488,14 +488,14 @@ namespace bt
if (curr) if (curr)
{ {
Out(SYS_TRK|LOG_NOTICE) << "Switching to tracker " << trk->trackerURL() << endl; Out(SYS_TRK|LOG_NOTICE) << "Switching to tracker " << trk->trackerURL() << endl;
TQObject::connect(curr,TQT_SIGNAL(requestFailed( const TQString& )), TQObject::connect(curr,TQ_SIGNAL(requestFailed( const TQString& )),
this,TQT_SLOT(onTrackerError( const TQString& ))); this,TQ_SLOT(onTrackerError( const TQString& )));
TQObject::connect(curr,TQT_SIGNAL(requestOK()), TQObject::connect(curr,TQ_SIGNAL(requestOK()),
this,TQT_SLOT(onTrackerOK())); this,TQ_SLOT(onTrackerOK()));
TQObject::connect(curr,TQT_SIGNAL(requestPending()), TQObject::connect(curr,TQ_SIGNAL(requestPending()),
this,TQT_SLOT(onTrackerRequestPending())); this,TQ_SLOT(onTrackerRequestPending()));
} }
} }

@ -61,8 +61,8 @@ namespace bt
downloads.append(tc); downloads.append(tc);
downloads.sort(); downloads.sort();
connect(tc, TQT_SIGNAL(diskSpaceLow(kt::TorrentInterface*, bool)), this, TQT_SLOT(onLowDiskSpace(kt::TorrentInterface*, bool))); connect(tc, TQ_SIGNAL(diskSpaceLow(kt::TorrentInterface*, bool)), this, TQ_SLOT(onLowDiskSpace(kt::TorrentInterface*, bool)));
connect(tc, TQT_SIGNAL(torrentStopped(kt::TorrentInterface*)), this, TQT_SLOT(torrentStopped(kt::TorrentInterface*))); connect(tc, TQ_SIGNAL(torrentStopped(kt::TorrentInterface*)), this, TQ_SLOT(torrentStopped(kt::TorrentInterface*)));
} }
void QueueManager::remove(kt::TorrentInterface* tc) void QueueManager::remove(kt::TorrentInterface* tc)

@ -613,8 +613,8 @@ namespace bt
pman = new PeerManager(*tor); pman = new PeerManager(*tor);
//Out() << "Tracker url " << url << " " << url.protocol() << " " << url.prettyURL() << endl; //Out() << "Tracker url " << url << " " << url.protocol() << " " << url.prettyURL() << endl;
psman = new PeerSourceManager(this,pman); psman = new PeerSourceManager(this,pman);
connect(psman,TQT_SIGNAL(statusChanged( const TQString& )), connect(psman,TQ_SIGNAL(statusChanged( const TQString& )),
this,TQT_SLOT(trackerStatusChanged( const TQString& ))); this,TQ_SLOT(trackerStatusChanged( const TQString& )));
// Create chunkmanager, load the index file if it exists // Create chunkmanager, load the index file if it exists
@ -626,7 +626,7 @@ namespace bt
// store the outputdir into the output_path variable, so others can access it // store the outputdir into the output_path variable, so others can access it
connect(cman,TQT_SIGNAL(updateStats()),this,TQT_SLOT(updateStats())); connect(cman,TQ_SIGNAL(updateStats()),this,TQ_SLOT(updateStats()));
if (bt::Exists(datadir + "index")) if (bt::Exists(datadir + "index"))
cman->loadIndexFile(); cman->loadIndexFile();
@ -634,17 +634,17 @@ namespace bt
// create downloader,uploader and choker // create downloader,uploader and choker
down = new Downloader(*tor,*pman,*cman); down = new Downloader(*tor,*pman,*cman);
connect(down,TQT_SIGNAL(ioError(const TQString& )), connect(down,TQ_SIGNAL(ioError(const TQString& )),
this,TQT_SLOT(onIOError(const TQString& ))); this,TQ_SLOT(onIOError(const TQString& )));
up = new Uploader(*cman,*pman); up = new Uploader(*cman,*pman);
choke = new Choker(*pman,*cman); choke = new Choker(*pman,*cman);
connect(pman,TQT_SIGNAL(newPeer(Peer* )),this,TQT_SLOT(onNewPeer(Peer* ))); connect(pman,TQ_SIGNAL(newPeer(Peer* )),this,TQ_SLOT(onNewPeer(Peer* )));
connect(pman,TQT_SIGNAL(peerKilled(Peer* )),this,TQT_SLOT(onPeerRemoved(Peer* ))); connect(pman,TQ_SIGNAL(peerKilled(Peer* )),this,TQ_SLOT(onPeerRemoved(Peer* )));
connect(cman,TQT_SIGNAL(excluded(Uint32, Uint32 )),down,TQT_SLOT(onExcluded(Uint32, Uint32 ))); connect(cman,TQ_SIGNAL(excluded(Uint32, Uint32 )),down,TQ_SLOT(onExcluded(Uint32, Uint32 )));
connect(cman,TQT_SIGNAL(included( Uint32, Uint32 )),down,TQT_SLOT(onIncluded( Uint32, Uint32 ))); connect(cman,TQ_SIGNAL(included( Uint32, Uint32 )),down,TQ_SLOT(onIncluded( Uint32, Uint32 )));
connect(cman,TQT_SIGNAL(corrupted( Uint32 )),this,TQT_SLOT(corrupted( Uint32 ))); connect(cman,TQ_SIGNAL(corrupted( Uint32 )),this,TQ_SLOT(corrupted( Uint32 )));
} }
void TorrentControl::initInternal(QueueManager* qman, void TorrentControl::initInternal(QueueManager* qman,
@ -731,8 +731,8 @@ namespace bt
void TorrentControl::onNewPeer(Peer* p) void TorrentControl::onNewPeer(Peer* p)
{ {
connect(p,TQT_SIGNAL(gotPortPacket( const TQString&, Uint16 )), connect(p,TQ_SIGNAL(gotPortPacket( const TQString&, Uint16 )),
this,TQT_SLOT(onPortPacket( const TQString&, Uint16 ))); this,TQ_SLOT(onPortPacket( const TQString&, Uint16 )));
if (p->getStats().fast_extensions) if (p->getStats().fast_extensions)
{ {
@ -772,8 +772,8 @@ namespace bt
void TorrentControl::onPeerRemoved(Peer* p) void TorrentControl::onPeerRemoved(Peer* p)
{ {
disconnect(p,TQT_SIGNAL(gotPortPacket( const TQString&, Uint16 )), disconnect(p,TQ_SIGNAL(gotPortPacket( const TQString&, Uint16 )),
this,TQT_SLOT(onPortPacket( const TQString&, Uint16 ))); this,TQ_SLOT(onPortPacket( const TQString&, Uint16 )));
if (tmon) if (tmon)
tmon->peerRemoved(p); tmon->peerRemoved(p);
} }
@ -855,7 +855,7 @@ namespace bt
move_data_files_destination_path = nd; move_data_files_destination_path = nd;
if (j) if (j)
{ {
connect(j,TQT_SIGNAL(result(TDEIO::Job*)),this,TQT_SLOT(moveDataFilesJobDone(TDEIO::Job*))); connect(j,TQ_SIGNAL(result(TDEIO::Job*)),this,TQ_SLOT(moveDataFilesJobDone(TDEIO::Job*)));
return true; return true;
} }
else else

@ -84,8 +84,8 @@ namespace bt
void Tracker::timedDelete(int ms) void Tracker::timedDelete(int ms)
{ {
TQTimer::singleShot(ms,this,TQT_SLOT(deleteLater())); TQTimer::singleShot(ms,this,TQ_SLOT(deleteLater()));
connect(this,TQT_SIGNAL(stopDone()),this,TQT_SLOT(deleteLater())); connect(this,TQ_SIGNAL(stopDone()),this,TQ_SLOT(deleteLater()));
} }
} }

@ -51,15 +51,15 @@ namespace bt
transaction_id = 0; transaction_id = 0;
interval = 0; interval = 0;
connect(&conn_timer,TQT_SIGNAL(timeout()),this,TQT_SLOT(onConnTimeout())); connect(&conn_timer,TQ_SIGNAL(timeout()),this,TQ_SLOT(onConnTimeout()));
connect(socket,TQT_SIGNAL(announceRecieved(Int32, const TQByteArray &)), connect(socket,TQ_SIGNAL(announceRecieved(Int32, const TQByteArray &)),
this,TQT_SLOT(announceRecieved(Int32, const TQByteArray& ))); this,TQ_SLOT(announceRecieved(Int32, const TQByteArray& )));
connect(socket,TQT_SIGNAL(connectRecieved(Int32, Int64 )), connect(socket,TQ_SIGNAL(connectRecieved(Int32, Int64 )),
this,TQT_SLOT(connectRecieved(Int32, Int64 ))); this,TQ_SLOT(connectRecieved(Int32, Int64 )));
connect(socket,TQT_SIGNAL(error(Int32, const TQString& )), connect(socket,TQ_SIGNAL(error(Int32, const TQString& )),
this,TQT_SLOT(onError(Int32, const TQString& ))); this,TQ_SLOT(onError(Int32, const TQString& )));
KResolver::resolveAsync(this,TQT_SLOT(onResolverResults(KResolverResults )), KResolver::resolveAsync(this,TQ_SLOT(onResolverResults(KResolverResults )),
url.host(),TQString::number(url.port())); url.host(),TQString::number(url.port()));
} }

@ -42,7 +42,7 @@ namespace bt
{ {
sock = new KNetwork::KDatagramSocket(this); sock = new KNetwork::KDatagramSocket(this);
sock->setAddressReuseable(true); sock->setAddressReuseable(true);
connect(sock,TQT_SIGNAL(readyRead()),this,TQT_SLOT(dataReceived())); connect(sock,TQ_SIGNAL(readyRead()),this,TQ_SLOT(dataReceived()));
int i = 0; int i = 0;
if (port == 0) if (port == 0)
port = 4444; port = 4444;

@ -51,7 +51,7 @@ namespace bt
if (bt::Exists(prev)) // if file exists start the move job if (bt::Exists(prev)) // if file exists start the move job
{ {
TDEIO::Job* sj = TDEIO::file_move(KURL::fromPathOrURL(prev),KURL::fromPathOrURL(curr),-1,true,false,false); TDEIO::Job* sj = TDEIO::file_move(KURL::fromPathOrURL(prev),KURL::fromPathOrURL(curr),-1,true,false,false);
connect(sj,TQT_SIGNAL(result(TDEIO::Job*)),this,TQT_SLOT(moveJobDone(TDEIO::Job* ))); connect(sj,TQ_SIGNAL(result(TDEIO::Job*)),this,TQ_SLOT(moveJobDone(TDEIO::Job* )));
return; return;
} }
else else
@ -65,7 +65,7 @@ namespace bt
// move current log to 1 and zip it // move current log to 1 and zip it
bt::Move(file,file + "-1",true); bt::Move(file,file + "-1",true);
TDEIO::Job* sj = TDEIO::file_move(KURL::fromPathOrURL(file),KURL::fromPathOrURL(file + "-1"),-1,true,false,false); TDEIO::Job* sj = TDEIO::file_move(KURL::fromPathOrURL(file),KURL::fromPathOrURL(file + "-1"),-1,true,false,false);
connect(sj,TQT_SIGNAL(result(TDEIO::Job*)),this,TQT_SLOT(moveJobDone(TDEIO::Job* ))); connect(sj,TQ_SIGNAL(result(TDEIO::Job*)),this,TQ_SLOT(moveJobDone(TDEIO::Job* )));
} }
else else
{ {

@ -34,11 +34,11 @@ namespace bt
sock->enableWrite(true); sock->enableWrite(true);
sock->setTimeout(30000); sock->setTimeout(30000);
sock->setBlocking(false); sock->setBlocking(false);
connect(sock,TQT_SIGNAL(readyRead()),this,TQT_SLOT(onReadyRead())); connect(sock,TQ_SIGNAL(readyRead()),this,TQ_SLOT(onReadyRead()));
connect(sock,TQT_SIGNAL(gotError(int)),this,TQT_SLOT(onError(int ))); connect(sock,TQ_SIGNAL(gotError(int)),this,TQ_SLOT(onError(int )));
connect(sock,TQT_SIGNAL(timedOut()),this,TQT_SLOT(onTimeout())); connect(sock,TQ_SIGNAL(timedOut()),this,TQ_SLOT(onTimeout()));
connect(sock,TQT_SIGNAL(connected(const KResolverEntry&)), connect(sock,TQ_SIGNAL(connected(const KResolverEntry&)),
this, TQT_SLOT(onConnect( const KResolverEntry& ))); this, TQ_SLOT(onConnect( const KResolverEntry& )));
} }

@ -27,7 +27,7 @@ namespace bt
WaitJob::WaitJob(Uint32 millis) : TDEIO::Job(false) WaitJob::WaitJob(Uint32 millis) : TDEIO::Job(false)
{ {
connect(&timer,TQT_SIGNAL(timeout()),this,TQT_SLOT(timerDone())); connect(&timer,TQ_SIGNAL(timeout()),this,TQ_SLOT(timerDone()));
timer.start(millis,true); timer.start(millis,true);
} }
@ -51,8 +51,8 @@ namespace bt
void WaitJob::addExitOperation(kt::ExitOperation* op) void WaitJob::addExitOperation(kt::ExitOperation* op)
{ {
exit_ops.append(op); exit_ops.append(op);
connect(op,TQT_SIGNAL(operationFinished( kt::ExitOperation* )), connect(op,TQ_SIGNAL(operationFinished( kt::ExitOperation* )),
this,TQT_SLOT(operationFinished( kt::ExitOperation* ))); this,TQ_SLOT(operationFinished( kt::ExitOperation* )));
} }
void WaitJob::operationFinished(kt::ExitOperation* op) void WaitJob::operationFinished(kt::ExitOperation* op)

@ -69,13 +69,13 @@ namespace kt
context_menu->setItemEnabled(dnd_keep_id, false); context_menu->setItemEnabled(dnd_keep_id, false);
context_menu->setItemEnabled(dnd_throw_away_id, false); context_menu->setItemEnabled(dnd_throw_away_id, false);
connect(this,TQT_SIGNAL(contextMenu(TDEListView*, TQListViewItem*, const TQPoint& )), connect(this,TQ_SIGNAL(contextMenu(TDEListView*, TQListViewItem*, const TQPoint& )),
this,TQT_SLOT(showContextMenu(TDEListView*, TQListViewItem*, const TQPoint& ))); this,TQ_SLOT(showContextMenu(TDEListView*, TQListViewItem*, const TQPoint& )));
connect(context_menu, TQT_SIGNAL ( activated ( int ) ), this, TQT_SLOT ( contextItem ( int ) ) ); connect(context_menu, TQ_SIGNAL ( activated ( int ) ), this, TQ_SLOT ( contextItem ( int ) ) );
connect(this,TQT_SIGNAL(doubleClicked( TQListViewItem*, const TQPoint&, int )), connect(this,TQ_SIGNAL(doubleClicked( TQListViewItem*, const TQPoint&, int )),
this,TQT_SLOT(onDoubleClicked(TQListViewItem*, const TQPoint&, int))); this,TQ_SLOT(onDoubleClicked(TQListViewItem*, const TQPoint&, int)));
connect(&fill_timer, TQT_SIGNAL(timeout()), this, TQT_SLOT( fillTreePartial() ) ); connect(&fill_timer, TQ_SIGNAL(timeout()), this, TQ_SLOT( fillTreePartial() ) );
setEnabled(false); setEnabled(false);
@ -108,8 +108,8 @@ namespace kt
multi_root->updatePercentageInformation(); multi_root->updatePercentageInformation();
multi_root->updatePreviewInformation(curr_tc); multi_root->updatePreviewInformation(curr_tc);
fill_timer.stop(); fill_timer.stop();
connect(curr_tc,TQT_SIGNAL(missingFilesMarkedDND( kt::TorrentInterface* )), connect(curr_tc,TQ_SIGNAL(missingFilesMarkedDND( kt::TorrentInterface* )),
this,TQT_SLOT(refreshFileTree( kt::TorrentInterface* ))); this,TQ_SLOT(refreshFileTree( kt::TorrentInterface* )));
} }
else else
fill_timer.start(0,true); fill_timer.start(0,true);
@ -141,8 +141,8 @@ namespace kt
item->setPixmap(0,KMimeType::findByPath(s.torrent_name)->pixmap(TDEIcon::Small)); item->setPixmap(0,KMimeType::findByPath(s.torrent_name)->pixmap(TDEIcon::Small));
setEnabled(true); setEnabled(true);
connect(curr_tc,TQT_SIGNAL(missingFilesMarkedDND( kt::TorrentInterface* )), connect(curr_tc,TQ_SIGNAL(missingFilesMarkedDND( kt::TorrentInterface* )),
this,TQT_SLOT(refreshFileTree( kt::TorrentInterface* ))); this,TQ_SLOT(refreshFileTree( kt::TorrentInterface* )));
} }
} }

@ -41,7 +41,7 @@ kt::FloatSpinBox::FloatSpinBox(
{ {
TQSpinBox::setValue(0); TQSpinBox::setValue(0);
setStep( 0.25f ); setStep( 0.25f );
connect(this, TQT_SIGNAL(valueChanged ( int )), this, TQT_SLOT(internalValueChanged( int ))); connect(this, TQ_SIGNAL(valueChanged ( int )), this, TQ_SLOT(internalValueChanged( int )));
setValidator( new LocaleFloatValidator( dynamic_cast<TQSpinBox * > (this) )); setValidator( new LocaleFloatValidator( dynamic_cast<TQSpinBox * > (this) ));
editor()->setAlignment(TQt::AlignRight); editor()->setAlignment(TQt::AlignRight);
} }
@ -61,7 +61,7 @@ kt::FloatSpinBox::FloatSpinBox(
{ {
TQSpinBox::setValue(0); TQSpinBox::setValue(0);
setStep( 0.25 ); setStep( 0.25 );
connect(this, TQT_SIGNAL(valueChanged ( int )), this, TQT_SLOT(internalValueChanged( int ))); connect(this, TQ_SIGNAL(valueChanged ( int )), this, TQ_SLOT(internalValueChanged( int )));
setValidator( new LocaleFloatValidator( dynamic_cast<TQSpinBox * > (this) )); setValidator( new LocaleFloatValidator( dynamic_cast<TQSpinBox * > (this) ));
} }
@ -85,7 +85,7 @@ kt::FloatSpinBox::FloatSpinBox(
TQSpinBox::setValue(0); TQSpinBox::setValue(0);
setValue(0.0f); setValue(0.0f);
setStep( step ); setStep( step );
connect(this, TQT_SIGNAL(valueChanged ( int )), this, TQT_SLOT(internalValueChanged( int ))); connect(this, TQ_SIGNAL(valueChanged ( int )), this, TQ_SLOT(internalValueChanged( int )));
setValidator( new LocaleFloatValidator( this )); setValidator( new LocaleFloatValidator( this ));
} }

@ -216,8 +216,8 @@ namespace kt
tracker_view->changeTC(const_cast<kt::TorrentInterface*>(getGUI()->getCurrentTorrent())); tracker_view->changeTC(const_cast<kt::TorrentInterface*>(getGUI()->getCurrentTorrent()));
// seeing that a merge of the trackers might happen after a torrent has been loaded // seeing that a merge of the trackers might happen after a torrent has been loaded
// we need to update the tracker_view // we need to update the tracker_view
connect(getCore(),TQT_SIGNAL(loadingFinished(const KURL&, bool, bool)), connect(getCore(),TQ_SIGNAL(loadingFinished(const KURL&, bool, bool)),
tracker_view,TQT_SLOT(onLoadingFinished(const KURL&, bool, bool))); tracker_view,TQ_SLOT(onLoadingFinished(const KURL&, bool, bool)));
} }
else if (!show && tracker_view) else if (!show && tracker_view)
{ {

@ -37,8 +37,8 @@ namespace kt
: FileTreeItem(item,name,file) : FileTreeItem(item,name,file)
{ {
perc_complete = 0.0; perc_complete = 0.0;
connect(&file,TQT_SIGNAL(downloadPercentageChanged( float )),this,TQT_SLOT(onPercentageUpdated( float ))); connect(&file,TQ_SIGNAL(downloadPercentageChanged( float )),this,TQ_SLOT(onPercentageUpdated( float )));
connect(&file,TQT_SIGNAL(previewAvailable( bool )),this,TQT_SLOT(onPreviewAvailable( bool ))); connect(&file,TQ_SIGNAL(previewAvailable( bool )),this,TQ_SLOT(onPreviewAvailable( bool )));
} }
IWFileTreeItem::~IWFileTreeItem() IWFileTreeItem::~IWFileTreeItem()

@ -249,9 +249,9 @@ namespace kt
kick_id = menu->insertItem(TDEGlobal::iconLoader()->loadIcon("delete_user", TDEIcon::NoGroup), i18n("to kick", "Kick peer")); kick_id = menu->insertItem(TDEGlobal::iconLoader()->loadIcon("delete_user", TDEIcon::NoGroup), i18n("to kick", "Kick peer"));
ban_id = menu->insertItem(TDEGlobal::iconLoader()->loadIcon("filter",TDEIcon::NoGroup), i18n("to ban", "Ban peer")); ban_id = menu->insertItem(TDEGlobal::iconLoader()->loadIcon("filter",TDEIcon::NoGroup), i18n("to ban", "Ban peer"));
connect(this,TQT_SIGNAL(contextMenu(TDEListView*, TQListViewItem*, const TQPoint& )), connect(this,TQ_SIGNAL(contextMenu(TDEListView*, TQListViewItem*, const TQPoint& )),
this,TQT_SLOT(showContextMenu(TDEListView*, TQListViewItem*, const TQPoint& ))); this,TQ_SLOT(showContextMenu(TDEListView*, TQListViewItem*, const TQPoint& )));
connect(menu, TQT_SIGNAL ( activated ( int ) ), this, TQT_SLOT ( contextItem ( int ) ) ); connect(menu, TQ_SIGNAL ( activated ( int ) ), this, TQ_SLOT ( contextItem ( int ) ) );
setFrameShape(TQFrame::NoFrame); setFrameShape(TQFrame::NoFrame);
} }

@ -46,15 +46,15 @@ namespace kt
maxRatio->setMinValue(0.0f); maxRatio->setMinValue(0.0f);
maxRatio->setMaxValue(100.0f); maxRatio->setMaxValue(100.0f);
maxRatio->setStep(0.1f); maxRatio->setStep(0.1f);
connect(maxRatio, TQT_SIGNAL(valueHasChanged()), this, TQT_SLOT(maxRatioReturnPressed())); connect(maxRatio, TQ_SIGNAL(valueHasChanged()), this, TQ_SLOT(maxRatioReturnPressed()));
connect(useLimit, TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( useLimitToggled(bool) ) ); connect(useLimit, TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( useLimitToggled(bool) ) );
maxTime->setMinValue(0.0f); maxTime->setMinValue(0.0f);
maxTime->setMaxValue(10000000.0f); maxTime->setMaxValue(10000000.0f);
maxTime->setStep(0.05f); maxTime->setStep(0.05f);
maxTime->setSpecialValueText(i18n("No limit")); maxTime->setSpecialValueText(i18n("No limit"));
connect(useTimeLimit,TQT_SIGNAL(toggled(bool)), this,TQT_SLOT(useTimeLimitToggled(bool))); connect(useTimeLimit,TQ_SIGNAL(toggled(bool)), this,TQ_SLOT(useTimeLimitToggled(bool)));
connect(maxTime,TQT_SIGNAL(valueHasChanged()), this, TQT_SLOT(timeValueChanged())); connect(maxTime,TQ_SIGNAL(valueHasChanged()), this, TQ_SLOT(timeValueChanged()));
int h = (int)ceil(fontMetrics().height()*1.25); int h = (int)ceil(fontMetrics().height()*1.25);
m_chunk_bar->setFixedHeight(h); m_chunk_bar->setFixedHeight(h);

@ -52,8 +52,8 @@ namespace kt
r = m_data_url; r = m_data_url;
r->setMode(KFile::File|KFile::Directory|KFile::LocalOnly); r->setMode(KFile::File|KFile::Directory|KFile::LocalOnly);
connect(m_import_btn,TQT_SIGNAL(clicked()),this,TQT_SLOT(onImport())); connect(m_import_btn,TQ_SIGNAL(clicked()),this,TQ_SLOT(onImport()));
connect(m_cancel_btn,TQT_SIGNAL(clicked()),this,TQT_SLOT(reject())); connect(m_cancel_btn,TQ_SIGNAL(clicked()),this,TQ_SLOT(reject()));
m_progress->setEnabled(false); m_progress->setEnabled(false);
} }
@ -226,7 +226,7 @@ namespace kt
{ {
// download the torrent file // download the torrent file
TDEIO::StoredTransferJob* j = TDEIO::storedGet(tor_url); TDEIO::StoredTransferJob* j = TDEIO::storedGet(tor_url);
connect(j,TQT_SIGNAL(result(TDEIO::Job* )),this,TQT_SLOT(onTorrentGetReult(TDEIO::Job*))); connect(j,TQ_SIGNAL(result(TDEIO::Job* )),this,TQ_SLOT(onTorrentGetReult(TDEIO::Job*)));
} }
else else
{ {

@ -54,7 +54,7 @@ namespace kt
void PartFileImportPlugin::load() void PartFileImportPlugin::load()
{ {
import_action = new TDEAction(i18n("Import existing download" ), 0, this, import_action = new TDEAction(i18n("Import existing download" ), 0, this,
TQT_SLOT(onImport()), actionCollection(), "partfileimport" ); TQ_SLOT(onImport()), actionCollection(), "partfileimport" );
} }
void PartFileImportPlugin::unload() void PartFileImportPlugin::unload()

@ -112,9 +112,9 @@ void Image::getPixmap()
d->pixmapBuffer->open(IO_WriteOnly); d->pixmapBuffer->open(IO_WriteOnly);
d->job = TDEIO::get(d->url, false, false); d->job = TDEIO::get(d->url, false, false);
connect(d->job, TQT_SIGNAL(data(TDEIO::Job *, const TQByteArray &)), connect(d->job, TQ_SIGNAL(data(TDEIO::Job *, const TQByteArray &)),
this, TQT_SLOT(slotData(TDEIO::Job *, const TQByteArray &))); this, TQ_SLOT(slotData(TDEIO::Job *, const TQByteArray &)));
connect(d->job, TQT_SIGNAL(result(TDEIO::Job *)), this, TQT_SLOT(slotResult(TDEIO::Job *))); connect(d->job, TQ_SIGNAL(result(TDEIO::Job *)), this, TQ_SLOT(slotResult(TDEIO::Job *)));
} }
void Image::slotData(TDEIO::Job *, const TQByteArray &data) void Image::slotData(TDEIO::Job *, const TQByteArray &data)

@ -83,13 +83,13 @@ void FileRetriever::retrieveData(const KURL &url)
d->job = TDEIO::get(u, !m_useCache, false); d->job = TDEIO::get(u, !m_useCache, false);
TQTimer::singleShot(1000*90, this, TQT_SLOT(slotTimeout())); TQTimer::singleShot(1000*90, this, TQ_SLOT(slotTimeout()));
connect(d->job, TQT_SIGNAL(data(TDEIO::Job *, const TQByteArray &)), connect(d->job, TQ_SIGNAL(data(TDEIO::Job *, const TQByteArray &)),
TQT_SLOT(slotData(TDEIO::Job *, const TQByteArray &))); TQ_SLOT(slotData(TDEIO::Job *, const TQByteArray &)));
connect(d->job, TQT_SIGNAL(result(TDEIO::Job *)), TQT_SLOT(slotResult(TDEIO::Job *))); connect(d->job, TQ_SIGNAL(result(TDEIO::Job *)), TQ_SLOT(slotResult(TDEIO::Job *)));
connect(d->job, TQT_SIGNAL(permanentRedirection(TDEIO::Job *, const KURL &, const KURL &)), connect(d->job, TQ_SIGNAL(permanentRedirection(TDEIO::Job *, const KURL &, const KURL &)),
TQT_SLOT(slotPermanentRedirection(TDEIO::Job *, const KURL &, const KURL &))); TQ_SLOT(slotPermanentRedirection(TDEIO::Job *, const KURL &, const KURL &)));
} }
void FileRetriever::slotTimeout() void FileRetriever::slotTimeout()
@ -179,10 +179,10 @@ void OutputRetriever::retrieveData(const KURL &url)
d->buffer->open(IO_WriteOnly); d->buffer->open(IO_WriteOnly);
d->process = new KShellProcess(); d->process = new KShellProcess();
connect(d->process, TQT_SIGNAL(processExited(TDEProcess *)), connect(d->process, TQ_SIGNAL(processExited(TDEProcess *)),
TQT_SLOT(slotExited(TDEProcess *))); TQ_SLOT(slotExited(TDEProcess *)));
connect(d->process, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int)), connect(d->process, TQ_SIGNAL(receivedStdout(TDEProcess *, char *, int)),
TQT_SLOT(slotOutput(TDEProcess *, char *, int))); TQ_SLOT(slotOutput(TDEProcess *, char *, int)));
*d->process << url.path(); *d->process << url.path();
d->process->start(TDEProcess::NotifyOnExit, TDEProcess::Stdout); d->process->start(TDEProcess::NotifyOnExit, TDEProcess::Stdout);
} }
@ -240,7 +240,7 @@ Loader *Loader::create()
Loader *Loader::create(TQObject *object, const char *slot) Loader *Loader::create(TQObject *object, const char *slot)
{ {
Loader *loader = create(); Loader *loader = create();
connect(loader, TQT_SIGNAL(loadingComplete(Loader *, Document, Status)), connect(loader, TQ_SIGNAL(loadingComplete(Loader *, Document, Status)),
object, slot); object, slot);
return loader; return loader;
} }
@ -262,8 +262,8 @@ void Loader::loadFrom(const KURL &url, DataRetriever *retriever)
d->url=url; d->url=url;
d->retriever = retriever; d->retriever = retriever;
connect(d->retriever, TQT_SIGNAL(dataRetrieved(const TQByteArray &, bool)), connect(d->retriever, TQ_SIGNAL(dataRetrieved(const TQByteArray &, bool)),
this, TQT_SLOT(slotRetrieverDone(const TQByteArray &, bool))); this, TQ_SLOT(slotRetrieverDone(const TQByteArray &, bool)));
d->retriever->retrieveData(url); d->retriever->retrieveData(url);
} }

@ -209,8 +209,8 @@ namespace RSS
* *
* \code * \code
* Loader *loader = Loader::create(); * Loader *loader = Loader::create();
* connect(loader, TQT_SIGNAL(loadingComplete(Loader *, Document, Status)), * connect(loader, TQ_SIGNAL(loadingComplete(Loader *, Document, Status)),
* this, TQT_SLOT(slotLoadingComplete(Loader *, Document, Status))); * this, TQ_SLOT(slotLoadingComplete(Loader *, Document, Status)));
* loader->loadFrom("http://www.blah.org/foobar.rdf", new FileRetriever); * loader->loadFrom("http://www.blah.org/foobar.rdf", new FileRetriever);
* \endcode * \endcode
* *

@ -19,8 +19,8 @@ static const TDECmdLineOptions options[] =
void Tester::test( const TQString &url ) void Tester::test( const TQString &url )
{ {
Loader *loader = Loader::create(); Loader *loader = Loader::create();
connect( loader, TQT_SIGNAL( loadingComplete( Loader *, Document, Status ) ), connect( loader, TQ_SIGNAL( loadingComplete( Loader *, Document, Status ) ),
this, TQT_SLOT( slotLoadingComplete( Loader *, Document, Status ) ) ); this, TQ_SLOT( slotLoadingComplete( Loader *, Document, Status ) ) );
loader->loadFrom( url, new FileRetriever ); loader->loadFrom( url, new FileRetriever );
} }

@ -48,8 +48,8 @@ namespace kt
feedLoading = false; feedLoading = false;
loadArticles(); loadArticles();
connect(&refreshTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT( refreshFeed() ) ); connect(&refreshTimer, TQ_SIGNAL(timeout()), this, TQ_SLOT( refreshFeed() ) );
connect(this, TQT_SIGNAL(articlesChanged(const RssArticle::List&)), this, TQT_SLOT( saveArticles() ) ); connect(this, TQ_SIGNAL(articlesChanged(const RssArticle::List&)), this, TQ_SLOT( saveArticles() ) );
startFeed(); startFeed();
} }
@ -261,8 +261,8 @@ namespace kt
feedLoading = true; feedLoading = true;
cleanArticles(); cleanArticles();
Loader * feedLoader = Loader::create(); Loader * feedLoader = Loader::create();
connect( feedLoader, TQT_SIGNAL( loadingComplete( Loader *, Document, Status ) ), connect( feedLoader, TQ_SIGNAL( loadingComplete( Loader *, Document, Status ) ),
this, TQT_SLOT( feedLoaded( Loader *, Document, Status ) ) ); this, TQ_SLOT( feedLoaded( Loader *, Document, Status ) ) );
feedLoader->loadFrom( m_feedUrl, new FileRetriever ); feedLoader->loadFrom( m_feedUrl, new FileRetriever );
} }
@ -313,8 +313,8 @@ namespace kt
tqDebug( "There was and error loading the feed\n"); tqDebug( "There was and error loading the feed\n");
} }
disconnect( feedLoader, TQT_SIGNAL( loadingComplete( Loader *, Document, Status ) ), disconnect( feedLoader, TQ_SIGNAL( loadingComplete( Loader *, Document, Status ) ),
this, TQT_SLOT( feedLoaded( Loader *, Document, Status ) ) ); this, TQ_SLOT( feedLoaded( Loader *, Document, Status ) ) );
feedLoader->deleteLater(); feedLoader->deleteLater();
} }

@ -94,37 +94,37 @@ namespace kt
loadFilterList(); loadFilterList();
//connect the buttons //connect the buttons
connect(newFeed, TQT_SIGNAL(clicked()), this, TQT_SLOT(addNewFeed() ) ); connect(newFeed, TQ_SIGNAL(clicked()), this, TQ_SLOT(addNewFeed() ) );
connect(deleteFeed, TQT_SIGNAL(clicked()), this, TQT_SLOT(deleteSelectedFeed() ) ); connect(deleteFeed, TQ_SIGNAL(clicked()), this, TQ_SLOT(deleteSelectedFeed() ) );
connect(newAcceptFilter, TQT_SIGNAL(clicked()), this, TQT_SLOT(addNewAcceptFilter() ) ); connect(newAcceptFilter, TQ_SIGNAL(clicked()), this, TQ_SLOT(addNewAcceptFilter() ) );
connect(deleteAcceptFilter, TQT_SIGNAL(clicked()), this, TQT_SLOT(deleteSelectedAcceptFilter() ) ); connect(deleteAcceptFilter, TQ_SIGNAL(clicked()), this, TQ_SLOT(deleteSelectedAcceptFilter() ) );
connect(newRejectFilter, TQT_SIGNAL(clicked()), this, TQT_SLOT(addNewRejectFilter() ) ); connect(newRejectFilter, TQ_SIGNAL(clicked()), this, TQ_SLOT(addNewRejectFilter() ) );
connect(deleteRejectFilter, TQT_SIGNAL(clicked()), this, TQT_SLOT(deleteSelectedRejectFilter() ) ); connect(deleteRejectFilter, TQ_SIGNAL(clicked()), this, TQ_SLOT(deleteSelectedRejectFilter() ) );
//connect the changing of the active feed //connect the changing of the active feed
connect(feedlist, TQT_SIGNAL(selectionChanged()), this, TQT_SLOT(changedActiveFeed()) ); connect(feedlist, TQ_SIGNAL(selectionChanged()), this, TQ_SLOT(changedActiveFeed()) );
//connect the changing of the url to enable the refresh button //connect the changing of the url to enable the refresh button
connect(feedUrl, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(changedFeedUrl()) ); connect(feedUrl, TQ_SIGNAL(textChanged(const TQString &)), this, TQ_SLOT(changedFeedUrl()) );
//connect the changing of the filters //connect the changing of the filters
connect(acceptFilterList, TQT_SIGNAL(selectionChanged()), this, TQT_SLOT(changedActiveAcceptFilter()) ); connect(acceptFilterList, TQ_SIGNAL(selectionChanged()), this, TQ_SLOT(changedActiveAcceptFilter()) );
connect(rejectFilterList, TQT_SIGNAL(selectionChanged()), this, TQT_SLOT(changedActiveRejectFilter()) ); connect(rejectFilterList, TQ_SIGNAL(selectionChanged()), this, TQ_SLOT(changedActiveRejectFilter()) );
//connect the selection and downloading of articles //connect the selection and downloading of articles
connect(feedArticles, TQT_SIGNAL(selectionChanged()), this, TQT_SLOT(changedArticleSelection()) ); connect(feedArticles, TQ_SIGNAL(selectionChanged()), this, TQ_SLOT(changedArticleSelection()) );
connect(downloadArticle, TQT_SIGNAL(clicked()), this, TQT_SLOT(downloadSelectedArticles()) ); connect(downloadArticle, TQ_SIGNAL(clicked()), this, TQ_SLOT(downloadSelectedArticles()) );
//connect the selection, downloading and deletion of matches //connect the selection, downloading and deletion of matches
connect(filterMatches, TQT_SIGNAL(selectionChanged()), this, TQT_SLOT(changedMatchSelection()) ); connect(filterMatches, TQ_SIGNAL(selectionChanged()), this, TQ_SLOT(changedMatchSelection()) );
connect(downloadFilterMatch, TQT_SIGNAL(clicked()), this, TQT_SLOT(downloadSelectedMatches()) ); connect(downloadFilterMatch, TQ_SIGNAL(clicked()), this, TQ_SLOT(downloadSelectedMatches()) );
connect(deleteFilterMatch, TQT_SIGNAL(clicked()), this, TQT_SLOT(deleteSelectedMatches()) ); connect(deleteFilterMatch, TQ_SIGNAL(clicked()), this, TQ_SLOT(deleteSelectedMatches()) );
//connect the test text update to the slot //connect the test text update to the slot
connect(testText, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(testTextChanged()) ); connect(testText, TQ_SIGNAL(textChanged(const TQString &)), this, TQ_SLOT(testTextChanged()) );
connect(testTestText, TQT_SIGNAL(clicked()), this, TQT_SLOT(testFilter()) ); connect(testTestText, TQ_SIGNAL(clicked()), this, TQ_SLOT(testFilter()) );
changedActiveFeed(); changedActiveFeed();
changedActiveAcceptFilter(); changedActiveAcceptFilter();
@ -159,65 +159,65 @@ namespace kt
void RssFeedManager::connectFeed(int index) void RssFeedManager::connectFeed(int index)
{ {
connect(feedTitle, TQT_SIGNAL(textChanged(const TQString &)), feeds.at(index), TQT_SLOT(setTitle(const TQString &) ) ); connect(feedTitle, TQ_SIGNAL(textChanged(const TQString &)), feeds.at(index), TQ_SLOT(setTitle(const TQString &) ) );
connect(feeds.at(index), TQT_SIGNAL(titleChanged(const TQString &)), this, TQT_SLOT(setFeedTitle(const TQString &) ) ); connect(feeds.at(index), TQ_SIGNAL(titleChanged(const TQString &)), this, TQ_SLOT(setFeedTitle(const TQString &) ) );
//url //url
connect(feedUrl, TQT_SIGNAL(textChanged(const TQString &)), feeds.at(index), TQT_SLOT(setFeedUrl(const TQString&) ) ); connect(feedUrl, TQ_SIGNAL(textChanged(const TQString &)), feeds.at(index), TQ_SLOT(setFeedUrl(const TQString&) ) );
connect(feeds.at(index), TQT_SIGNAL(feedUrlChanged(const KURL&)), feedUrl, TQT_SLOT(setKURL(const KURL&) ) ); connect(feeds.at(index), TQ_SIGNAL(feedUrlChanged(const KURL&)), feedUrl, TQ_SLOT(setKURL(const KURL&) ) );
//articleAge //articleAge
connect(feedArticleAge, TQT_SIGNAL(valueChanged(int)), feeds.at(index), TQT_SLOT(setArticleAge(int) ) ); connect(feedArticleAge, TQ_SIGNAL(valueChanged(int)), feeds.at(index), TQ_SLOT(setArticleAge(int) ) );
connect(feeds.at(index), TQT_SIGNAL(articleAgeChanged(int)), feedArticleAge, TQT_SLOT(setValue(int) ) ); connect(feeds.at(index), TQ_SIGNAL(articleAgeChanged(int)), feedArticleAge, TQ_SLOT(setValue(int) ) );
//active //active
connect(feedActive, TQT_SIGNAL(toggled(bool)), feeds.at(index), TQT_SLOT(setActive(bool) ) ); connect(feedActive, TQ_SIGNAL(toggled(bool)), feeds.at(index), TQ_SLOT(setActive(bool) ) );
connect(feeds.at(index), TQT_SIGNAL(activeChanged(bool)), feedActive, TQT_SLOT(setChecked(bool) ) ); connect(feeds.at(index), TQ_SIGNAL(activeChanged(bool)), feedActive, TQ_SLOT(setChecked(bool) ) );
//autoRefresh //autoRefresh
connect(feedAutoRefresh, TQT_SIGNAL(valueChanged(const TQTime&)), feeds.at(index), TQT_SLOT(setAutoRefresh(const TQTime&) ) ); connect(feedAutoRefresh, TQ_SIGNAL(valueChanged(const TQTime&)), feeds.at(index), TQ_SLOT(setAutoRefresh(const TQTime&) ) );
connect(feeds.at(index), TQT_SIGNAL(autoRefreshChanged(const TQTime&)), feedAutoRefresh, TQT_SLOT(setTime(const TQTime&) ) ); connect(feeds.at(index), TQ_SIGNAL(autoRefreshChanged(const TQTime&)), feedAutoRefresh, TQ_SLOT(setTime(const TQTime&) ) );
//ignoreTTL //ignoreTTL
connect(feedIgnoreTTL, TQT_SIGNAL(toggled(bool)), feeds.at(index), TQT_SLOT(setIgnoreTTL(bool) ) ); connect(feedIgnoreTTL, TQ_SIGNAL(toggled(bool)), feeds.at(index), TQ_SLOT(setIgnoreTTL(bool) ) );
connect(feeds.at(index), TQT_SIGNAL(ignoreTTLChanged(bool)), feedIgnoreTTL, TQT_SLOT(setChecked(bool) ) ); connect(feeds.at(index), TQ_SIGNAL(ignoreTTLChanged(bool)), feedIgnoreTTL, TQ_SLOT(setChecked(bool) ) );
//articles //articles
connect(feeds.at(index), TQT_SIGNAL(articlesChanged(const RssArticle::List&)), this, TQT_SLOT(updateArticles(const RssArticle::List&) ) ); connect(feeds.at(index), TQ_SIGNAL(articlesChanged(const RssArticle::List&)), this, TQ_SLOT(updateArticles(const RssArticle::List&) ) );
//connect the refresh button //connect the refresh button
connect(refreshFeed, TQT_SIGNAL(clicked()), feeds.at(index), TQT_SLOT(refreshFeed()) ); connect(refreshFeed, TQ_SIGNAL(clicked()), feeds.at(index), TQ_SLOT(refreshFeed()) );
} }
void RssFeedManager::disconnectFeed(int index) void RssFeedManager::disconnectFeed(int index)
{ {
disconnect(feedTitle, TQT_SIGNAL(textChanged(const TQString &)), feeds.at(index), TQT_SLOT(setTitle(const TQString &) ) ); disconnect(feedTitle, TQ_SIGNAL(textChanged(const TQString &)), feeds.at(index), TQ_SLOT(setTitle(const TQString &) ) );
disconnect(feeds.at(index), TQT_SIGNAL(titleChanged(const TQString &)), this, TQT_SLOT(setFeedTitle(const TQString &) ) ); disconnect(feeds.at(index), TQ_SIGNAL(titleChanged(const TQString &)), this, TQ_SLOT(setFeedTitle(const TQString &) ) );
//url //url
disconnect(feedUrl, TQT_SIGNAL(textChanged(const TQString &)), feeds.at(index), TQT_SLOT(setFeedUrl(const TQString&) ) ); disconnect(feedUrl, TQ_SIGNAL(textChanged(const TQString &)), feeds.at(index), TQ_SLOT(setFeedUrl(const TQString&) ) );
disconnect(feeds.at(index), TQT_SIGNAL(feedUrlChanged(const KURL&)), feedUrl, TQT_SLOT(setKURL(const KURL&) ) ); disconnect(feeds.at(index), TQ_SIGNAL(feedUrlChanged(const KURL&)), feedUrl, TQ_SLOT(setKURL(const KURL&) ) );
//articleAge //articleAge
disconnect(feedArticleAge, TQT_SIGNAL(valueChanged(int)), feeds.at(index), TQT_SLOT(setArticleAge(int) ) ); disconnect(feedArticleAge, TQ_SIGNAL(valueChanged(int)), feeds.at(index), TQ_SLOT(setArticleAge(int) ) );
disconnect(feeds.at(index), TQT_SIGNAL(articleAgeChanged(int)), feedArticleAge, TQT_SLOT(setValue(int) ) ); disconnect(feeds.at(index), TQ_SIGNAL(articleAgeChanged(int)), feedArticleAge, TQ_SLOT(setValue(int) ) );
//active //active
disconnect(feedActive, TQT_SIGNAL(toggled(bool)), feeds.at(index), TQT_SLOT(setActive(bool) ) ); disconnect(feedActive, TQ_SIGNAL(toggled(bool)), feeds.at(index), TQ_SLOT(setActive(bool) ) );
disconnect(feeds.at(index), TQT_SIGNAL(activeChanged(bool)), feedActive, TQT_SLOT(setChecked(bool) ) ); disconnect(feeds.at(index), TQ_SIGNAL(activeChanged(bool)), feedActive, TQ_SLOT(setChecked(bool) ) );
//autoRefresh //autoRefresh
disconnect(feedAutoRefresh, TQT_SIGNAL(valueChanged(const TQTime&)), feeds.at(index), TQT_SLOT(setAutoRefresh(const TQTime&) ) ); disconnect(feedAutoRefresh, TQ_SIGNAL(valueChanged(const TQTime&)), feeds.at(index), TQ_SLOT(setAutoRefresh(const TQTime&) ) );
disconnect(feeds.at(index), TQT_SIGNAL(autoRefreshChanged(const TQTime&)), feedAutoRefresh, TQT_SLOT(setTime(const TQTime&) ) ); disconnect(feeds.at(index), TQ_SIGNAL(autoRefreshChanged(const TQTime&)), feedAutoRefresh, TQ_SLOT(setTime(const TQTime&) ) );
//ignoreTTL //ignoreTTL
disconnect(feedIgnoreTTL, TQT_SIGNAL(toggled(bool)), feeds.at(index), TQT_SLOT(setIgnoreTTL(bool) ) ); disconnect(feedIgnoreTTL, TQ_SIGNAL(toggled(bool)), feeds.at(index), TQ_SLOT(setIgnoreTTL(bool) ) );
disconnect(feeds.at(index), TQT_SIGNAL(ignoreTTLChanged(bool)), feedIgnoreTTL, TQT_SLOT(setChecked(bool) ) ); disconnect(feeds.at(index), TQ_SIGNAL(ignoreTTLChanged(bool)), feedIgnoreTTL, TQ_SLOT(setChecked(bool) ) );
//articles //articles
disconnect(feeds.at(index), TQT_SIGNAL(articlesChanged(const RssArticle::List&)), this, TQT_SLOT(updateArticles(const RssArticle::List&) ) ); disconnect(feeds.at(index), TQ_SIGNAL(articlesChanged(const RssArticle::List&)), this, TQ_SLOT(updateArticles(const RssArticle::List&) ) );
disconnect(refreshFeed, TQT_SIGNAL(clicked()), feeds.at(index), TQT_SLOT(refreshFeed()) ); disconnect(refreshFeed, TQ_SIGNAL(clicked()), feeds.at(index), TQ_SLOT(refreshFeed()) );
} }
void RssFeedManager::connectFilter(int index, bool acceptFilter) void RssFeedManager::connectFilter(int index, bool acceptFilter)
@ -225,69 +225,69 @@ namespace kt
if (acceptFilter) if (acceptFilter)
{ {
//title //title
connect(filterTitle, TQT_SIGNAL(textChanged(const TQString &)), acceptFilters.at(index), TQT_SLOT(setTitle(const TQString &) ) ); connect(filterTitle, TQ_SIGNAL(textChanged(const TQString &)), acceptFilters.at(index), TQ_SLOT(setTitle(const TQString &) ) );
connect(acceptFilters.at(index), TQT_SIGNAL(titleChanged(const TQString &)), this, TQT_SLOT(setFilterTitle(const TQString &) ) ); connect(acceptFilters.at(index), TQ_SIGNAL(titleChanged(const TQString &)), this, TQ_SLOT(setFilterTitle(const TQString &) ) );
//active //active
connect(filterActive, TQT_SIGNAL(toggled(bool)), acceptFilters.at(index), TQT_SLOT(setActive(bool) ) ); connect(filterActive, TQ_SIGNAL(toggled(bool)), acceptFilters.at(index), TQ_SLOT(setActive(bool) ) );
connect(acceptFilters.at(index), TQT_SIGNAL(activeChanged(bool)), filterActive, TQT_SLOT(setChecked(bool) ) ); connect(acceptFilters.at(index), TQ_SIGNAL(activeChanged(bool)), filterActive, TQ_SLOT(setChecked(bool) ) );
//regExps //regExps
connect(filterRegExps, TQT_SIGNAL(changed()), this, TQT_SLOT(updateRegExps()) ); connect(filterRegExps, TQ_SIGNAL(changed()), this, TQ_SLOT(updateRegExps()) );
//series //series
connect(filterSeries, TQT_SIGNAL(toggled(bool)), acceptFilters.at(index), TQT_SLOT(setSeries(bool) ) ); connect(filterSeries, TQ_SIGNAL(toggled(bool)), acceptFilters.at(index), TQ_SLOT(setSeries(bool) ) );
connect(acceptFilters.at(index), TQT_SIGNAL(seriesChanged(bool)), filterSeries, TQT_SLOT(setChecked(bool) ) ); connect(acceptFilters.at(index), TQ_SIGNAL(seriesChanged(bool)), filterSeries, TQ_SLOT(setChecked(bool) ) );
//sansEpisode //sansEpisode
connect(filterSansEpisode, TQT_SIGNAL(toggled(bool)), acceptFilters.at(index), TQT_SLOT(setSansEpisode(bool) ) ); connect(filterSansEpisode, TQ_SIGNAL(toggled(bool)), acceptFilters.at(index), TQ_SLOT(setSansEpisode(bool) ) );
connect(acceptFilters.at(index), TQT_SIGNAL(sansEpisodeChanged(bool)), filterSansEpisode, TQT_SLOT(setChecked(bool) ) ); connect(acceptFilters.at(index), TQ_SIGNAL(sansEpisodeChanged(bool)), filterSansEpisode, TQ_SLOT(setChecked(bool) ) );
//minSeason //minSeason
connect(filterMinSeason, TQT_SIGNAL(valueChanged(int)), acceptFilters.at(index), TQT_SLOT(setMinSeason(int) ) ); connect(filterMinSeason, TQ_SIGNAL(valueChanged(int)), acceptFilters.at(index), TQ_SLOT(setMinSeason(int) ) );
connect(acceptFilters.at(index), TQT_SIGNAL(minSeasonChanged(int)), filterMinSeason, TQT_SLOT(setValue(int) ) ); connect(acceptFilters.at(index), TQ_SIGNAL(minSeasonChanged(int)), filterMinSeason, TQ_SLOT(setValue(int) ) );
//minEpisode //minEpisode
connect(filterMinEpisode, TQT_SIGNAL(valueChanged(int)), acceptFilters.at(index), TQT_SLOT(setMinEpisode(int) ) ); connect(filterMinEpisode, TQ_SIGNAL(valueChanged(int)), acceptFilters.at(index), TQ_SLOT(setMinEpisode(int) ) );
connect(acceptFilters.at(index), TQT_SIGNAL(minEpisodeChanged(int)), filterMinEpisode, TQT_SLOT(setValue(int) ) ); connect(acceptFilters.at(index), TQ_SIGNAL(minEpisodeChanged(int)), filterMinEpisode, TQ_SLOT(setValue(int) ) );
//maxSeason //maxSeason
connect(filterMaxSeason, TQT_SIGNAL(valueChanged(int)), acceptFilters.at(index), TQT_SLOT(setMaxSeason(int) ) ); connect(filterMaxSeason, TQ_SIGNAL(valueChanged(int)), acceptFilters.at(index), TQ_SLOT(setMaxSeason(int) ) );
connect(acceptFilters.at(index), TQT_SIGNAL(maxSeasonChanged(int)), filterMaxSeason, TQT_SLOT(setValue(int) ) ); connect(acceptFilters.at(index), TQ_SIGNAL(maxSeasonChanged(int)), filterMaxSeason, TQ_SLOT(setValue(int) ) );
//maxEpisode //maxEpisode
connect(filterMaxEpisode, TQT_SIGNAL(valueChanged(int)), acceptFilters.at(index), TQT_SLOT(setMaxEpisode(int) ) ); connect(filterMaxEpisode, TQ_SIGNAL(valueChanged(int)), acceptFilters.at(index), TQ_SLOT(setMaxEpisode(int) ) );
connect(acceptFilters.at(index), TQT_SIGNAL(maxEpisodeChanged(int)), filterMaxEpisode, TQT_SLOT(setValue(int) ) ); connect(acceptFilters.at(index), TQ_SIGNAL(maxEpisodeChanged(int)), filterMaxEpisode, TQ_SLOT(setValue(int) ) );
//matches //matches
connect(acceptFilters.at(index), TQT_SIGNAL(matchesChanged(const TQValueList<FilterMatch>&)), this, TQT_SLOT(updateMatches(const TQValueList<FilterMatch>&) ) ); connect(acceptFilters.at(index), TQ_SIGNAL(matchesChanged(const TQValueList<FilterMatch>&)), this, TQ_SLOT(updateMatches(const TQValueList<FilterMatch>&) ) );
connect(processFilter, TQT_SIGNAL(clicked()), acceptFilters.at(index), TQT_SIGNAL(rescanFilter()) ); connect(processFilter, TQ_SIGNAL(clicked()), acceptFilters.at(index), TQ_SIGNAL(rescanFilter()) );
} }
else else
{ {
//title //title
connect(filterTitle, TQT_SIGNAL(textChanged(const TQString &)), rejectFilters.at(index), TQT_SLOT(setTitle(const TQString &) ) ); connect(filterTitle, TQ_SIGNAL(textChanged(const TQString &)), rejectFilters.at(index), TQ_SLOT(setTitle(const TQString &) ) );
connect(rejectFilters.at(index), TQT_SIGNAL(titleChanged(const TQString &)), this, TQT_SLOT(setFilterTitle(const TQString &) ) ); connect(rejectFilters.at(index), TQ_SIGNAL(titleChanged(const TQString &)), this, TQ_SLOT(setFilterTitle(const TQString &) ) );
//active //active
connect(filterActive, TQT_SIGNAL(toggled(bool)), rejectFilters.at(index), TQT_SLOT(setActive(bool) ) ); connect(filterActive, TQ_SIGNAL(toggled(bool)), rejectFilters.at(index), TQ_SLOT(setActive(bool) ) );
connect(rejectFilters.at(index), TQT_SIGNAL(activeChanged(bool)), filterActive, TQT_SLOT(setChecked(bool) ) ); connect(rejectFilters.at(index), TQ_SIGNAL(activeChanged(bool)), filterActive, TQ_SLOT(setChecked(bool) ) );
//regExps //regExps
connect(filterRegExps, TQT_SIGNAL(changed()), this, TQT_SLOT(updateRegExps()) ); connect(filterRegExps, TQ_SIGNAL(changed()), this, TQ_SLOT(updateRegExps()) );
//series //series
connect(filterSeries, TQT_SIGNAL(toggled(bool)), rejectFilters.at(index), TQT_SLOT(setSeries(bool) ) ); connect(filterSeries, TQ_SIGNAL(toggled(bool)), rejectFilters.at(index), TQ_SLOT(setSeries(bool) ) );
connect(rejectFilters.at(index), TQT_SIGNAL(seriesChanged(bool)), filterSeries, TQT_SLOT(setChecked(bool) ) ); connect(rejectFilters.at(index), TQ_SIGNAL(seriesChanged(bool)), filterSeries, TQ_SLOT(setChecked(bool) ) );
//sansEpisode //sansEpisode
connect(filterSansEpisode, TQT_SIGNAL(toggled(bool)), rejectFilters.at(index), TQT_SLOT(setSansEpisode(bool) ) ); connect(filterSansEpisode, TQ_SIGNAL(toggled(bool)), rejectFilters.at(index), TQ_SLOT(setSansEpisode(bool) ) );
connect(rejectFilters.at(index), TQT_SIGNAL(sansEpisodeChanged(bool)), filterSansEpisode, TQT_SLOT(setChecked(bool) ) ); connect(rejectFilters.at(index), TQ_SIGNAL(sansEpisodeChanged(bool)), filterSansEpisode, TQ_SLOT(setChecked(bool) ) );
//minSeason //minSeason
connect(filterMinSeason, TQT_SIGNAL(valueChanged(int)), rejectFilters.at(index), TQT_SLOT(setMinSeason(int) ) ); connect(filterMinSeason, TQ_SIGNAL(valueChanged(int)), rejectFilters.at(index), TQ_SLOT(setMinSeason(int) ) );
connect(rejectFilters.at(index), TQT_SIGNAL(minSeasonChanged(int)), filterMinSeason, TQT_SLOT(setValue(int) ) ); connect(rejectFilters.at(index), TQ_SIGNAL(minSeasonChanged(int)), filterMinSeason, TQ_SLOT(setValue(int) ) );
//minEpisode //minEpisode
connect(filterMinEpisode, TQT_SIGNAL(valueChanged(int)), rejectFilters.at(index), TQT_SLOT(setMinEpisode(int) ) ); connect(filterMinEpisode, TQ_SIGNAL(valueChanged(int)), rejectFilters.at(index), TQ_SLOT(setMinEpisode(int) ) );
connect(rejectFilters.at(index), TQT_SIGNAL(minEpisodeChanged(int)), filterMinEpisode, TQT_SLOT(setValue(int) ) ); connect(rejectFilters.at(index), TQ_SIGNAL(minEpisodeChanged(int)), filterMinEpisode, TQ_SLOT(setValue(int) ) );
//maxSeason //maxSeason
connect(filterMaxSeason, TQT_SIGNAL(valueChanged(int)), rejectFilters.at(index), TQT_SLOT(setMaxSeason(int) ) ); connect(filterMaxSeason, TQ_SIGNAL(valueChanged(int)), rejectFilters.at(index), TQ_SLOT(setMaxSeason(int) ) );
connect(rejectFilters.at(index), TQT_SIGNAL(maxSeasonChanged(int)), filterMaxSeason, TQT_SLOT(setValue(int) ) ); connect(rejectFilters.at(index), TQ_SIGNAL(maxSeasonChanged(int)), filterMaxSeason, TQ_SLOT(setValue(int) ) );
//maxEpisode //maxEpisode
connect(filterMaxEpisode, TQT_SIGNAL(valueChanged(int)), rejectFilters.at(index), TQT_SLOT(setMaxEpisode(int) ) ); connect(filterMaxEpisode, TQ_SIGNAL(valueChanged(int)), rejectFilters.at(index), TQ_SLOT(setMaxEpisode(int) ) );
connect(rejectFilters.at(index), TQT_SIGNAL(maxEpisodeChanged(int)), filterMaxEpisode, TQT_SLOT(setValue(int) ) ); connect(rejectFilters.at(index), TQ_SIGNAL(maxEpisodeChanged(int)), filterMaxEpisode, TQ_SLOT(setValue(int) ) );
//matches //matches
connect(rejectFilters.at(index), TQT_SIGNAL(matchesChanged(const TQValueList<FilterMatch>&)), this, TQT_SLOT(updateMatches(const TQValueList<FilterMatch>&) ) ); connect(rejectFilters.at(index), TQ_SIGNAL(matchesChanged(const TQValueList<FilterMatch>&)), this, TQ_SLOT(updateMatches(const TQValueList<FilterMatch>&) ) );
connect(processFilter, TQT_SIGNAL(clicked()), rejectFilters.at(index), TQT_SIGNAL(rescanFilter()) ); connect(processFilter, TQ_SIGNAL(clicked()), rejectFilters.at(index), TQ_SIGNAL(rescanFilter()) );
} }
} }
@ -297,68 +297,68 @@ namespace kt
if (acceptFilter) if (acceptFilter)
{ {
//title //title
disconnect(filterTitle, TQT_SIGNAL(textChanged(const TQString &)), acceptFilters.at(index), TQT_SLOT(setTitle(const TQString &) ) ); disconnect(filterTitle, TQ_SIGNAL(textChanged(const TQString &)), acceptFilters.at(index), TQ_SLOT(setTitle(const TQString &) ) );
disconnect(acceptFilters.at(index), TQT_SIGNAL(titleChanged(const TQString &)), this, TQT_SLOT(setFilterTitle(const TQString &) ) ); disconnect(acceptFilters.at(index), TQ_SIGNAL(titleChanged(const TQString &)), this, TQ_SLOT(setFilterTitle(const TQString &) ) );
//active //active
disconnect(filterActive, TQT_SIGNAL(toggled(bool)), acceptFilters.at(index), TQT_SLOT(setActive(bool) ) ); disconnect(filterActive, TQ_SIGNAL(toggled(bool)), acceptFilters.at(index), TQ_SLOT(setActive(bool) ) );
disconnect(acceptFilters.at(index), TQT_SIGNAL(activeChanged(bool)), filterActive, TQT_SLOT(setChecked(bool) ) ); disconnect(acceptFilters.at(index), TQ_SIGNAL(activeChanged(bool)), filterActive, TQ_SLOT(setChecked(bool) ) );
//regExps //regExps
disconnect(filterRegExps, TQT_SIGNAL(changed()), this, TQT_SLOT(updateRegExps()) ); disconnect(filterRegExps, TQ_SIGNAL(changed()), this, TQ_SLOT(updateRegExps()) );
//series //series
disconnect(filterSeries, TQT_SIGNAL(toggled(bool)), acceptFilters.at(index), TQT_SLOT(setSeries(bool) ) ); disconnect(filterSeries, TQ_SIGNAL(toggled(bool)), acceptFilters.at(index), TQ_SLOT(setSeries(bool) ) );
disconnect(acceptFilters.at(index), TQT_SIGNAL(seriesChanged(bool)), filterSeries, TQT_SLOT(setChecked(bool) ) ); disconnect(acceptFilters.at(index), TQ_SIGNAL(seriesChanged(bool)), filterSeries, TQ_SLOT(setChecked(bool) ) );
//sansEpisode //sansEpisode
disconnect(filterSansEpisode, TQT_SIGNAL(toggled(bool)), acceptFilters.at(index), TQT_SLOT(setSansEpisode(bool) ) ); disconnect(filterSansEpisode, TQ_SIGNAL(toggled(bool)), acceptFilters.at(index), TQ_SLOT(setSansEpisode(bool) ) );
disconnect(acceptFilters.at(index), TQT_SIGNAL(sansEpisodeChanged(bool)), filterSansEpisode, TQT_SLOT(setChecked(bool) ) ); disconnect(acceptFilters.at(index), TQ_SIGNAL(sansEpisodeChanged(bool)), filterSansEpisode, TQ_SLOT(setChecked(bool) ) );
//minSeason //minSeason
disconnect(filterMinSeason, TQT_SIGNAL(valueChanged(int)), acceptFilters.at(index), TQT_SLOT(setMinSeason(int) ) ); disconnect(filterMinSeason, TQ_SIGNAL(valueChanged(int)), acceptFilters.at(index), TQ_SLOT(setMinSeason(int) ) );
disconnect(acceptFilters.at(index), TQT_SIGNAL(minSeasonChanged(int)), filterMinSeason, TQT_SLOT(setValue(int) ) ); disconnect(acceptFilters.at(index), TQ_SIGNAL(minSeasonChanged(int)), filterMinSeason, TQ_SLOT(setValue(int) ) );
//minEpisode //minEpisode
disconnect(filterMinEpisode, TQT_SIGNAL(valueChanged(int)), acceptFilters.at(index), TQT_SLOT(setMinEpisode(int) ) ); disconnect(filterMinEpisode, TQ_SIGNAL(valueChanged(int)), acceptFilters.at(index), TQ_SLOT(setMinEpisode(int) ) );
disconnect(acceptFilters.at(index), TQT_SIGNAL(minEpisodeChanged(int)), filterMinEpisode, TQT_SLOT(setValue(int) ) ); disconnect(acceptFilters.at(index), TQ_SIGNAL(minEpisodeChanged(int)), filterMinEpisode, TQ_SLOT(setValue(int) ) );
//maxSeason //maxSeason
disconnect(filterMaxSeason, TQT_SIGNAL(valueChanged(int)), acceptFilters.at(index), TQT_SLOT(setMaxSeason(int) ) ); disconnect(filterMaxSeason, TQ_SIGNAL(valueChanged(int)), acceptFilters.at(index), TQ_SLOT(setMaxSeason(int) ) );
disconnect(acceptFilters.at(index), TQT_SIGNAL(maxSeasonChanged(int)), filterMaxSeason, TQT_SLOT(setValue(int) ) ); disconnect(acceptFilters.at(index), TQ_SIGNAL(maxSeasonChanged(int)), filterMaxSeason, TQ_SLOT(setValue(int) ) );
//maxEpisode //maxEpisode
disconnect(filterMaxEpisode, TQT_SIGNAL(valueChanged(int)), acceptFilters.at(index), TQT_SLOT(setMaxEpisode(int) ) ); disconnect(filterMaxEpisode, TQ_SIGNAL(valueChanged(int)), acceptFilters.at(index), TQ_SLOT(setMaxEpisode(int) ) );
disconnect(acceptFilters.at(index), TQT_SIGNAL(maxEpisodeChanged(int)), filterMaxEpisode, TQT_SLOT(setValue(int) ) ); disconnect(acceptFilters.at(index), TQ_SIGNAL(maxEpisodeChanged(int)), filterMaxEpisode, TQ_SLOT(setValue(int) ) );
//matches //matches
disconnect(acceptFilters.at(index), TQT_SIGNAL(matchesChanged(const TQValueList<FilterMatch>&)), this, TQT_SLOT(updateMatches(const TQValueList<FilterMatch>&) ) ); disconnect(acceptFilters.at(index), TQ_SIGNAL(matchesChanged(const TQValueList<FilterMatch>&)), this, TQ_SLOT(updateMatches(const TQValueList<FilterMatch>&) ) );
disconnect(processFilter, TQT_SIGNAL(clicked()), acceptFilters.at(index), TQT_SIGNAL(rescanFilter()) ); disconnect(processFilter, TQ_SIGNAL(clicked()), acceptFilters.at(index), TQ_SIGNAL(rescanFilter()) );
} }
else else
{ {
//title //title
disconnect(filterTitle, TQT_SIGNAL(textChanged(const TQString &)), rejectFilters.at(index), TQT_SLOT(setTitle(const TQString &) ) ); disconnect(filterTitle, TQ_SIGNAL(textChanged(const TQString &)), rejectFilters.at(index), TQ_SLOT(setTitle(const TQString &) ) );
disconnect(rejectFilters.at(index), TQT_SIGNAL(titleChanged(const TQString &)), this, TQT_SLOT(setFilterTitle(const TQString &) ) ); disconnect(rejectFilters.at(index), TQ_SIGNAL(titleChanged(const TQString &)), this, TQ_SLOT(setFilterTitle(const TQString &) ) );
//active //active
disconnect(filterActive, TQT_SIGNAL(toggled(bool)), rejectFilters.at(index), TQT_SLOT(setActive(bool) ) ); disconnect(filterActive, TQ_SIGNAL(toggled(bool)), rejectFilters.at(index), TQ_SLOT(setActive(bool) ) );
disconnect(rejectFilters.at(index), TQT_SIGNAL(activeChanged(bool)), filterActive, TQT_SLOT(setChecked(bool) ) ); disconnect(rejectFilters.at(index), TQ_SIGNAL(activeChanged(bool)), filterActive, TQ_SLOT(setChecked(bool) ) );
//regExps //regExps
disconnect(filterRegExps, TQT_SIGNAL(changed()), this, TQT_SLOT(updateRegExps()) ); disconnect(filterRegExps, TQ_SIGNAL(changed()), this, TQ_SLOT(updateRegExps()) );
//series //series
disconnect(filterSeries, TQT_SIGNAL(toggled(bool)), rejectFilters.at(index), TQT_SLOT(setSeries(bool) ) ); disconnect(filterSeries, TQ_SIGNAL(toggled(bool)), rejectFilters.at(index), TQ_SLOT(setSeries(bool) ) );
disconnect(rejectFilters.at(index), TQT_SIGNAL(seriesChanged(bool)), filterSeries, TQT_SLOT(setChecked(bool) ) ); disconnect(rejectFilters.at(index), TQ_SIGNAL(seriesChanged(bool)), filterSeries, TQ_SLOT(setChecked(bool) ) );
//sansEpisode //sansEpisode
disconnect(filterSansEpisode, TQT_SIGNAL(toggled(bool)), rejectFilters.at(index), TQT_SLOT(setSansEpisode(bool) ) ); disconnect(filterSansEpisode, TQ_SIGNAL(toggled(bool)), rejectFilters.at(index), TQ_SLOT(setSansEpisode(bool) ) );
disconnect(rejectFilters.at(index), TQT_SIGNAL(sansEpisodeChanged(bool)), filterSansEpisode, TQT_SLOT(setChecked(bool) ) ); disconnect(rejectFilters.at(index), TQ_SIGNAL(sansEpisodeChanged(bool)), filterSansEpisode, TQ_SLOT(setChecked(bool) ) );
//minSeason //minSeason
disconnect(filterMinSeason, TQT_SIGNAL(valueChanged(int)), rejectFilters.at(index), TQT_SLOT(setMinSeason(int) ) ); disconnect(filterMinSeason, TQ_SIGNAL(valueChanged(int)), rejectFilters.at(index), TQ_SLOT(setMinSeason(int) ) );
disconnect(rejectFilters.at(index), TQT_SIGNAL(minSeasonChanged(int)), filterMinSeason, TQT_SLOT(setValue(int) ) ); disconnect(rejectFilters.at(index), TQ_SIGNAL(minSeasonChanged(int)), filterMinSeason, TQ_SLOT(setValue(int) ) );
//minEpisode //minEpisode
disconnect(filterMinEpisode, TQT_SIGNAL(valueChanged(int)), rejectFilters.at(index), TQT_SLOT(setMinEpisode(int) ) ); disconnect(filterMinEpisode, TQ_SIGNAL(valueChanged(int)), rejectFilters.at(index), TQ_SLOT(setMinEpisode(int) ) );
disconnect(rejectFilters.at(index), TQT_SIGNAL(minEpisodeChanged(int)), filterMinEpisode, TQT_SLOT(setValue(int) ) ); disconnect(rejectFilters.at(index), TQ_SIGNAL(minEpisodeChanged(int)), filterMinEpisode, TQ_SLOT(setValue(int) ) );
//maxSeason //maxSeason
disconnect(filterMaxSeason, TQT_SIGNAL(valueChanged(int)), rejectFilters.at(index), TQT_SLOT(setMaxSeason(int) ) ); disconnect(filterMaxSeason, TQ_SIGNAL(valueChanged(int)), rejectFilters.at(index), TQ_SLOT(setMaxSeason(int) ) );
disconnect(rejectFilters.at(index), TQT_SIGNAL(maxSeasonChanged(int)), filterMaxSeason, TQT_SLOT(setValue(int) ) ); disconnect(rejectFilters.at(index), TQ_SIGNAL(maxSeasonChanged(int)), filterMaxSeason, TQ_SLOT(setValue(int) ) );
//maxEpisode //maxEpisode
disconnect(filterMaxEpisode, TQT_SIGNAL(valueChanged(int)), rejectFilters.at(index), TQT_SLOT(setMaxEpisode(int) ) ); disconnect(filterMaxEpisode, TQ_SIGNAL(valueChanged(int)), rejectFilters.at(index), TQ_SLOT(setMaxEpisode(int) ) );
disconnect(rejectFilters.at(index), TQT_SIGNAL(maxEpisodeChanged(int)), filterMaxEpisode, TQT_SLOT(setValue(int) ) ); disconnect(rejectFilters.at(index), TQ_SIGNAL(maxEpisodeChanged(int)), filterMaxEpisode, TQ_SLOT(setValue(int) ) );
//matches //matches
disconnect(rejectFilters.at(index), TQT_SIGNAL(matchesChanged(const TQValueList<FilterMatch>&)), this, TQT_SLOT(updateMatches(const TQValueList<FilterMatch>&) ) ); disconnect(rejectFilters.at(index), TQ_SIGNAL(matchesChanged(const TQValueList<FilterMatch>&)), this, TQ_SLOT(updateMatches(const TQValueList<FilterMatch>&) ) );
disconnect(processFilter, TQT_SIGNAL(clicked()), rejectFilters.at(index), TQT_SIGNAL(rescanFilter()) ); disconnect(processFilter, TQ_SIGNAL(clicked()), rejectFilters.at(index), TQ_SIGNAL(rescanFilter()) );
} }
} }
@ -375,27 +375,27 @@ namespace kt
feedlist->setCurrentItem(index); feedlist->setCurrentItem(index);
//update the feed list //update the feed list
connect(feeds.at(index), TQT_SIGNAL(titleChanged(const TQString&)), this, TQT_SLOT(updateFeedList()) ); connect(feeds.at(index), TQ_SIGNAL(titleChanged(const TQString&)), this, TQ_SLOT(updateFeedList()) );
//clear the articles list when the url is changed //clear the articles list when the url is changed
connect(feeds.at(index), TQT_SIGNAL(feedUrlChanged(const KURL&)), this, TQT_SLOT(clearArticles() ) ); connect(feeds.at(index), TQ_SIGNAL(feedUrlChanged(const KURL&)), this, TQ_SLOT(clearArticles() ) );
//connect the scanArticle signal to the scanArticle slot //connect the scanArticle signal to the scanArticle slot
connect(feeds.at(index), TQT_SIGNAL(scanRssArticle(RssArticle)), this, TQT_SLOT(scanArticle(RssArticle) ) ); connect(feeds.at(index), TQ_SIGNAL(scanRssArticle(RssArticle)), this, TQ_SLOT(scanArticle(RssArticle) ) );
//connect all the fields to the save slot //connect all the fields to the save slot
//title //title
connect(feeds.at(index), TQT_SIGNAL(titleChanged(const TQString &)), this, TQT_SLOT(saveFeedList() ) ); connect(feeds.at(index), TQ_SIGNAL(titleChanged(const TQString &)), this, TQ_SLOT(saveFeedList() ) );
//url //url
connect(feeds.at(index), TQT_SIGNAL(feedUrlChanged(const KURL&)), this, TQT_SLOT(saveFeedList() ) ); connect(feeds.at(index), TQ_SIGNAL(feedUrlChanged(const KURL&)), this, TQ_SLOT(saveFeedList() ) );
//articleAge //articleAge
connect(feeds.at(index), TQT_SIGNAL(articleAgeChanged(int)), this, TQT_SLOT(saveFeedList() ) ); connect(feeds.at(index), TQ_SIGNAL(articleAgeChanged(int)), this, TQ_SLOT(saveFeedList() ) );
//active //active
connect(feeds.at(index), TQT_SIGNAL(activeChanged(bool)), this, TQT_SLOT(saveFeedList() ) ); connect(feeds.at(index), TQ_SIGNAL(activeChanged(bool)), this, TQ_SLOT(saveFeedList() ) );
//autoRefresh //autoRefresh
connect(feeds.at(index), TQT_SIGNAL(autoRefreshChanged(const TQTime&)), this, TQT_SLOT(saveFeedList() ) ); connect(feeds.at(index), TQ_SIGNAL(autoRefreshChanged(const TQTime&)), this, TQ_SLOT(saveFeedList() ) );
//ignoreTTL //ignoreTTL
connect(feeds.at(index), TQT_SIGNAL(ignoreTTLChanged(bool)), this, TQT_SLOT(saveFeedList() ) ); connect(feeds.at(index), TQ_SIGNAL(ignoreTTLChanged(bool)), this, TQ_SLOT(saveFeedList() ) );
} }
@ -410,52 +410,52 @@ namespace kt
acceptFilterList->insertItem(acceptFilters.at(index)->title()); acceptFilterList->insertItem(acceptFilters.at(index)->title());
acceptFilterList->setCurrentItem(index); acceptFilterList->setCurrentItem(index);
connect(acceptFilters.at(index), TQT_SIGNAL(titleChanged(const TQString&)), this, TQT_SLOT(updateAcceptFilterList()) ); connect(acceptFilters.at(index), TQ_SIGNAL(titleChanged(const TQString&)), this, TQ_SLOT(updateAcceptFilterList()) );
//connect all the fields to the save slot //connect all the fields to the save slot
//title //title
connect(acceptFilters.at(index), TQT_SIGNAL(titleChanged(const TQString &)), this, TQT_SLOT(saveFilterList() ) ); connect(acceptFilters.at(index), TQ_SIGNAL(titleChanged(const TQString &)), this, TQ_SLOT(saveFilterList() ) );
//active //active
connect(acceptFilters.at(index), TQT_SIGNAL(activeChanged( bool )), this, TQT_SLOT(saveFilterList() ) ); connect(acceptFilters.at(index), TQ_SIGNAL(activeChanged( bool )), this, TQ_SLOT(saveFilterList() ) );
//regexps //regexps
connect(acceptFilters.at(index), TQT_SIGNAL(regExpsChanged( const TQStringList& )), this, TQT_SLOT(saveFilterList() ) ); connect(acceptFilters.at(index), TQ_SIGNAL(regExpsChanged( const TQStringList& )), this, TQ_SLOT(saveFilterList() ) );
//series //series
connect(acceptFilters.at(index), TQT_SIGNAL(seriesChanged( bool )), this, TQT_SLOT(saveFilterList() ) ); connect(acceptFilters.at(index), TQ_SIGNAL(seriesChanged( bool )), this, TQ_SLOT(saveFilterList() ) );
//sansEpisode //sansEpisode
connect(acceptFilters.at(index), TQT_SIGNAL(sansEpisodeChanged( bool )), this, TQT_SLOT(saveFilterList() ) ); connect(acceptFilters.at(index), TQ_SIGNAL(sansEpisodeChanged( bool )), this, TQ_SLOT(saveFilterList() ) );
//minSeason //minSeason
connect(acceptFilters.at(index), TQT_SIGNAL(minSeasonChanged (int )), this, TQT_SLOT(saveFilterList() ) ); connect(acceptFilters.at(index), TQ_SIGNAL(minSeasonChanged (int )), this, TQ_SLOT(saveFilterList() ) );
//minEpisode //minEpisode
connect(acceptFilters.at(index), TQT_SIGNAL(minEpisodeChanged (int )), this, TQT_SLOT(saveFilterList() ) ); connect(acceptFilters.at(index), TQ_SIGNAL(minEpisodeChanged (int )), this, TQ_SLOT(saveFilterList() ) );
//maxSeason //maxSeason
connect(acceptFilters.at(index), TQT_SIGNAL(maxSeasonChanged (int )), this, TQT_SLOT(saveFilterList() ) ); connect(acceptFilters.at(index), TQ_SIGNAL(maxSeasonChanged (int )), this, TQ_SLOT(saveFilterList() ) );
//maxEpiosde //maxEpiosde
connect(acceptFilters.at(index), TQT_SIGNAL(maxEpisodeChanged (int )), this, TQT_SLOT(saveFilterList() ) ); connect(acceptFilters.at(index), TQ_SIGNAL(maxEpisodeChanged (int )), this, TQ_SLOT(saveFilterList() ) );
//matches //matches
connect(acceptFilters.at(index), TQT_SIGNAL(matchesChanged( const TQValueList<FilterMatch>& )), this, TQT_SLOT(saveFilterList() ) ); connect(acceptFilters.at(index), TQ_SIGNAL(matchesChanged( const TQValueList<FilterMatch>& )), this, TQ_SLOT(saveFilterList() ) );
//connect the rescan signal to the rescan slot //connect the rescan signal to the rescan slot
connect(acceptFilters.at(index), TQT_SIGNAL(rescanFilter()), this, TQT_SLOT(rescanFilter()) ); connect(acceptFilters.at(index), TQ_SIGNAL(rescanFilter()), this, TQ_SLOT(rescanFilter()) );
// //connect all except the matchesChanged to the rescanFilter slot // //connect all except the matchesChanged to the rescanFilter slot
// //title // //title
// connect(acceptFilters.at(index), TQT_SIGNAL(titleChanged(const TQString &)), this, TQT_SLOT(rescanFilter() ) ); // connect(acceptFilters.at(index), TQ_SIGNAL(titleChanged(const TQString &)), this, TQ_SLOT(rescanFilter() ) );
// //active // //active
// connect(acceptFilters.at(index), TQT_SIGNAL(activeChanged( bool )), this, TQT_SLOT(rescanFilter() ) ); // connect(acceptFilters.at(index), TQ_SIGNAL(activeChanged( bool )), this, TQ_SLOT(rescanFilter() ) );
// //regexps // //regexps
// connect(acceptFilters.at(index), TQT_SIGNAL(regExpsChanged( const TQStringList& )), this, TQT_SLOT(rescanFilter() ) ); // connect(acceptFilters.at(index), TQ_SIGNAL(regExpsChanged( const TQStringList& )), this, TQ_SLOT(rescanFilter() ) );
// //series // //series
// connect(acceptFilters.at(index), TQT_SIGNAL(seriesChanged( bool )), this, TQT_SLOT(rescanFilter() ) ); // connect(acceptFilters.at(index), TQ_SIGNAL(seriesChanged( bool )), this, TQ_SLOT(rescanFilter() ) );
// //sansEpisode // //sansEpisode
// connect(acceptFilters.at(index), TQT_SIGNAL(sansEpisodeChanged( bool )), this, TQT_SLOT(rescanFilter() ) ); // connect(acceptFilters.at(index), TQ_SIGNAL(sansEpisodeChanged( bool )), this, TQ_SLOT(rescanFilter() ) );
// //minSeason // //minSeason
// connect(acceptFilters.at(index), TQT_SIGNAL(minSeasonChanged (int )), this, TQT_SLOT(rescanFilter() ) ); // connect(acceptFilters.at(index), TQ_SIGNAL(minSeasonChanged (int )), this, TQ_SLOT(rescanFilter() ) );
// //minEpisode // //minEpisode
// connect(acceptFilters.at(index), TQT_SIGNAL(minEpisodeChanged (int )), this, TQT_SLOT(rescanFilter() ) ); // connect(acceptFilters.at(index), TQ_SIGNAL(minEpisodeChanged (int )), this, TQ_SLOT(rescanFilter() ) );
// //maxSeason // //maxSeason
// connect(acceptFilters.at(index), TQT_SIGNAL(maxSeasonChanged (int )), this, TQT_SLOT(rescanFilter() ) ); // connect(acceptFilters.at(index), TQ_SIGNAL(maxSeasonChanged (int )), this, TQ_SLOT(rescanFilter() ) );
// //maxEpiosde // //maxEpiosde
// connect(acceptFilters.at(index), TQT_SIGNAL(maxEpisodeChanged (int )), this, TQT_SLOT(rescanFilter() ) ); // connect(acceptFilters.at(index), TQ_SIGNAL(maxEpisodeChanged (int )), this, TQ_SLOT(rescanFilter() ) );
} }
@ -470,29 +470,29 @@ namespace kt
rejectFilterList->insertItem(rejectFilters.at(index)->title()); rejectFilterList->insertItem(rejectFilters.at(index)->title());
rejectFilterList->setCurrentItem(index); rejectFilterList->setCurrentItem(index);
connect(rejectFilters.at(index), TQT_SIGNAL(titleChanged(const TQString&)), this, TQT_SLOT(updateRejectFilterList()) ); connect(rejectFilters.at(index), TQ_SIGNAL(titleChanged(const TQString&)), this, TQ_SLOT(updateRejectFilterList()) );
//connect all the fields to the save slot //connect all the fields to the save slot
//title //title
connect(rejectFilters.at(index), TQT_SIGNAL(titleChanged(const TQString &)), this, TQT_SLOT(saveFilterList() ) ); connect(rejectFilters.at(index), TQ_SIGNAL(titleChanged(const TQString &)), this, TQ_SLOT(saveFilterList() ) );
//active //active
connect(rejectFilters.at(index), TQT_SIGNAL(activeChanged( bool )), this, TQT_SLOT(saveFilterList() ) ); connect(rejectFilters.at(index), TQ_SIGNAL(activeChanged( bool )), this, TQ_SLOT(saveFilterList() ) );
//regexps //regexps
connect(rejectFilters.at(index), TQT_SIGNAL(regExpsChanged( const TQStringList& )), this, TQT_SLOT(saveFilterList() ) ); connect(rejectFilters.at(index), TQ_SIGNAL(regExpsChanged( const TQStringList& )), this, TQ_SLOT(saveFilterList() ) );
//series //series
connect(rejectFilters.at(index), TQT_SIGNAL(seriesChanged( bool )), this, TQT_SLOT(saveFilterList() ) ); connect(rejectFilters.at(index), TQ_SIGNAL(seriesChanged( bool )), this, TQ_SLOT(saveFilterList() ) );
//sansEpisode //sansEpisode
connect(rejectFilters.at(index), TQT_SIGNAL(sansEpisodeChanged( bool )), this, TQT_SLOT(saveFilterList() ) ); connect(rejectFilters.at(index), TQ_SIGNAL(sansEpisodeChanged( bool )), this, TQ_SLOT(saveFilterList() ) );
//minSeason //minSeason
connect(rejectFilters.at(index), TQT_SIGNAL(minSeasonChanged (int )), this, TQT_SLOT(saveFilterList() ) ); connect(rejectFilters.at(index), TQ_SIGNAL(minSeasonChanged (int )), this, TQ_SLOT(saveFilterList() ) );
//minEpisode //minEpisode
connect(rejectFilters.at(index), TQT_SIGNAL(minEpisodeChanged (int )), this, TQT_SLOT(saveFilterList() ) ); connect(rejectFilters.at(index), TQ_SIGNAL(minEpisodeChanged (int )), this, TQ_SLOT(saveFilterList() ) );
//maxSeason //maxSeason
connect(rejectFilters.at(index), TQT_SIGNAL(maxSeasonChanged (int )), this, TQT_SLOT(saveFilterList() ) ); connect(rejectFilters.at(index), TQ_SIGNAL(maxSeasonChanged (int )), this, TQ_SLOT(saveFilterList() ) );
//maxEpiosde //maxEpiosde
connect(rejectFilters.at(index), TQT_SIGNAL(maxEpisodeChanged (int )), this, TQT_SLOT(saveFilterList() ) ); connect(rejectFilters.at(index), TQ_SIGNAL(maxEpisodeChanged (int )), this, TQ_SLOT(saveFilterList() ) );
//matches //matches
connect(rejectFilters.at(index), TQT_SIGNAL(matchesChanged( const TQValueList<FilterMatch>& )), this, TQT_SLOT(saveFilterList() ) ); connect(rejectFilters.at(index), TQ_SIGNAL(matchesChanged( const TQValueList<FilterMatch>& )), this, TQ_SLOT(saveFilterList() ) );
} }
@ -773,7 +773,7 @@ namespace kt
curDownload = new RssLinkDownloader(m_core, feedArticles->text(j, 2)); curDownload = new RssLinkDownloader(m_core, feedArticles->text(j, 2));
for (int i=0; i<feeds.count(); i++) for (int i=0; i<feeds.count(); i++)
{ {
connect(curDownload, TQT_SIGNAL(linkDownloaded( TQString, int )), feeds.at(i), TQT_SLOT(setDownloaded(TQString, int)) ); connect(curDownload, TQ_SIGNAL(linkDownloaded( TQString, int )), feeds.at(i), TQ_SLOT(setDownloaded(TQString, int)) );
} }
} }
} }
@ -1232,7 +1232,7 @@ namespace kt
RssLinkDownloader * curDownload = new RssLinkDownloader(m_core, article.link().prettyURL(), filter); RssLinkDownloader * curDownload = new RssLinkDownloader(m_core, article.link().prettyURL(), filter);
for (int i=0; i<feeds.count(); i++) for (int i=0; i<feeds.count(); i++)
{ {
connect(curDownload, TQT_SIGNAL(linkDownloaded( TQString, int )), feeds.at(i), TQT_SLOT(setDownloaded(TQString, int)) ); connect(curDownload, TQ_SIGNAL(linkDownloaded( TQString, int )), feeds.at(i), TQ_SLOT(setDownloaded(TQString, int)) );
} }
} }
} }
@ -1245,7 +1245,7 @@ namespace kt
RssLinkDownloader * curDownload = new RssLinkDownloader(m_core, article.link().prettyURL(), acceptFilters.at(i)); RssLinkDownloader * curDownload = new RssLinkDownloader(m_core, article.link().prettyURL(), acceptFilters.at(i));
for (int i=0; i<feeds.count(); i++) for (int i=0; i<feeds.count(); i++)
{ {
connect(curDownload, TQT_SIGNAL(linkDownloaded( TQString, int )), feeds.at(i), TQT_SLOT(setDownloaded(TQString, int)) ); connect(curDownload, TQ_SIGNAL(linkDownloaded( TQString, int )), feeds.at(i), TQ_SLOT(setDownloaded(TQString, int)) );
} }
} }
} }

@ -43,14 +43,14 @@ namespace kt
{ {
// no valid URL, so just display an error message // no valid URL, so just display an error message
KMessageBox::error(0,i18n("Failed to find and download a valid torrent for %1").arg(curLink)); KMessageBox::error(0,i18n("Failed to find and download a valid torrent for %1").arg(curLink));
TQTimer::singleShot(50,this,TQT_SLOT(suicide())); TQTimer::singleShot(50,this,TQ_SLOT(suicide()));
} }
else else
{ {
//first let's download the link so we can process it to check for the actual torrent //first let's download the link so we can process it to check for the actual torrent
curLink = curSubLink = link; curLink = curSubLink = link;
curFile = TDEIO::storedGet(link,false,false); curFile = TDEIO::storedGet(link,false,false);
connect(curFile, TQT_SIGNAL(result(TDEIO::Job*)),this,TQT_SLOT(processLink( TDEIO::Job* ))); connect(curFile, TQ_SIGNAL(result(TDEIO::Job*)),this,TQ_SLOT(processLink( TDEIO::Job* )));
} }
} }
@ -189,7 +189,7 @@ namespace kt
curSubLink = subLinks.first(); curSubLink = subLinks.first();
subLinks.pop_front(); subLinks.pop_front();
curFile = TDEIO::storedGet(curSubLink,false,false); curFile = TDEIO::storedGet(curSubLink,false,false);
connect(curFile, TQT_SIGNAL(result(TDEIO::Job*)),this,TQT_SLOT(processLink( TDEIO::Job* ))); connect(curFile, TQ_SIGNAL(result(TDEIO::Job*)),this,TQ_SLOT(processLink( TDEIO::Job* )));
} }
} }

@ -58,9 +58,9 @@ namespace kt
m_dir->setShowingDotFiles(true); m_dir->setShowingDotFiles(true);
connect(m_dir, TQT_SIGNAL(newItems( const KFileItemList& )), this, TQT_SLOT(onNewItems( const KFileItemList& ))); connect(m_dir, TQ_SIGNAL(newItems( const KFileItemList& )), this, TQ_SLOT(onNewItems( const KFileItemList& )));
connect(m_core, TQT_SIGNAL(loadingFinished( const KURL&, bool, bool )), this, TQT_SLOT(onLoadingFinished( const KURL&, bool, bool ))); connect(m_core, TQ_SIGNAL(loadingFinished( const KURL&, bool, bool )), this, TQ_SLOT(onLoadingFinished( const KURL&, bool, bool )));
connect(&m_incomplePollingTimer,TQT_SIGNAL(timeout()),this,TQT_SLOT(onIncompletePollingTimeout())); connect(&m_incomplePollingTimer,TQ_SIGNAL(timeout()),this,TQ_SLOT(onIncompletePollingTimeout()));
} }

@ -93,16 +93,16 @@ namespace kt
pix52->setPixmap(TQPixmap(locate("data", TQString("ktorrent/icons/cell-a-0004.png")))); pix52->setPixmap(TQPixmap(locate("data", TQString("ktorrent/icons/cell-a-0004.png"))));
} }
connect(radio1, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(categoryChanged(int))); connect(radio1, TQ_SIGNAL(stateChanged(int)), this, TQ_SLOT(categoryChanged(int)));
connect(radio2, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(categoryChanged(int))); connect(radio2, TQ_SIGNAL(stateChanged(int)), this, TQ_SLOT(categoryChanged(int)));
connect(radio3, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(categoryChanged(int))); connect(radio3, TQ_SIGNAL(stateChanged(int)), this, TQ_SLOT(categoryChanged(int)));
connect(radio4, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(categoryChanged(int))); connect(radio4, TQ_SIGNAL(stateChanged(int)), this, TQ_SLOT(categoryChanged(int)));
connect(radio5, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(categoryChanged(int))); connect(radio5, TQ_SIGNAL(stateChanged(int)), this, TQ_SLOT(categoryChanged(int)));
connect(radio12, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(categoryChanged(int))); connect(radio12, TQ_SIGNAL(stateChanged(int)), this, TQ_SLOT(categoryChanged(int)));
connect(radio22, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(categoryChanged(int))); connect(radio22, TQ_SIGNAL(stateChanged(int)), this, TQ_SLOT(categoryChanged(int)));
connect(radio32, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(categoryChanged(int))); connect(radio32, TQ_SIGNAL(stateChanged(int)), this, TQ_SLOT(categoryChanged(int)));
connect(radio42, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(categoryChanged(int))); connect(radio42, TQ_SIGNAL(stateChanged(int)), this, TQ_SLOT(categoryChanged(int)));
connect(radio52, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(categoryChanged(int))); connect(radio52, TQ_SIGNAL(stateChanged(int)), this, TQ_SLOT(categoryChanged(int)));
//pre-check default categories (say 1 for left and 0 for right) //pre-check default categories (say 1 for left and 0 for right)
radio2->setChecked(true); radio2->setChecked(true);

@ -101,8 +101,8 @@ namespace kt
setHScrollBarMode(TQTable::AlwaysOff); setHScrollBarMode(TQTable::AlwaysOff);
setVScrollBarMode(TQTable::AlwaysOff); setVScrollBarMode(TQTable::AlwaysOff);
connect(this, TQT_SIGNAL(currentChanged( int, int )), this, TQT_SLOT(cellSelectionChanged( int, int ))); connect(this, TQ_SIGNAL(currentChanged( int, int )), this, TQ_SLOT(cellSelectionChanged( int, int )));
connect(this, TQT_SIGNAL(pressed(int, int, int, const TQPoint&)), this, TQT_SLOT(cellMouseDown(int, int, int, const TQPoint& ))); connect(this, TQ_SIGNAL(pressed(int, int, int, const TQPoint&)), this, TQ_SLOT(cellMouseDown(int, int, int, const TQPoint& )));
} }
BWSWidget::~BWSWidget() BWSWidget::~BWSWidget()

@ -60,7 +60,7 @@ namespace kt
{ {
setXMLFile("ktschedulerpluginui.rc"); setXMLFile("ktschedulerpluginui.rc");
bws_action = 0; bws_action = 0;
connect(&m_timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(timer_triggered())); connect(&m_timer, TQ_SIGNAL(timeout()), this, TQ_SLOT(timer_triggered()));
} }
@ -95,7 +95,7 @@ namespace kt
// updateEnabledBWS(); // updateEnabledBWS();
bws_action = new TDEAction(i18n("Open Bandwidth Scheduler" ), "clock", 0, this, bws_action = new TDEAction(i18n("Open Bandwidth Scheduler" ), "clock", 0, this,
TQT_SLOT(openBWS()), actionCollection(), "bwscheduler" ); TQ_SLOT(openBWS()), actionCollection(), "bwscheduler" );
} }
void SchedulerPlugin::unload() void SchedulerPlugin::unload()
@ -135,7 +135,7 @@ namespace kt
if(SchedulerPluginSettings::enableBWS()) if(SchedulerPluginSettings::enableBWS())
{ {
bws_action = new TDEAction(i18n("Open Bandwidth Scheduler" ), "clock", 0, this, bws_action = new TDEAction(i18n("Open Bandwidth Scheduler" ), "clock", 0, this,
TQT_SLOT(openBWS()), actionCollection(), "bwscheduler" ); TQ_SLOT(openBWS()), actionCollection(), "bwscheduler" );
} }
else else
{ {

@ -61,7 +61,7 @@ namespace kt
/* force trigger since the schedule has changed but after KTorrent::apply() /* force trigger since the schedule has changed but after KTorrent::apply()
* Used TQTimer with fixed interval - not very nice solution... */ * Used TQTimer with fixed interval - not very nice solution... */
if(useBS->isChecked()) if(useBS->isChecked())
TQTimer::singleShot(1000, this, TQT_SLOT(scheduler_trigger())); TQTimer::singleShot(1000, this, TQ_SLOT(scheduler_trigger()));
BWScheduler::instance().setEnabled(use_bws); BWScheduler::instance().setEnabled(use_bws);
} }

@ -45,8 +45,8 @@ namespace kt
setPluginsEnabled(false); setPluginsEnabled(false);
setStatusMessagesEnabled(false); setStatusMessagesEnabled(false);
KParts::BrowserExtension* ext = this->browserExtension(); KParts::BrowserExtension* ext = this->browserExtension();
connect(ext,TQT_SIGNAL(openURLRequest(const KURL&,const KParts::URLArgs&)), connect(ext,TQ_SIGNAL(openURLRequest(const KURL&,const KParts::URLArgs&)),
this,TQT_SLOT(openURLRequest(const KURL&, const KParts::URLArgs& ))); this,TQ_SLOT(openURLRequest(const KURL&, const KParts::URLArgs& )));
ext->enableAction("copy",true); ext->enableAction("copy",true);
ext->enableAction("paste",true); ext->enableAction("paste",true);
@ -75,11 +75,11 @@ namespace kt
} }
TDEIO::TransferJob* j = TDEIO::get(u,false,false); TDEIO::TransferJob* j = TDEIO::get(u,false,false);
connect(j,TQT_SIGNAL(data(TDEIO::Job*,const TQByteArray &)), connect(j,TQ_SIGNAL(data(TDEIO::Job*,const TQByteArray &)),
this,TQT_SLOT(dataRecieved(TDEIO::Job*, const TQByteArray& ))); this,TQ_SLOT(dataRecieved(TDEIO::Job*, const TQByteArray& )));
connect(j,TQT_SIGNAL(result(TDEIO::Job*)),this,TQT_SLOT(jobDone(TDEIO::Job* ))); connect(j,TQ_SIGNAL(result(TDEIO::Job*)),this,TQ_SLOT(jobDone(TDEIO::Job* )));
connect(j,TQT_SIGNAL(mimetype(TDEIO::Job*, const TQString &)), connect(j,TQ_SIGNAL(mimetype(TDEIO::Job*, const TQString &)),
this,TQT_SLOT(mimetype(TDEIO::Job*, const TQString& ))); this,TQ_SLOT(mimetype(TDEIO::Job*, const TQString& )));
active_job = j; active_job = j;
curr_data.resize(0); curr_data.resize(0);

@ -65,8 +65,8 @@ namespace kt
engines.load(TDEGlobal::dirs()->saveLocation("data","ktorrent") + "search_engines"); engines.load(TDEGlobal::dirs()->saveLocation("data","ktorrent") + "search_engines");
TDEToolBar* tb = getGUI()->addToolBar("search"); TDEToolBar* tb = getGUI()->addToolBar("search");
tab = new SearchTab(tb); tab = new SearchTab(tb);
connect(tab,TQT_SIGNAL(search( const TQString&, int, bool )), connect(tab,TQ_SIGNAL(search( const TQString&, int, bool )),
this,TQT_SLOT(search( const TQString&, int, bool ))); this,TQ_SLOT(search( const TQString&, int, bool )));
pref = new SearchPrefPage(this); pref = new SearchPrefPage(this);
getGUI()->addPrefPage(pref); getGUI()->addPrefPage(pref);
@ -118,7 +118,7 @@ namespace kt
SearchWidget* search = new SearchWidget(this); SearchWidget* search = new SearchWidget(this);
getGUI()->addTabPage(search,iload->loadIconSet("viewmag", TDEIcon::Small),text,this); getGUI()->addTabPage(search,iload->loadIconSet("viewmag", TDEIcon::Small),text,this);
TDEAction* copy_act = KStdAction::copy(search,TQT_SLOT(copy()),actionCollection()); TDEAction* copy_act = KStdAction::copy(search,TQ_SLOT(copy()),actionCollection());
copy_act->plug(search->rightClickMenu(),0); copy_act->plug(search->rightClickMenu(),0);
searches.append(search); searches.append(search);

@ -60,12 +60,12 @@ namespace kt
TQToolTip::add(m_infoLabel,info); TQToolTip::add(m_infoLabel,info);
TQToolTip::add(m_engine_name,info); TQToolTip::add(m_engine_name,info);
connect(btnAdd, TQT_SIGNAL(clicked()), this, TQT_SLOT(addClicked())); connect(btnAdd, TQ_SIGNAL(clicked()), this, TQ_SLOT(addClicked()));
connect(btnRemove, TQT_SIGNAL(clicked()), this, TQT_SLOT(removeClicked())); connect(btnRemove, TQ_SIGNAL(clicked()), this, TQ_SLOT(removeClicked()));
connect(btn_add_default, TQT_SIGNAL(clicked()), this, TQT_SLOT(addDefaultClicked())); connect(btn_add_default, TQ_SIGNAL(clicked()), this, TQ_SLOT(addDefaultClicked()));
connect(btnRemoveAll, TQT_SIGNAL(clicked()), this, TQT_SLOT(removeAllClicked())); connect(btnRemoveAll, TQ_SIGNAL(clicked()), this, TQ_SLOT(removeAllClicked()));
connect(useCustomBrowser, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(customToggled( bool ))); connect(useCustomBrowser, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(customToggled( bool )));
useCustomBrowser->setChecked(SearchPluginSettings::useCustomBrowser()); useCustomBrowser->setChecked(SearchPluginSettings::useCustomBrowser());
useDefaultBrowser->setChecked(SearchPluginSettings::useDefaultBrowser()); useDefaultBrowser->setChecked(SearchPluginSettings::useDefaultBrowser());

@ -51,10 +51,10 @@ namespace kt
m_clear_button->setIconSet(SmallIconSet(TQApplication::reverseLayout() ? "clear_left" : "locationbar_erase")); m_clear_button->setIconSet(SmallIconSet(TQApplication::reverseLayout() ? "clear_left" : "locationbar_erase"));
m_clear_button->setEnabled(false); m_clear_button->setEnabled(false);
connect(m_search_new_tab,TQT_SIGNAL(clicked()),this,TQT_SLOT(searchNewTabPressed())); connect(m_search_new_tab,TQ_SIGNAL(clicked()),this,TQ_SLOT(searchNewTabPressed()));
connect(m_search_text,TQT_SIGNAL(returnPressed(const TQString&)),this,TQT_SLOT(searchBoxReturn( const TQString& ))); connect(m_search_text,TQ_SIGNAL(returnPressed(const TQString&)),this,TQ_SLOT(searchBoxReturn( const TQString& )));
connect(m_search_text,TQT_SIGNAL(textChanged(const TQString &)),this,TQT_SLOT(textChanged( const TQString& ))); connect(m_search_text,TQ_SIGNAL(textChanged(const TQString &)),this,TQ_SLOT(textChanged( const TQString& )));
connect(m_clear_button,TQT_SIGNAL(clicked()),this,TQT_SLOT(clearButtonPressed())); connect(m_clear_button,TQ_SIGNAL(clicked()),this,TQ_SLOT(clearButtonPressed()));
m_search_text->setMaxCount(20); m_search_text->setMaxCount(20);
m_search_new_tab->setEnabled(false); m_search_new_tab->setEnabled(false);
m_search_text->setInsertionPolicy(TQComboBox::NoInsertion); m_search_text->setInsertionPolicy(TQComboBox::NoInsertion);

@ -69,18 +69,18 @@ namespace kt
back_id = right_click_menu->insertItem( back_id = right_click_menu->insertItem(
TDEGlobal::iconLoader()->loadIconSet(TQApplication::reverseLayout() TDEGlobal::iconLoader()->loadIconSet(TQApplication::reverseLayout()
? "forward" : "back",TDEIcon::Small), ? "forward" : "back",TDEIcon::Small),
i18n("Back"),html_part,TQT_SLOT(back())); i18n("Back"),html_part,TQ_SLOT(back()));
right_click_menu->insertItem( right_click_menu->insertItem(
TDEGlobal::iconLoader()->loadIconSet("reload",TDEIcon::Small), TDEGlobal::iconLoader()->loadIconSet("reload",TDEIcon::Small),
i18n("Reload"),html_part,TQT_SLOT(reload())); i18n("Reload"),html_part,TQ_SLOT(reload()));
right_click_menu->setItemEnabled(back_id,false); right_click_menu->setItemEnabled(back_id,false);
sbar->m_back->setEnabled(false); sbar->m_back->setEnabled(false);
connect(sbar->m_search_button,TQT_SIGNAL(clicked()),this,TQT_SLOT(searchPressed())); connect(sbar->m_search_button,TQ_SIGNAL(clicked()),this,TQ_SLOT(searchPressed()));
connect(sbar->m_clear_button,TQT_SIGNAL(clicked()),this,TQT_SLOT(clearPressed())); connect(sbar->m_clear_button,TQ_SIGNAL(clicked()),this,TQ_SLOT(clearPressed()));
connect(sbar->m_search_text,TQT_SIGNAL(returnPressed()),this,TQT_SLOT(searchPressed())); connect(sbar->m_search_text,TQ_SIGNAL(returnPressed()),this,TQ_SLOT(searchPressed()));
connect(sbar->m_back,TQT_SIGNAL(clicked()),html_part,TQT_SLOT(back())); connect(sbar->m_back,TQ_SIGNAL(clicked()),html_part,TQ_SLOT(back()));
connect(sbar->m_reload,TQT_SIGNAL(clicked()),html_part,TQT_SLOT(reload())); connect(sbar->m_reload,TQ_SIGNAL(clicked()),html_part,TQ_SLOT(reload()));
sbar->m_clear_button->setIconSet( sbar->m_clear_button->setIconSet(
TDEGlobal::iconLoader()->loadIconSet(TQApplication::reverseLayout() TDEGlobal::iconLoader()->loadIconSet(TQApplication::reverseLayout()
@ -92,22 +92,22 @@ namespace kt
TDEGlobal::iconLoader()->loadIconSet("reload",TDEIcon::Small)); TDEGlobal::iconLoader()->loadIconSet("reload",TDEIcon::Small));
connect(html_part,TQT_SIGNAL(backAvailable(bool )), connect(html_part,TQ_SIGNAL(backAvailable(bool )),
this,TQT_SLOT(onBackAvailable(bool ))); this,TQ_SLOT(onBackAvailable(bool )));
connect(html_part,TQT_SIGNAL(onURL(const TQString& )), connect(html_part,TQ_SIGNAL(onURL(const TQString& )),
this,TQT_SLOT(onURLHover(const TQString& ))); this,TQ_SLOT(onURLHover(const TQString& )));
connect(html_part,TQT_SIGNAL(openTorrent(const KURL& )), connect(html_part,TQ_SIGNAL(openTorrent(const KURL& )),
this,TQT_SLOT(onOpenTorrent(const KURL& ))); this,TQ_SLOT(onOpenTorrent(const KURL& )));
connect(html_part,TQT_SIGNAL(popupMenu(const TQString&, const TQPoint& )), connect(html_part,TQ_SIGNAL(popupMenu(const TQString&, const TQPoint& )),
this,TQT_SLOT(showPopupMenu(const TQString&, const TQPoint& ))); this,TQ_SLOT(showPopupMenu(const TQString&, const TQPoint& )));
connect(html_part,TQT_SIGNAL(searchFinished()),this,TQT_SLOT(onFinished())); connect(html_part,TQ_SIGNAL(searchFinished()),this,TQ_SLOT(onFinished()));
connect(html_part,TQT_SIGNAL(saveTorrent(const KURL& )), connect(html_part,TQ_SIGNAL(saveTorrent(const KURL& )),
this,TQT_SLOT(onSaveTorrent(const KURL& ))); this,TQ_SLOT(onSaveTorrent(const KURL& )));
KParts::PartManager* pman = html_part->partManager(); KParts::PartManager* pman = html_part->partManager();
connect(pman,TQT_SIGNAL(partAdded(KParts::Part*)),this,TQT_SLOT(onFrameAdded(KParts::Part* ))); connect(pman,TQ_SIGNAL(partAdded(KParts::Part*)),this,TQ_SLOT(onFrameAdded(KParts::Part* )));
connect(html_part->browserExtension(),TQT_SIGNAL(loadingProgress(int)),this,TQT_SLOT(loadingProgress(int))); connect(html_part->browserExtension(),TQ_SIGNAL(loadingProgress(int)),this,TQ_SLOT(loadingProgress(int)));
prog = 0; prog = 0;
} }
@ -143,8 +143,8 @@ namespace kt
TDEHTMLPart* frame = dynamic_cast<TDEHTMLPart*>(p); TDEHTMLPart* frame = dynamic_cast<TDEHTMLPart*>(p);
if (frame) if (frame)
{ {
connect(frame,TQT_SIGNAL(popupMenu(const TQString&, const TQPoint& )), connect(frame,TQ_SIGNAL(popupMenu(const TQString&, const TQPoint& )),
this,TQT_SLOT(showPopupMenu(const TQString&, const TQPoint& ))); this,TQ_SLOT(showPopupMenu(const TQString&, const TQPoint& )));
} }
} }

@ -51,13 +51,13 @@ void StatsPlugin::load()
pmPrefsUi = new StatsPluginPrefs(); pmPrefsUi = new StatsPluginPrefs();
pmUpdTmr = new TQTimer(this); pmUpdTmr = new TQTimer(this);
connect(pmUpdTmr, TQT_SIGNAL(timeout () ), this, TQT_SLOT(UpdateData())); connect(pmUpdTmr, TQ_SIGNAL(timeout () ), this, TQ_SLOT(UpdateData()));
connect(pmPrefsUi, TQT_SIGNAL(Applied()), this, TQT_SLOT(RestartTimer())); connect(pmPrefsUi, TQ_SIGNAL(Applied()), this, TQ_SLOT(RestartTimer()));
connect(pmPrefsUi, TQT_SIGNAL(Applied()), this, TQT_SLOT(TogglePeersSpdCht())); connect(pmPrefsUi, TQ_SIGNAL(Applied()), this, TQ_SLOT(TogglePeersSpdCht()));
connect(pmPrefsUi, TQT_SIGNAL(Applied()), this, TQT_SLOT(ToggleLchInSwmDrawing())); connect(pmPrefsUi, TQ_SIGNAL(Applied()), this, TQ_SLOT(ToggleLchInSwmDrawing()));
connect(pmPrefsUi, TQT_SIGNAL(Applied()), this, TQT_SLOT(ToggleSdrInSwmDrawing())); connect(pmPrefsUi, TQ_SIGNAL(Applied()), this, TQ_SLOT(ToggleSdrInSwmDrawing()));
connect(pmPrefsUi, TQT_SIGNAL(Applied()), this, TQT_SLOT(ChangeMsmtsCounts())); connect(pmPrefsUi, TQ_SIGNAL(Applied()), this, TQ_SLOT(ChangeMsmtsCounts()));
connect(pmPrefsUi, TQT_SIGNAL(Applied()), this, TQT_SLOT(ChangeMaxMode())); connect(pmPrefsUi, TQ_SIGNAL(Applied()), this, TQ_SLOT(ChangeMaxMode()));
TogglePeersSpdCht(); TogglePeersSpdCht();
ChangeMaxMode(); ChangeMaxMode();
@ -76,13 +76,13 @@ void StatsPlugin::unload()
getGUI() -> removeToolWidget(pmUiCon); getGUI() -> removeToolWidget(pmUiCon);
getGUI() -> removePrefPage(pmPrefsUi); getGUI() -> removePrefPage(pmPrefsUi);
disconnect(pmUpdTmr, TQT_SIGNAL(timeout()), this, TQT_SLOT(UpdateData())); disconnect(pmUpdTmr, TQ_SIGNAL(timeout()), this, TQ_SLOT(UpdateData()));
disconnect(pmPrefsUi, TQT_SIGNAL(Applied()), this, TQT_SLOT(RestartTimer())); disconnect(pmPrefsUi, TQ_SIGNAL(Applied()), this, TQ_SLOT(RestartTimer()));
disconnect(pmPrefsUi, TQT_SIGNAL(Applied()), this, TQT_SLOT(TogglePeersSpdCht())); disconnect(pmPrefsUi, TQ_SIGNAL(Applied()), this, TQ_SLOT(TogglePeersSpdCht()));
disconnect(pmPrefsUi, TQT_SIGNAL(Applied()), this, TQT_SLOT(ToggleLchInSwmDrawing())); disconnect(pmPrefsUi, TQ_SIGNAL(Applied()), this, TQ_SLOT(ToggleLchInSwmDrawing()));
disconnect(pmPrefsUi, TQT_SIGNAL(Applied()), this, TQT_SLOT(ToggleSdrInSwmDrawing())); disconnect(pmPrefsUi, TQ_SIGNAL(Applied()), this, TQ_SLOT(ToggleSdrInSwmDrawing()));
disconnect(pmPrefsUi, TQT_SIGNAL(Applied()), this, TQT_SLOT(ChangeMsmtsCounts())); disconnect(pmPrefsUi, TQ_SIGNAL(Applied()), this, TQ_SLOT(ChangeMsmtsCounts()));
disconnect(pmPrefsUi, TQT_SIGNAL(Applied()), this, TQT_SLOT(ChangeMaxMode())); disconnect(pmPrefsUi, TQ_SIGNAL(Applied()), this, TQ_SLOT(ChangeMaxMode()));
delete pmUiSpd; delete pmUiSpd;
delete pmUiCon; delete pmUiCon;

@ -47,8 +47,8 @@ namespace kt
UPnPMCastSocket::UPnPMCastSocket(bool verbose) : verbose(verbose) UPnPMCastSocket::UPnPMCastSocket(bool verbose) : verbose(verbose)
{ {
routers.setAutoDelete(true); routers.setAutoDelete(true);
TQObject::connect(this,TQT_SIGNAL(readyRead()),this,TQT_SLOT(onReadyRead())); TQObject::connect(this,TQ_SIGNAL(readyRead()),this,TQ_SLOT(onReadyRead()));
TQObject::connect(this,TQT_SIGNAL(gotError(int)),this,TQT_SLOT(onError(int))); TQObject::connect(this,TQ_SIGNAL(gotError(int)),this,TQ_SLOT(onError(int)));
setAddressReuseable(true); setAddressReuseable(true);
setFamily(KNetwork::KResolver::IPv4Family); setFamily(KNetwork::KResolver::IPv4Family);
setBlocking(true); setBlocking(true);
@ -67,8 +67,8 @@ namespace kt
UPnPMCastSocket::~UPnPMCastSocket() UPnPMCastSocket::~UPnPMCastSocket()
{ {
leaveUPnPMCastGroup(); leaveUPnPMCastGroup();
TQObject::disconnect(this,TQT_SIGNAL(readyRead()),this,TQT_SLOT(onReadyRead())); TQObject::disconnect(this,TQ_SIGNAL(readyRead()),this,TQ_SLOT(onReadyRead()));
TQObject::disconnect(this,TQT_SIGNAL(gotError(int)),this,TQT_SLOT(onError(int))); TQObject::disconnect(this,TQ_SIGNAL(gotError(int)),this,TQ_SLOT(onError(int)));
} }
void UPnPMCastSocket::discover() void UPnPMCastSocket::discover()
@ -142,8 +142,8 @@ namespace kt
UPnPRouter* r = parseResponse(p.data()); UPnPRouter* r = parseResponse(p.data());
if (r) if (r)
{ {
TQObject::connect(r,TQT_SIGNAL(xmlFileDownloaded( UPnPRouter*, bool )), TQObject::connect(r,TQ_SIGNAL(xmlFileDownloaded( UPnPRouter*, bool )),
this,TQT_SLOT(onXmlFileDownloaded( UPnPRouter*, bool ))); this,TQ_SLOT(onXmlFileDownloaded( UPnPRouter*, bool )));
// download it's xml file // download it's xml file
r->downloadXMLFile(); r->downloadXMLFile();
@ -269,7 +269,7 @@ namespace kt
{ {
UPnPRouter* r = new UPnPRouter(server,location); UPnPRouter* r = new UPnPRouter(server,location);
// download it's xml file // download it's xml file
TQObject::connect(r,TQT_SIGNAL(xmlFileDownloaded( UPnPRouter*, bool )),this,TQT_SLOT(onXmlFileDownloaded( UPnPRouter*, bool ))); TQObject::connect(r,TQ_SIGNAL(xmlFileDownloaded( UPnPRouter*, bool )),this,TQ_SLOT(onXmlFileDownloaded( UPnPRouter*, bool )));
r->downloadXMLFile(); r->downloadXMLFile();
} }
} }

@ -46,8 +46,8 @@ namespace kt
void UPnPPrefPage::createWidget(TQWidget* parent) void UPnPPrefPage::createWidget(TQWidget* parent)
{ {
widget = new UPnPPrefWidget(parent); widget = new UPnPPrefWidget(parent);
TQObject::connect(sock,TQT_SIGNAL(discovered(UPnPRouter* )),widget,TQT_SLOT(addDevice(UPnPRouter* ))); TQObject::connect(sock,TQ_SIGNAL(discovered(UPnPRouter* )),widget,TQ_SLOT(addDevice(UPnPRouter* )));
TQObject::connect(widget,TQT_SIGNAL(rescan()),sock,TQT_SLOT(discover())); TQObject::connect(widget,TQ_SIGNAL(rescan()),sock,TQ_SLOT(discover()));
} }
void UPnPPrefPage::deleteWidget() void UPnPPrefPage::deleteWidget()

@ -41,9 +41,9 @@ namespace kt
: UPnPWidget(parent,name,fl) : UPnPWidget(parent,name,fl)
{ {
def_router = 0; def_router = 0;
connect(m_forward_btn,TQT_SIGNAL(clicked()),this,TQT_SLOT(onForwardBtnClicked())); connect(m_forward_btn,TQ_SIGNAL(clicked()),this,TQ_SLOT(onForwardBtnClicked()));
connect(m_undo_forward_btn,TQT_SIGNAL(clicked()),this,TQT_SLOT(onUndoForwardBtnClicked())); connect(m_undo_forward_btn,TQ_SIGNAL(clicked()),this,TQ_SLOT(onUndoForwardBtnClicked()));
connect(m_rescan,TQT_SIGNAL(clicked()),this,TQT_SLOT(onRescanClicked())); connect(m_rescan,TQ_SIGNAL(clicked()),this,TQ_SLOT(onRescanClicked()));
bt::Globals::instance().getPortList().setListener(this); bt::Globals::instance().getPortList().setListener(this);
} }
@ -72,7 +72,7 @@ namespace kt
void UPnPPrefWidget::addDevice(UPnPRouter* r) void UPnPPrefWidget::addDevice(UPnPRouter* r)
{ {
connect(r,TQT_SIGNAL(updateGUI()),this,TQT_SLOT(updatePortMappings())); connect(r,TQ_SIGNAL(updateGUI()),this,TQ_SLOT(updatePortMappings()));
TDEListViewItem* item = new TDEListViewItem(m_device_list,r->getDescription().friendlyName); TDEListViewItem* item = new TDEListViewItem(m_device_list,r->getDescription().friendlyName);
item->setMultiLinesEnabled(true); item->setMultiLinesEnabled(true);
itemmap[item] = r; itemmap[item] = r;

@ -171,7 +171,7 @@ namespace kt
{ {
// downlaod XML description into a temporary file in /tmp // downlaod XML description into a temporary file in /tmp
TDEIO::Job* job = TDEIO::file_copy(location,tmp_file,-1,true,false,false); TDEIO::Job* job = TDEIO::file_copy(location,tmp_file,-1,true,false,false);
connect(job,TQT_SIGNAL(result(TDEIO::Job *)),this,TQT_SLOT(downloadFinished( TDEIO::Job* ))); connect(job,TQ_SIGNAL(result(TDEIO::Job *)),this,TQ_SLOT(downloadFinished( TDEIO::Job* )));
} }
void UPnPRouter::debugPrintData() void UPnPRouter::debugPrintData()
@ -339,12 +339,12 @@ namespace kt
HTTPRequest* r = new HTTPRequest(http_hdr,query,location.host(),location.port(),verbose); HTTPRequest* r = new HTTPRequest(http_hdr,query,location.host(),location.port(),verbose);
connect(r,TQT_SIGNAL(replyError(bt::HTTPRequest* ,const TQString& )), connect(r,TQ_SIGNAL(replyError(bt::HTTPRequest* ,const TQString& )),
this,TQT_SLOT(onReplyError(bt::HTTPRequest* ,const TQString& ))); this,TQ_SLOT(onReplyError(bt::HTTPRequest* ,const TQString& )));
connect(r,TQT_SIGNAL(replyOK(bt::HTTPRequest* ,const TQString& )), connect(r,TQ_SIGNAL(replyOK(bt::HTTPRequest* ,const TQString& )),
this,TQT_SLOT(onReplyOK(bt::HTTPRequest* ,const TQString& ))); this,TQ_SLOT(onReplyOK(bt::HTTPRequest* ,const TQString& )));
connect(r,TQT_SIGNAL(error(bt::HTTPRequest*, bool )), connect(r,TQ_SIGNAL(error(bt::HTTPRequest*, bool )),
this,TQT_SLOT(onError(bt::HTTPRequest*, bool ))); this,TQ_SLOT(onError(bt::HTTPRequest*, bool )));
r->start(); r->start();
if (!at_exit) if (!at_exit)
active_reqs.append(r); active_reqs.append(r);

@ -212,7 +212,7 @@ namespace kt
else else
{ {
php_response_hdr = hdr; php_response_hdr = hdr;
connect(php,TQT_SIGNAL(finished()),this,TQT_SLOT(onPHPFinished())); connect(php,TQ_SIGNAL(finished()),this,TQ_SLOT(onPHPFinished()));
state = PROCESSING_PHP; state = PROCESSING_PHP;
} }
} }

@ -75,9 +75,9 @@ namespace kt
TQSocket* socket = new TQSocket(this); TQSocket* socket = new TQSocket(this);
socket->setSocket(s); socket->setSocket(s);
connect(socket, TQT_SIGNAL(readyRead()), this, TQT_SLOT(slotSocketReadyToRead())); connect(socket, TQ_SIGNAL(readyRead()), this, TQ_SLOT(slotSocketReadyToRead()));
connect(socket, TQT_SIGNAL(delayedCloseFinished()), this, TQT_SLOT(slotConnectionClosed())); connect(socket, TQ_SIGNAL(delayedCloseFinished()), this, TQ_SLOT(slotConnectionClosed()));
connect(socket, TQT_SIGNAL(connectionClosed()), this, TQT_SLOT(slotConnectionClosed())); connect(socket, TQ_SIGNAL(connectionClosed()), this, TQ_SLOT(slotConnectionClosed()));
HttpClientHandler* handler = new HttpClientHandler(this,socket); HttpClientHandler* handler = new HttpClientHandler(this,socket);
clients.insert(socket,handler); clients.insert(socket,handler);
@ -381,7 +381,7 @@ namespace kt
{ {
// first send back login page // first send back login page
redirectToLoginPage(hdlr); redirectToLoginPage(hdlr);
TQTimer::singleShot(1000,kapp,TQT_SLOT(quit())); TQTimer::singleShot(1000,kapp,TQ_SLOT(quit()));
} }
else if (redirect) else if (redirect)
{ {

@ -37,8 +37,8 @@ namespace kt
PhpHandler::PhpHandler(const TQString & php_exe,PhpInterface *php) : TQProcess(php_exe),php_i(php) PhpHandler::PhpHandler(const TQString & php_exe,PhpInterface *php) : TQProcess(php_exe),php_i(php)
{ {
connect(this,TQT_SIGNAL(readyReadStdout()),this,TQT_SLOT(onReadyReadStdout())); connect(this,TQ_SIGNAL(readyReadStdout()),this,TQ_SLOT(onReadyReadStdout()));
connect(this,TQT_SIGNAL(processExited()),this,TQT_SLOT(onExited())); connect(this,TQ_SIGNAL(processExited()),this,TQ_SLOT(onExited()));
} }
PhpHandler::~PhpHandler() PhpHandler::~PhpHandler()

@ -50,10 +50,10 @@ namespace kt
void ZeroConfPlugin::load() void ZeroConfPlugin::load()
{ {
CoreInterface* core = getCore(); CoreInterface* core = getCore();
connect(core,TQT_SIGNAL(torrentAdded( kt::TorrentInterface* )), connect(core,TQ_SIGNAL(torrentAdded( kt::TorrentInterface* )),
this,TQT_SLOT(torrentAdded( kt::TorrentInterface* ))); this,TQ_SLOT(torrentAdded( kt::TorrentInterface* )));
connect(core,TQT_SIGNAL(torrentRemoved( kt::TorrentInterface* )), connect(core,TQ_SIGNAL(torrentRemoved( kt::TorrentInterface* )),
this,TQT_SLOT(torrentRemoved( kt::TorrentInterface* ))); this,TQ_SLOT(torrentRemoved( kt::TorrentInterface* )));
// go over existing torrents and add them // go over existing torrents and add them
bt::QueueManager* qman = core->getQueueManager(); bt::QueueManager* qman = core->getQueueManager();
@ -66,10 +66,10 @@ namespace kt
void ZeroConfPlugin::unload() void ZeroConfPlugin::unload()
{ {
CoreInterface* core = getCore(); CoreInterface* core = getCore();
disconnect(core,TQT_SIGNAL(torrentAdded( kt::TorrentInterface* )), disconnect(core,TQ_SIGNAL(torrentAdded( kt::TorrentInterface* )),
this,TQT_SLOT(torrentAdded( kt::TorrentInterface* ))); this,TQ_SLOT(torrentAdded( kt::TorrentInterface* )));
disconnect(core,TQT_SIGNAL(torrentRemoved( kt::TorrentInterface* )), disconnect(core,TQ_SIGNAL(torrentRemoved( kt::TorrentInterface* )),
this,TQT_SLOT(torrentRemoved( kt::TorrentInterface*))); this,TQ_SLOT(torrentRemoved( kt::TorrentInterface*)));
bt::PtrMap<kt::TorrentInterface*,AvahiService>::iterator i = services.begin(); bt::PtrMap<kt::TorrentInterface*,AvahiService>::iterator i = services.begin();
while (i != services.end()) while (i != services.end())
@ -93,8 +93,8 @@ namespace kt
tc->addPeerSource(av); tc->addPeerSource(av);
Out(SYS_ZCO|LOG_NOTICE) << "ZeroConf service added for " Out(SYS_ZCO|LOG_NOTICE) << "ZeroConf service added for "
<< tc->getStats().torrent_name << endl; << tc->getStats().torrent_name << endl;
connect(av,TQT_SIGNAL(serviceDestroyed( AvahiService* )), connect(av,TQ_SIGNAL(serviceDestroyed( AvahiService* )),
this,TQT_SLOT(avahiServiceDestroyed( AvahiService* ))); this,TQ_SLOT(avahiServiceDestroyed( AvahiService* )));
} }

Loading…
Cancel
Save