rename the following methods:

tqparent parent
tqmask mask


git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ktorrent@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 13 years ago
parent 2a99db3ebc
commit 936370a641

@ -58,8 +58,8 @@ void ManualPeerSource::signalPeersReady()
//AddPeerWidget //AddPeerWidget
AddPeerWidget::AddPeerWidget(kt::TorrentInterface* tc, TQWidget *tqparent, const char *name) AddPeerWidget::AddPeerWidget(kt::TorrentInterface* tc, TQWidget *parent, const char *name)
:AddPeerWidgetBase(tqparent, name), m_tc(tc) :AddPeerWidgetBase(parent, name), m_tc(tc)
{ {
if(!tc) if(!tc)
{ {

@ -81,7 +81,7 @@ class AddPeerWidget: public AddPeerWidgetBase
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
AddPeerWidget(kt::TorrentInterface* tc, TQWidget *tqparent = 0, const char *name = 0); AddPeerWidget(kt::TorrentInterface* tc, TQWidget *parent = 0, const char *name = 0);
~AddPeerWidget(); ~AddPeerWidget();
public slots: public slots:

@ -49,8 +49,8 @@
using namespace kt; using namespace kt;
FileSelectDlg::FileSelectDlg(GroupManager* gm, bool* user, bool* start, TQWidget* tqparent, const char* name, bool modal, WFlags fl) FileSelectDlg::FileSelectDlg(GroupManager* gm, bool* user, bool* start, TQWidget* parent, const char* name, bool modal, WFlags fl)
: FileSelectDlgBase(tqparent, 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, TQT_SIGNAL(clicked()), this, TQT_SLOT(selectAll()));

@ -54,7 +54,7 @@ class FileSelectDlg : public FileSelectDlgBase, public kt::FileTreeRootListener
bool* m_start; bool* m_start;
public: public:
FileSelectDlg(kt::GroupManager* gm, bool* user, bool* start, TQWidget* tqparent = 0, const char* name = 0, FileSelectDlg(kt::GroupManager* gm, bool* user, bool* start, TQWidget* parent = 0, const char* name = 0,
bool modal = true, WFlags fl = 0); bool modal = true, WFlags fl = 0);
virtual ~FileSelectDlg(); virtual ~FileSelectDlg();

@ -34,8 +34,8 @@
FilterBar::FilterBar(TQWidget *tqparent, const char *name) : FilterBar::FilterBar(TQWidget *parent, const char *name) :
TQWidget(tqparent, name) TQWidget(parent, name)
{ {
const int gap = 3; const int gap = 3;

@ -45,7 +45,7 @@ class FilterBar : public TQWidget
TQ_OBJECT TQ_OBJECT
public: public:
FilterBar ( TQWidget *tqparent = 0, const char *name = 0 ); FilterBar ( TQWidget *parent = 0, const char *name = 0 );
virtual ~FilterBar(); virtual ~FilterBar();
bool matchesFilter(kt::TorrentInterface* tc); bool matchesFilter(kt::TorrentInterface* tc);

@ -41,13 +41,13 @@ using namespace bt;
namespace kt namespace kt
{ {
GroupViewItem::GroupViewItem(GroupView* tqparent,Group* g) : KListViewItem(tqparent),gview(tqparent) GroupViewItem::GroupViewItem(GroupView* parent,Group* g) : KListViewItem(parent),gview(parent)
{ {
setText(0,g->groupName()); setText(0,g->groupName());
setPixmap(0,g->groupIcon()); setPixmap(0,g->groupIcon());
} }
GroupViewItem::GroupViewItem(GroupView* gview,KListViewItem* tqparent,Group* g) : KListViewItem(tqparent),gview(gview) GroupViewItem::GroupViewItem(GroupView* gview,KListViewItem* parent,Group* g) : KListViewItem(parent),gview(gview)
{ {
setText(0,g->groupName()); setText(0,g->groupName());
setPixmap(0,g->groupIcon()); setPixmap(0,g->groupIcon());
@ -65,8 +65,8 @@ namespace kt
return TQString::compare(text(1),i->text(1)); return TQString::compare(text(1),i->text(1));
} }
GroupView::GroupView(ViewManager* view,KActionCollection* col,TQWidget *tqparent, const char *name) GroupView::GroupView(ViewManager* view,KActionCollection* col,TQWidget *parent, const char *name)
: KListView(tqparent, name),view(view),custom_root(0) : KListView(parent, name),view(view),custom_root(0)
{ {
setFullWidth(true); setFullWidth(true);
setRootIsDecorated(true); setRootIsDecorated(true);
@ -226,12 +226,12 @@ namespace kt
} }
} }
GroupViewItem* GroupView::addGroup(Group* g,KListViewItem* tqparent) GroupViewItem* GroupView::addGroup(Group* g,KListViewItem* parent)
{ {
GroupViewItem* li = 0; GroupViewItem* li = 0;
if (tqparent) if (parent)
{ {
li = new GroupViewItem(this,tqparent,g); li = new GroupViewItem(this,parent,g);
} }
else else
{ {
@ -240,7 +240,7 @@ namespace kt
} }
groups.insert(li,g); groups.insert(li,g);
if (custom_root && custom_root->childCount() == 1 && custom_root == tqparent) if (custom_root && custom_root->childCount() == 1 && custom_root == parent)
setOpen(custom_root,true); setOpen(custom_root,true);
return li; return li;

@ -40,8 +40,8 @@ namespace kt
Group* g; Group* g;
GroupView* gview; GroupView* gview;
public: public:
GroupViewItem(GroupView* tqparent,Group* g); GroupViewItem(GroupView* parent,Group* g);
GroupViewItem(GroupView* gview,KListViewItem* tqparent,Group* g); GroupViewItem(GroupView* gview,KListViewItem* parent,Group* g);
virtual ~GroupViewItem(); virtual ~GroupViewItem();
virtual int compare(TQListViewItem* i,int col,bool ascending) const; virtual int compare(TQListViewItem* i,int col,bool ascending) const;
@ -55,7 +55,7 @@ namespace kt
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
GroupView(ViewManager* view,KActionCollection* col,TQWidget *tqparent = 0, const char *name = 0); GroupView(ViewManager* view,KActionCollection* col,TQWidget *parent = 0, const char *name = 0);
virtual ~GroupView(); virtual ~GroupView();
/// Get the current group /// Get the current group
@ -100,7 +100,7 @@ namespace kt
private: private:
void createMenu(KActionCollection* col); void createMenu(KActionCollection* col);
GroupViewItem* addGroup(Group* g,KListViewItem* tqparent); GroupViewItem* addGroup(Group* g,KListViewItem* parent);
private: private:
ViewManager* view; ViewManager* view;

@ -40,8 +40,8 @@
using namespace bt; using namespace bt;
IPFilterWidget::IPFilterWidget(TQWidget *tqparent, const char *name) IPFilterWidget::IPFilterWidget(TQWidget *parent, const char *name)
:BlacklistWidgetBase(tqparent, name) :BlacklistWidgetBase(parent, name)
{ {
IPBlocklist& ipfilter = IPBlocklist::instance(); IPBlocklist& ipfilter = IPBlocklist::instance();
TQStringList* blocklist = ipfilter.getBlocklist(); TQStringList* blocklist = ipfilter.getBlocklist();

@ -32,7 +32,7 @@ class IPFilterWidget: public BlacklistWidgetBase
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
IPFilterWidget(TQWidget *tqparent = 0, const char *name = 0); IPFilterWidget(TQWidget *parent = 0, const char *name = 0);
virtual void btnApply_clicked(); virtual void btnApply_clicked();
virtual void btnOk_clicked(); virtual void btnOk_clicked();

@ -55,7 +55,7 @@ using namespace bt;
using namespace kt; using namespace kt;
TorrentView::TorrentView(KTorrentView* tqparent) : KListView(tqparent),ktview(tqparent) TorrentView::TorrentView(KTorrentView* parent) : KListView(parent),ktview(parent)
{} {}
TorrentView::~TorrentView() TorrentView::~TorrentView()
@ -82,8 +82,8 @@ bool TorrentView::eventFilter(TQObject* watched, TQEvent* e)
return KListView::eventFilter(watched, e); return KListView::eventFilter(watched, e);
} }
KTorrentView::KTorrentView(TQWidget *tqparent) KTorrentView::KTorrentView(TQWidget *parent)
: TQWidget(tqparent),menu(0),current_group(0),running(0),total(0),view(0),filter_bar(0) : TQWidget(parent),menu(0),current_group(0),running(0),total(0),view(0),filter_bar(0)
{ {
TQVBoxLayout* tqlayout = new TQVBoxLayout(this); TQVBoxLayout* tqlayout = new TQVBoxLayout(this);
tqlayout->setAutoAdd(true); tqlayout->setAutoAdd(true);

@ -48,7 +48,7 @@ using namespace bt;
class TorrentView : public KListView class TorrentView : public KListView
{ {
public: public:
TorrentView(KTorrentView* tqparent); TorrentView(KTorrentView* parent);
virtual ~TorrentView(); virtual ~TorrentView();
virtual bool eventFilter(TQObject* watched, TQEvent* e); virtual bool eventFilter(TQObject* watched, TQEvent* e);
@ -81,7 +81,7 @@ public:
/** /**
* Default constructor * Default constructor
*/ */
KTorrentView(TQWidget *tqparent); KTorrentView(TQWidget *parent);
/** /**
* Destructor * Destructor

@ -116,10 +116,10 @@ static double Percentage(const TorrentStats & s)
KTorrentViewItem::KTorrentViewItem(KTorrentView* tqparent,TorrentInterface* tc) KTorrentViewItem::KTorrentViewItem(KTorrentView* parent,TorrentInterface* tc)
: KListViewItem(tqparent->listView()),tc(tc) : KListViewItem(parent->listView()),tc(tc)
{ {
m_parent = tqparent; m_parent = parent;
update(); update();
} }

@ -39,7 +39,7 @@ class KTorrentViewItem : public KListViewItem
kt::TorrentInterface* tc; kt::TorrentInterface* tc;
bt::Int64 eta; bt::Int64 eta;
public: public:
KTorrentViewItem(KTorrentView* tqparent,kt::TorrentInterface* tc); KTorrentViewItem(KTorrentView* parent,kt::TorrentInterface* tc);
virtual ~KTorrentViewItem(); virtual ~KTorrentViewItem();
kt::TorrentInterface* getTC() {return tc;} kt::TorrentInterface* getTC() {return tc;}

@ -28,76 +28,76 @@
using namespace kt; using namespace kt;
KTorrentViewMenu::KTorrentViewMenu (KTorrentView *tqparent, const char *name ) KTorrentViewMenu::KTorrentViewMenu (KTorrentView *parent, const char *name )
: KPopupMenu ( tqparent, name ),view(tqparent) : KPopupMenu ( parent, name ),view(parent)
{ {
KIconLoader* iload = KGlobal::iconLoader(); KIconLoader* iload = KGlobal::iconLoader();
stop_id = insertItem( stop_id = insertItem(
iload->loadIconSet("ktstop",KIcon::Small),i18n("to stop", "Stop"), iload->loadIconSet("ktstop",KIcon::Small),i18n("to stop", "Stop"),
tqparent,TQT_SLOT(stopDownloads())); parent,TQT_SLOT(stopDownloads()));
start_id = insertItem( start_id = insertItem(
iload->loadIconSet("ktstart",KIcon::Small),i18n("to start", "Start"), iload->loadIconSet("ktstart",KIcon::Small),i18n("to start", "Start"),
tqparent,TQT_SLOT(startDownloads())); parent,TQT_SLOT(startDownloads()));
remove_id = insertItem( remove_id = insertItem(
iload->loadIconSet("ktremove",KIcon::Small),i18n("Remove Torrent"), iload->loadIconSet("ktremove",KIcon::Small),i18n("Remove Torrent"),
tqparent,TQT_SLOT(removeDownloads())); parent,TQT_SLOT(removeDownloads()));
remove_all_id = insertItem( remove_all_id = insertItem(
iload->loadIconSet("ktremove",KIcon::Small),i18n("Remove Torrent and Data"), iload->loadIconSet("ktremove",KIcon::Small),i18n("Remove Torrent and Data"),
tqparent,TQT_SLOT(removeDownloadsAndData())); parent,TQT_SLOT(removeDownloadsAndData()));
queue_id = insertItem( queue_id = insertItem(
iload->loadIconSet("player_playlist",KIcon::Small),i18n("Enqueue/Dequeue"), iload->loadIconSet("player_playlist",KIcon::Small),i18n("Enqueue/Dequeue"),
tqparent,TQT_SLOT(queueSlot())); parent,TQT_SLOT(queueSlot()));
insertSeparator(); insertSeparator();
add_peer_id = insertItem( add_peer_id = insertItem(
iload->loadIconSet("add", KIcon::Small), i18n("Add Peers"), iload->loadIconSet("add", KIcon::Small), i18n("Add Peers"),
tqparent, TQT_SLOT(showAddPeersWidget())); parent, TQT_SLOT(showAddPeersWidget()));
peer_sources_menu = new KPopupMenu(this); peer_sources_menu = new KPopupMenu(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"), tqparent, TQT_SLOT(dhtSlot())); dht_id = peer_sources_menu->insertItem(i18n("DHT"), parent, TQT_SLOT(dhtSlot()));
ut_pex_id = peer_sources_menu->insertItem(i18n("Peer Exchange"), tqparent, TQT_SLOT(utPexSlot())); ut_pex_id = peer_sources_menu->insertItem(i18n("Peer Exchange"), parent, TQT_SLOT(utPexSlot()));
insertSeparator(); insertSeparator();
announce_id = insertItem( announce_id = insertItem(
iload->loadIconSet("apply",KIcon::Small),i18n("Manual Announce"), iload->loadIconSet("apply",KIcon::Small),i18n("Manual Announce"),
tqparent,TQT_SLOT(manualAnnounce())); parent,TQT_SLOT(manualAnnounce()));
preview_id = insertItem( preview_id = insertItem(
iload->loadIconSet("frame_image",KIcon::Small),i18n("Preview"), iload->loadIconSet("frame_image",KIcon::Small),i18n("Preview"),
tqparent, TQT_SLOT(previewFiles())); parent, TQT_SLOT(previewFiles()));
insertSeparator(); insertSeparator();
dirs_sub_menu = new KPopupMenu(this); dirs_sub_menu = new KPopupMenu(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",KIcon::Small), i18n("Data Directory"), outputdir_id = dirs_sub_menu->insertItem(iload->loadIconSet("folder",KIcon::Small), i18n("Data Directory"),
tqparent, TQT_SLOT(openOutputDirectory())); parent, TQT_SLOT(openOutputDirectory()));
torxdir_id = dirs_sub_menu->insertItem(iload->loadIconSet("folder",KIcon::Small), i18n("Temporary Directory"), torxdir_id = dirs_sub_menu->insertItem(iload->loadIconSet("folder",KIcon::Small), i18n("Temporary Directory"),
tqparent, TQT_SLOT(openTorXDirectory())); parent, TQT_SLOT(openTorXDirectory()));
downloaddir_id = insertItem(i18n("Set Download Location"), tqparent, TQT_SLOT(setDownloadLocationSlot())); downloaddir_id = insertItem(i18n("Set Download Location"), parent, TQT_SLOT(setDownloadLocationSlot()));
insertSeparator(); insertSeparator();
remove_from_group_id = insertItem(i18n("Remove From Group"),tqparent, TQT_SLOT(removeFromGroup())); remove_from_group_id = insertItem(i18n("Remove From Group"),parent, TQT_SLOT(removeFromGroup()));
groups_sub_menu = new KPopupMenu(this); groups_sub_menu = new KPopupMenu(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"),tqparent, TQT_SLOT(checkDataIntegrity())); scan_id = insertItem(i18n("Check Data Integrity"),parent, TQT_SLOT(checkDataIntegrity()));
connect(groups_sub_menu,TQT_SIGNAL(activated(int)),this,TQT_SLOT(gsmItemActived(int))); connect(groups_sub_menu,TQT_SIGNAL(activated(int)),this,TQT_SLOT(gsmItemActived(int)));
traffic_lim_id = insertItem(i18n("Speed Limits"),tqparent,TQT_SLOT(speedLimits())); traffic_lim_id = insertItem(i18n("Speed Limits"),parent,TQT_SLOT(speedLimits()));
} }

@ -32,7 +32,7 @@ class KTorrentViewMenu : public KPopupMenu
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
KTorrentViewMenu(KTorrentView *tqparent, const char *name = 0 ); KTorrentViewMenu(KTorrentView *parent, const char *name = 0 );
virtual ~KTorrentViewMenu(); virtual ~KTorrentViewMenu();
/// Show the menu at the given point /// Show the menu at the given point

@ -39,10 +39,10 @@
namespace Ideal { namespace Ideal {
Button::Button(ButtonBar *tqparent, const TQString text, const TQIconSet &icon, Button::Button(ButtonBar *parent, const TQString text, const TQIconSet &icon,
const TQString &description) const TQString &description)
:TQPushButton(icon, text, tqparent), m_buttonBar(tqparent), m_description(description), :TQPushButton(icon, text, parent), m_buttonBar(parent), m_description(description),
m_place(tqparent->place()), m_realText(text), m_realIconSet(icon) m_place(parent->place()), m_realText(text), m_realIconSet(icon)
{ {
hide(); hide();
setFlat(true); setFlat(true);

@ -41,7 +41,7 @@ class Button : public TQPushButton {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
Button(ButtonBar *tqparent, const TQString text, const TQIconSet &icon = TQIconSet(), Button(ButtonBar *parent, const TQString text, const TQIconSet &icon = TQIconSet(),
const TQString &description = TQString()); const TQString &description = TQString());
/**Sets the description used as a tooltip.*/ /**Sets the description used as a tooltip.*/

@ -32,8 +32,8 @@ namespace Ideal {
//ButtonLayout class //ButtonLayout class
ButtonLayout::ButtonLayout(ButtonBar *tqparent, Direction d, int margin, int spacing, const char *name) ButtonLayout::ButtonLayout(ButtonBar *parent, Direction d, int margin, int spacing, const char *name)
:TQBoxLayout(tqparent, d, margin, spacing, name), m_buttonBar(tqparent) :TQBoxLayout(parent, d, margin, spacing, name), m_buttonBar(parent)
{ {
} }
@ -62,8 +62,8 @@ TQSize ButtonLayout::tqminimumSize() const
//ButtonBar class //ButtonBar class
ButtonBar::ButtonBar(Place place, ButtonMode mode, TQWidget *tqparent, const char *name) ButtonBar::ButtonBar(Place place, ButtonMode mode, TQWidget *parent, const char *name)
:TQWidget(tqparent, name), m_place(place), l(0), m_shrinked(false), m_autoResize(true) :TQWidget(parent, name), m_place(place), l(0), m_shrinked(false), m_autoResize(true)
{ {
switch (m_place) switch (m_place)
{ {

@ -37,7 +37,7 @@ class ButtonBar;
Overrides tqminimumSize method to allow shrinking button bar buttons.*/ Overrides tqminimumSize method to allow shrinking button bar buttons.*/
class ButtonLayout: public TQBoxLayout{ class ButtonLayout: public TQBoxLayout{
public: public:
ButtonLayout(ButtonBar *tqparent, Direction d, int margin = 0, int spacing = -1, const char * name = 0); ButtonLayout(ButtonBar *parent, Direction d, int margin = 0, int spacing = -1, const char * name = 0);
virtual TQSize tqminimumSize() const; virtual TQSize tqminimumSize() const;
@ -56,7 +56,7 @@ class ButtonBar : public TQWidget {
TQ_OBJECT TQ_OBJECT
public: public:
ButtonBar(Place place, ButtonMode mode = IconsAndText, ButtonBar(Place place, ButtonMode mode = IconsAndText,
TQWidget *tqparent = 0, const char *name = 0); TQWidget *parent = 0, const char *name = 0);
virtual ~ButtonBar(); virtual ~ButtonBar();
/**Adds a button to the bar.*/ /**Adds a button to the bar.*/

@ -39,9 +39,9 @@
#include "button.h" #include "button.h"
#include "dmainwindow.h" #include "dmainwindow.h"
DDockWindow::DDockWindow(DMainWindow *tqparent, Position position) DDockWindow::DDockWindow(DMainWindow *parent, Position position)
:TQDockWindow(TQDockWindow::InDock, tqparent), m_position(position), m_visible(false), :TQDockWindow(TQDockWindow::InDock, parent), m_position(position), m_visible(false),
m_mainWindow(tqparent), m_doNotCloseActiveWidget(false), m_toggledButton(0), m_lastContextMenuButton(0) m_mainWindow(parent), m_doNotCloseActiveWidget(false), m_toggledButton(0), m_lastContextMenuButton(0)
{ {
setMovingEnabled(false); setMovingEnabled(false);
setResizeEnabled(true); setResizeEnabled(true);
@ -347,7 +347,7 @@ bool DDockWindow::isActive()
else else
{ {
do { do {
w = (TQWidget*)w->tqparent(); w = (TQWidget*)w->parent();
if (w && (w == toolWidget)) return true; if (w && (w == toolWidget)) return true;
} while (w); } while (w);
} }

@ -44,7 +44,7 @@ class DDockWindow : public TQDockWindow {
public: public:
enum Position { Bottom, Left, Right }; enum Position { Bottom, Left, Right };
DDockWindow(DMainWindow *tqparent, Position position); DDockWindow(DMainWindow *parent, Position position);
virtual ~DDockWindow(); virtual ~DDockWindow();
virtual void setVisible(bool v); virtual void setVisible(bool v);

@ -29,8 +29,8 @@
#include "dtabwidget.h" #include "dtabwidget.h"
#include "docksplitter.h" #include "docksplitter.h"
DMainWindow::DMainWindow(TQWidget *tqparent, const char *name) DMainWindow::DMainWindow(TQWidget *parent, const char *name)
:KParts::MainWindow(tqparent, name), m_firstRemoved(false), m_currentWidget(0) :KParts::MainWindow(parent, name), m_firstRemoved(false), m_currentWidget(0)
{ {
loadSettings(); loadSettings();
createToolWindows(); createToolWindows();

@ -35,7 +35,7 @@ class DMainWindow: public KParts::MainWindow {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
DMainWindow(TQWidget *tqparent = 0, const char *name = 0); DMainWindow(TQWidget *parent = 0, const char *name = 0);
virtual ~DMainWindow(); virtual ~DMainWindow();
/**@return The tool window in given @p position.*/ /**@return The tool window in given @p position.*/

@ -23,8 +23,8 @@
namespace Ideal { namespace Ideal {
DockSplitter::DockSplitter(Qt::Orientation orientation, TQWidget *tqparent, const char *name) DockSplitter::DockSplitter(Qt::Orientation orientation, TQWidget *parent, const char *name)
:TQSplitter(tqparent, name), m_orientation(orientation) :TQSplitter(parent, name), m_orientation(orientation)
{ {
switch (m_orientation) switch (m_orientation)
{ {

@ -34,7 +34,7 @@ class DockSplitter: public TQSplitter {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
DockSplitter(Qt::Orientation orientation, TQWidget *tqparent = 0, const char *name = 0); DockSplitter(Qt::Orientation orientation, TQWidget *parent = 0, const char *name = 0);
~DockSplitter(); ~DockSplitter();
void addDock(uint row, uint col, TQWidget *dock); void addDock(uint row, uint col, TQWidget *dock);

@ -26,8 +26,8 @@
#include <kiconloader.h> #include <kiconloader.h>
#include <kapplication.h> #include <kapplication.h>
DTabWidget::DTabWidget(TQWidget *tqparent, const char *name) DTabWidget::DTabWidget(TQWidget *parent, const char *name)
:KTabWidget(tqparent, name), m_closeButton(0) :KTabWidget(parent, name), m_closeButton(0)
{ {
setFocusPolicy(TQ_NoFocus); setFocusPolicy(TQ_NoFocus);
setMargin(0); setMargin(0);

@ -28,7 +28,7 @@ class DTabWidget: public KTabWidget {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
DTabWidget(TQWidget *tqparent=0, const char *name=0); DTabWidget(TQWidget *parent=0, const char *name=0);
/**@return The close button at the top right corner. /**@return The close button at the top right corner.
May be 0 if the configuration do not allow close buttons or the tabbar.*/ May be 0 if the configuration do not allow close buttons or the tabbar.*/

@ -29,8 +29,8 @@
#include <kmessagebox.h> #include <kmessagebox.h>
#include <klocale.h> #include <klocale.h>
PasteDialog::PasteDialog(KTorrentCore* core, TQWidget *tqparent, const char *name) PasteDialog::PasteDialog(KTorrentCore* core, TQWidget *parent, const char *name)
:PasteDlgBase(tqparent, name) :PasteDlgBase(parent, name)
{ {
m_core = core; m_core = core;
TQClipboard *cb = TQApplication::tqclipboard(); TQClipboard *cb = TQApplication::tqclipboard();

@ -36,7 +36,7 @@ public slots:
virtual void btnOK_clicked(); virtual void btnOK_clicked();
public: public:
PasteDialog(KTorrentCore* core, TQWidget *tqparent = 0, const char *name = 0); PasteDialog(KTorrentCore* core, TQWidget *parent = 0, const char *name = 0);
private: private:
KTorrentCore* m_core; KTorrentCore* m_core;

@ -152,9 +152,9 @@ DownloadPrefPage::~ DownloadPrefPage()
delete dp; delete dp;
} }
void DownloadPrefPage::createWidget(TQWidget* tqparent) void DownloadPrefPage::createWidget(TQWidget* parent)
{ {
dp = new DownloadPref(tqparent); dp = new DownloadPref(parent);
updateData(); updateData();
} }
@ -222,9 +222,9 @@ GeneralPrefPage::~GeneralPrefPage()
delete gp; delete gp;
} }
void GeneralPrefPage::createWidget(TQWidget* tqparent) void GeneralPrefPage::createWidget(TQWidget* parent)
{ {
gp = new GeneralPref(tqparent); gp = new GeneralPref(parent);
updateData(); updateData();
connect(gp->custom_ip_check, TQT_SIGNAL(toggled(bool)), connect(gp->custom_ip_check, TQT_SIGNAL(toggled(bool)),
this, TQT_SLOT(customIPChecked(bool))); this, TQT_SLOT(customIPChecked(bool)));
@ -459,9 +459,9 @@ void AdvancedPrefPage::updateData()
ap->max_con_setups->setValue(Settings::maxConnectingSockets()); ap->max_con_setups->setValue(Settings::maxConnectingSockets());
} }
void AdvancedPrefPage::createWidget(TQWidget* tqparent) void AdvancedPrefPage::createWidget(TQWidget* parent)
{ {
ap = new AdvancedPref(tqparent); ap = new AdvancedPref(parent);
updateData(); updateData();
connect(ap->no_recheck, TQT_SIGNAL(toggled(bool)), connect(ap->no_recheck, TQT_SIGNAL(toggled(bool)),
this, TQT_SLOT(noDataCheckChecked(bool))); this, TQT_SLOT(noDataCheckChecked(bool)));

@ -44,7 +44,7 @@ public:
virtual bool apply(); virtual bool apply();
virtual void updateData(); virtual void updateData();
virtual void createWidget(TQWidget* tqparent); virtual void createWidget(TQWidget* parent);
virtual void deleteWidget(); virtual void deleteWidget();
}; };
@ -59,7 +59,7 @@ public:
virtual bool apply(); virtual bool apply();
virtual void updateData(); virtual void updateData();
virtual void createWidget(TQWidget* tqparent); virtual void createWidget(TQWidget* parent);
virtual void deleteWidget(); virtual void deleteWidget();
private slots: private slots:
@ -81,7 +81,7 @@ public:
virtual bool apply(); virtual bool apply();
virtual void updateData(); virtual void updateData();
virtual void createWidget(TQWidget* tqparent); virtual void createWidget(TQWidget* parent);
virtual void deleteWidget(); virtual void deleteWidget();
private slots: private slots:

@ -44,8 +44,8 @@
using namespace bt; using namespace bt;
using namespace kt; using namespace kt;
QueueItem::QueueItem(kt::TorrentInterface* t, TQListView* tqparent) QueueItem::QueueItem(kt::TorrentInterface* t, TQListView* parent)
:TQListViewItem(tqparent), tc(t) :TQListViewItem(parent), tc(t)
{ {
setPriority(tc->getPriority()); setPriority(tc->getPriority());
setText(0, TQString(tc->getStats().torrent_name)); setText(0, TQString(tc->getStats().torrent_name));
@ -95,8 +95,8 @@ void QueueItem::paintCell(TQPainter* p,const TQColorGroup & cg,int column,int wi
TQListViewItem::paintCell(p,colorGrp,column,width,align); TQListViewItem::paintCell(p,colorGrp,column,width,align);
} }
QueueDialog::QueueDialog(bt::QueueManager* qm, TQWidget *tqparent, const char *name) QueueDialog::QueueDialog(bt::QueueManager* qm, TQWidget *parent, const char *name)
:QueueDlg(tqparent, name) :QueueDlg(parent, name)
{ {
KIconLoader* iload = KGlobal::iconLoader(); KIconLoader* iload = KGlobal::iconLoader();

@ -30,7 +30,7 @@
class QueueItem: public TQListViewItem class QueueItem: public TQListViewItem
{ {
public: public:
QueueItem(kt::TorrentInterface* t, TQListView* tqparent); QueueItem(kt::TorrentInterface* t, TQListView* parent);
int getPriority() { return torrentPriority; } int getPriority() { return torrentPriority; }
void setPriority(int p); void setPriority(int p);
@ -53,7 +53,7 @@ class QueueDialog: public QueueDlg
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
QueueDialog(bt::QueueManager* qm, TQWidget *tqparent = 0, const char *name = 0); QueueDialog(bt::QueueManager* qm, TQWidget *parent = 0, const char *name = 0);
public slots: public slots:
virtual void btnMoveUp_clicked(); virtual void btnMoveUp_clicked();
virtual void btnClose_clicked(); virtual void btnClose_clicked();

@ -36,8 +36,8 @@ using namespace kt;
ScanDialog::ScanDialog(KTorrentCore* core,bool auto_import, ScanDialog::ScanDialog(KTorrentCore* core,bool auto_import,
TQWidget* tqparent, const char* name, bool modal, WFlags fl) TQWidget* parent, const char* name, bool modal, WFlags fl)
: ScanDlgBase(tqparent,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,TQT_SIGNAL(clicked()),this,TQT_SLOT(onCancelPressed()));

@ -39,7 +39,7 @@ class ScanDialog : public ScanDlgBase, public bt::DataCheckerListener
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
ScanDialog(KTorrentCore* core,bool auto_import,TQWidget* tqparent = 0, const char* name = 0, bool modal = false, WFlags fl = WDestructiveClose ); ScanDialog(KTorrentCore* core,bool auto_import,TQWidget* parent = 0, const char* name = 0, bool modal = false, WFlags fl = WDestructiveClose );
virtual ~ScanDialog(); virtual ~ScanDialog();
/// Starts the scan thread /// Starts the scan thread

@ -30,8 +30,8 @@
using namespace bt; using namespace bt;
using namespace kt; using namespace kt;
SpeedLimitsDlg::SpeedLimitsDlg(kt::TorrentInterface* ti,TQWidget* tqparent, const char* name) SpeedLimitsDlg::SpeedLimitsDlg(kt::TorrentInterface* ti,TQWidget* parent, const char* name)
: SpeedLimitsDlgBase(tqparent,name,true,0),tor(ti) : SpeedLimitsDlgBase(parent,name,true,0),tor(ti)
{ {
m_main_caption->setText(i18n("Speed limits for <b>%1</b>:").tqarg(tor->getStats().torrent_name)); m_main_caption->setText(i18n("Speed limits for <b>%1</b>:").tqarg(tor->getStats().torrent_name));
Uint32 up,down; Uint32 up,down;

@ -35,7 +35,7 @@ class SpeedLimitsDlg : public SpeedLimitsDlgBase
kt::TorrentInterface* tor; kt::TorrentInterface* tor;
public: public:
SpeedLimitsDlg(kt::TorrentInterface* ti,TQWidget* tqparent = 0, const char* name = 0); SpeedLimitsDlg(kt::TorrentInterface* ti,TQWidget* parent = 0, const char* name = 0);
virtual ~SpeedLimitsDlg(); virtual ~SpeedLimitsDlg();

@ -28,8 +28,8 @@
#include <torrent/globals.h> #include <torrent/globals.h>
#include <kademlia/dhtbase.h> #include <kademlia/dhtbase.h>
TorrentCreatorDlg::TorrentCreatorDlg(KTorrentCore* core,TQWidget *tqparent, const char *name) TorrentCreatorDlg::TorrentCreatorDlg(KTorrentCore* core,TQWidget *parent, const char *name)
:TorrentCreatorDlgBase(tqparent, name),core(core) :TorrentCreatorDlgBase(parent, name),core(core)
{ {
KURLRequester* r = m_file_or_dir; KURLRequester* r = m_file_or_dir;
r->fileDialog()->setMode( r->fileDialog()->setMode(

@ -21,7 +21,7 @@ class TorrentCreatorDlg: public TorrentCreatorDlgBase
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
TorrentCreatorDlg(KTorrentCore* core,TQWidget *tqparent = 0, const char *name = 0); TorrentCreatorDlg(KTorrentCore* core,TQWidget *parent = 0, const char *name = 0);
virtual ~TorrentCreatorDlg(); virtual ~TorrentCreatorDlg();
public slots: public slots:

@ -28,8 +28,8 @@
using namespace bt; using namespace bt;
TrayHoverPopup::TrayHoverPopup(const TQPixmap & pix,TQWidget *tqparent, const char *name ) TrayHoverPopup::TrayHoverPopup(const TQPixmap & pix,TQWidget *parent, const char *name )
: KPassivePopup(KPassivePopup::Boxed,tqparent,name),pix(pix) : KPassivePopup(KPassivePopup::Boxed,parent,name),pix(pix)
{ {
setTimeout(0); setTimeout(0);
setAutoDelete(false); setAutoDelete(false);

@ -36,7 +36,7 @@ class TrayHoverPopup : public KPassivePopup
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
TrayHoverPopup(const TQPixmap & pix,TQWidget *tqparent = 0, const char *name = 0 ); TrayHoverPopup(const TQPixmap & pix,TQWidget *parent = 0, const char *name = 0 );
virtual ~TrayHoverPopup(); virtual ~TrayHoverPopup();
/// Cursor entered system tray icon /// Cursor entered system tray icon

@ -36,8 +36,8 @@
using namespace bt; using namespace bt;
using namespace kt; using namespace kt;
TrayIcon::TrayIcon( KTorrentCore* tc, TQWidget *tqparent, const char *name) TrayIcon::TrayIcon( KTorrentCore* tc, TQWidget *parent, const char *name)
: KSystemTray(tqparent, name) : KSystemTray(parent, name)
{ {
m_core = tc; m_core = tc;
m_kt_pix = loadIcon("ktorrent"); m_kt_pix = loadIcon("ktorrent");
@ -282,7 +282,7 @@ void TrayIcon::lowDiskSpace(kt::TorrentInterface * tc, bool stopped)
showPassivePopup(msg,i18n("Device running out of space")); showPassivePopup(msg,i18n("Device running out of space"));
} }
SetMaxRate::SetMaxRate( KTorrentCore* tc, int t, TQWidget *tqparent, const char *name):KPopupMenu(tqparent, name) SetMaxRate::SetMaxRate( KTorrentCore* tc, int t, TQWidget *parent, const char *name):KPopupMenu(parent, name)
{ {
m_core = tc; m_core = tc;
type=t; type=t;

@ -52,7 +52,7 @@ class TrayIcon : public KSystemTray
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
TrayIcon(KTorrentCore* tc, TQWidget *tqparent = 0, const char *name = 0); TrayIcon(KTorrentCore* tc, TQWidget *parent = 0, const char *name = 0);
virtual ~TrayIcon(); virtual ~TrayIcon();
/// Update stats for system tray icon /// Update stats for system tray icon
@ -126,7 +126,7 @@ class SetMaxRate : public KPopupMenu
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
SetMaxRate(KTorrentCore* tc, int t, TQWidget *tqparent=0, const char *name=0); // type: 0 Upload; 1 Download SetMaxRate(KTorrentCore* tc, int t, TQWidget *parent=0, const char *name=0); // type: 0 Upload; 1 Download
~SetMaxRate() ~SetMaxRate()
{} {}
; ;

@ -28,8 +28,8 @@
typedef TQValueList<KTorrentView*>::iterator ViewItr; typedef TQValueList<KTorrentView*>::iterator ViewItr;
ViewManager::ViewManager ( TQObject *tqparent, const char *name ) ViewManager::ViewManager ( TQObject *parent, const char *name )
: TQObject ( tqparent, name ),current(0) : TQObject ( parent, name ),current(0)
{} {}

@ -37,7 +37,7 @@ class ViewManager : public TQObject, public kt::CloseTabListener
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
ViewManager(TQObject *tqparent = 0, const char *name = 0); ViewManager(TQObject *parent = 0, const char *name = 0);
virtual ~ViewManager(); virtual ~ViewManager();
/// Create a new view /// Create a new view

@ -29,8 +29,8 @@
using namespace bt; using namespace bt;
using namespace kt; using namespace kt;
UPnPTestApp::UPnPTestApp(TQWidget *tqparent, const char *name) UPnPTestApp::UPnPTestApp(TQWidget *parent, const char *name)
: KMainWindow(tqparent, name) : KMainWindow(parent, name)
{ {
sock = new UPnPMCastSocket(true); sock = new UPnPMCastSocket(true);
connect(sock,TQT_SIGNAL(discovered( UPnPRouter* )),this,TQT_SLOT(discovered( UPnPRouter* ))); connect(sock,TQT_SIGNAL(discovered( UPnPRouter* )),this,TQT_SLOT(discovered( UPnPRouter* )));

@ -40,7 +40,7 @@ class UPnPTestApp : public KMainWindow, public kt::LogMonitorInterface
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
UPnPTestApp(TQWidget *tqparent = 0, const char *name = 0); UPnPTestApp(TQWidget *parent = 0, const char *name = 0);
virtual ~UPnPTestApp(); virtual ~UPnPTestApp();
virtual void message(const TQString& line, unsigned int arg); virtual void message(const TQString& line, unsigned int arg);

@ -16,8 +16,8 @@ Index: estimation-scripts/enable-logging.diff
- using namespace bt; - using namespace bt;
- -
-@@ -77,6 +78,9 @@ -@@ -77,6 +78,9 @@
- KTorrentViewItem::KTorrentViewItem(QListView* tqparent,bt::TorrentControl* tc) - KTorrentViewItem::KTorrentViewItem(QListView* parent,bt::TorrentControl* tc)
- : KListViewItem(tqparent),tc(tc) - : KListViewItem(parent),tc(tc)
- { - {
-+ toLog = true; -+ toLog = true;
-+ counter = 1; -+ counter = 1;
@ -125,8 +125,8 @@ Index: apps/ktorrent/ktorrentviewitem.cpp
using namespace kt; using namespace kt;
@@ -78,6 +81,9 @@ @@ -78,6 +81,9 @@
KTorrentViewItem::KTorrentViewItem(QListView* tqparent,TorrentInterface* tc) KTorrentViewItem::KTorrentViewItem(QListView* parent,TorrentInterface* tc)
: KListViewItem(tqparent),tc(tc) : KListViewItem(parent),tc(tc)
{ {
+ toLog = true; + toLog = true;
+ counter = 1; + counter = 1;

@ -24,8 +24,8 @@
namespace kt namespace kt
{ {
ExpandableWidget::ExpandableWidget(TQWidget* child,TQWidget *tqparent, const char *name) ExpandableWidget::ExpandableWidget(TQWidget* child,TQWidget *parent, const char *name)
: TQWidget(tqparent, name) : TQWidget(parent, name)
{ {
top_layout = new TQHBoxLayout(this); top_layout = new TQHBoxLayout(this);
child->reparent(this,TQPoint(),true); child->reparent(this,TQPoint(),true);

@ -48,23 +48,23 @@ namespace kt
/** /**
* Constructor, the first child must be provided. * Constructor, the first child must be provided.
* @param child The first child * @param child The first child
* @param tqparent The tqparent * @param parent The parent
* @param name The name * @param name The name
*/ */
ExpandableWidget(TQWidget* child,TQWidget *tqparent = 0, const char *name = 0); ExpandableWidget(TQWidget* child,TQWidget *parent = 0, const char *name = 0);
virtual ~ExpandableWidget(); virtual ~ExpandableWidget();
/** /**
* Expand the widget. This will ensure the proper tqparent child relations. * Expand the widget. This will ensure the proper parent child relations.
* @param w The widget * @param w The widget
* @param pos It's position relative to the current widget * @param pos It's position relative to the current widget
*/ */
void expand(TQWidget* w,Position pos); void expand(TQWidget* w,Position pos);
/** /**
* Remove a widget. This will ensure the proper tqparent child relations. * Remove a widget. This will ensure the proper parent child relations.
* The widget w will become parentless. Note the first child will never be removed. * The widget w will become parentless. Note the first child will never be removed.
* @param w The widget * @param w The widget
*/ */

@ -37,7 +37,7 @@ namespace kt
FileTreeDirItem::FileTreeDirItem(KListView* klv,const TQString & name,FileTreeRootListener* rl) FileTreeDirItem::FileTreeDirItem(KListView* klv,const TQString & name,FileTreeRootListener* rl)
: TQCheckListItem(klv,TQString(),TQCheckListItem::CheckBox),name(name),root_listener(rl) : TQCheckListItem(klv,TQString(),TQCheckListItem::CheckBox),name(name),root_listener(rl)
{ {
tqparent = 0; parent = 0;
size = 0; size = 0;
setPixmap(0,KGlobal::iconLoader()->loadIcon("folder",KIcon::Small)); setPixmap(0,KGlobal::iconLoader()->loadIcon("folder",KIcon::Small));
setText(0,name); setText(0,name);
@ -48,9 +48,9 @@ namespace kt
manual_change = false; manual_change = false;
} }
FileTreeDirItem::FileTreeDirItem(FileTreeDirItem* tqparent,const TQString & name) FileTreeDirItem::FileTreeDirItem(FileTreeDirItem* parent,const TQString & name)
: TQCheckListItem(tqparent,TQString(),TQCheckListItem::CheckBox), : TQCheckListItem(parent,TQString(),TQCheckListItem::CheckBox),
name(name),tqparent(tqparent) name(name),parent(parent)
{ {
size = 0; size = 0;
setPixmap(0,KGlobal::iconLoader()->loadIcon("folder",KIcon::Small)); setPixmap(0,KGlobal::iconLoader()->loadIcon("folder",KIcon::Small));
@ -161,8 +161,8 @@ namespace kt
return; return;
} }
} }
if (tqparent) if (parent)
tqparent->childStateChange(); parent->childStateChange();
} }
setText(2,on ? i18n("Yes") : i18n("No")); setText(2,on ? i18n("Yes") : i18n("No"));
} }
@ -219,8 +219,8 @@ namespace kt
setOn(allChildrenOn()); setOn(allChildrenOn());
manual_change = false; manual_change = false;
if (tqparent) if (parent)
tqparent->childStateChange(); parent->childStateChange();
else if (root_listener) else if (root_listener)
root_listener->treeItemChanged(); root_listener->treeItemChanged();
@ -286,10 +286,10 @@ namespace kt
TQString FileTreeDirItem::getPath() const TQString FileTreeDirItem::getPath() const
{ {
if (!tqparent) if (!parent)
return bt::DirSeparator(); return bt::DirSeparator();
else else
return tqparent->getPath() + name + bt::DirSeparator(); return parent->getPath() + name + bt::DirSeparator();
} }
} }

@ -51,12 +51,12 @@ namespace kt
Uint64 size; Uint64 size;
bt::PtrMap<TQString,FileTreeItem> tqchildren; bt::PtrMap<TQString,FileTreeItem> tqchildren;
bt::PtrMap<TQString,FileTreeDirItem> subdirs; bt::PtrMap<TQString,FileTreeDirItem> subdirs;
FileTreeDirItem* tqparent; FileTreeDirItem* parent;
bool manual_change; bool manual_change;
FileTreeRootListener* root_listener; FileTreeRootListener* root_listener;
public: public:
FileTreeDirItem(KListView* klv,const TQString & name,FileTreeRootListener* rl = 0); FileTreeDirItem(KListView* klv,const TQString & name,FileTreeRootListener* rl = 0);
FileTreeDirItem(FileTreeDirItem* tqparent,const TQString & name); FileTreeDirItem(FileTreeDirItem* parent,const TQString & name);
virtual ~FileTreeDirItem(); virtual ~FileTreeDirItem();
/// Get the path of the directory (if this is the root directory / will be returned) /// Get the path of the directory (if this is the root directory / will be returned)
@ -93,11 +93,11 @@ namespace kt
void invertChecked(); void invertChecked();
/** /**
* Called by the child to notify the tqparent it's state has changed. * Called by the child to notify the parent it's state has changed.
*/ */
void childStateChange(); void childStateChange();
FileTreeDirItem* getParent() {return tqparent;} FileTreeDirItem* getParent() {return parent;}
/// Recusively get the total number of bytes to download /// Recusively get the total number of bytes to download
Uint64 bytesToDownload() const; Uint64 bytesToDownload() const;

@ -35,7 +35,7 @@ namespace kt
FileTreeItem::FileTreeItem(FileTreeDirItem* item,const TQString & name,kt::TorrentFileInterface & file) FileTreeItem::FileTreeItem(FileTreeDirItem* item,const TQString & name,kt::TorrentFileInterface & file)
: TQCheckListItem(item,TQString(),TQCheckListItem::CheckBox),name(name),file(file) : TQCheckListItem(item,TQString(),TQCheckListItem::CheckBox),name(name),file(file)
{ {
tqparent = item; parent = item;
manual_change = false; manual_change = false;
init(); init();
} }
@ -66,7 +66,7 @@ namespace kt
} }
updatePriorityText(); updatePriorityText();
tqparent->childStateChange(); parent->childStateChange();
} }
void FileTreeItem::updatePriorityText() void FileTreeItem::updatePriorityText()
@ -141,7 +141,7 @@ namespace kt
} }
updatePriorityText(); updatePriorityText();
tqparent->childStateChange(); parent->childStateChange();
} }
int FileTreeItem::compare(TQListViewItem* i, int col, bool ascending) const int FileTreeItem::compare(TQListViewItem* i, int col, bool ascending) const

@ -45,11 +45,11 @@ namespace kt
protected: protected:
TQString name; TQString name;
TorrentFileInterface & file; TorrentFileInterface & file;
FileTreeDirItem* tqparent; FileTreeDirItem* parent;
bool manual_change; bool manual_change;
public: public:
/** /**
* Constructor, set the tqparent, name and file * Constructor, set the parent, name and file
* @param item Parent item * @param item Parent item
* @param name Name of file * @param name Name of file
* @param file THe TorrentFileInterface * @param file THe TorrentFileInterface

@ -22,11 +22,11 @@
namespace kt namespace kt
{ {
Plugin::Plugin(TQObject *tqparent, const char* qt_name,const TQStringList & /*args*/, Plugin::Plugin(TQObject *parent, const char* qt_name,const TQStringList & /*args*/,
const TQString & name,const TQString & gui_name,const TQString & author, const TQString & name,const TQString & gui_name,const TQString & author,
const TQString & email,const TQString & description, const TQString & email,const TQString & description,
const TQString & icon) const TQString & icon)
: KParts::Plugin(tqparent,qt_name), : KParts::Plugin(parent,qt_name),
name(name),author(author),email(email),description(description),icon(icon),gui_name(gui_name) name(name),author(author),email(email),description(description),icon(icon),gui_name(gui_name)
{ {
core = 0; core = 0;

@ -60,7 +60,7 @@ namespace kt
* @param description What does the plugin do * @param description What does the plugin do
* @param icon Name of the plugin's icon * @param icon Name of the plugin's icon
*/ */
Plugin(TQObject *tqparent,const char* qt_name,const TQStringList & args, Plugin(TQObject *parent,const char* qt_name,const TQStringList & args,
const TQString & name,const TQString & gui_name,const TQString & author, const TQString & name,const TQString & gui_name,const TQString & author,
const TQString & email,const TQString & description, const TQString & email,const TQString & description,
const TQString & icon); const TQString & icon);

@ -58,9 +58,9 @@ namespace kt
/** /**
* Create the actual widget. * Create the actual widget.
* @param tqparent The tqparent of the widget * @param parent The parent of the widget
*/ */
virtual void createWidget(TQWidget* tqparent)=0; virtual void createWidget(TQWidget* parent)=0;
/** /**
* Update all data on the widget, gets called before * Update all data on the widget, gets called before

@ -42,7 +42,7 @@ namespace dht
RPCServer::RPCServer(DHT* dh_table,Uint16 port,TQObject *tqparent) : TQObject(tqparent),dh_table(dh_table),next_mtid(0),port(port) RPCServer::RPCServer(DHT* dh_table,Uint16 port,TQObject *parent) : TQObject(parent),dh_table(dh_table),next_mtid(0),port(port)
{ {
sock = new KDatagramSocket(this); sock = new KDatagramSocket(this);
sock->setBlocking(false); sock->setBlocking(false);

@ -57,7 +57,7 @@ namespace dht
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
RPCServer(DHT* dh_table,Uint16 port,TQObject *tqparent = 0); RPCServer(DHT* dh_table,Uint16 port,TQObject *parent = 0);
virtual ~RPCServer(); virtual ~RPCServer();
/// Start the server /// Start the server

@ -107,7 +107,7 @@ namespace kt
{ {
TQVBoxLayout* tqlayout; TQVBoxLayout* tqlayout;
public: public:
LabelViewBox(TQWidget* tqparent) : TQWidget(tqparent) LabelViewBox(TQWidget* parent) : TQWidget(parent)
{ {
setPaletteBackgroundColor(KGlobalSettings::baseColor()); setPaletteBackgroundColor(KGlobalSettings::baseColor());
tqlayout = new TQVBoxLayout(this); tqlayout = new TQVBoxLayout(this);
@ -145,8 +145,8 @@ namespace kt
/////////////////////////////////////// ///////////////////////////////////////
LabelView::LabelView ( TQWidget *tqparent, const char *name ) LabelView::LabelView ( TQWidget *parent, const char *name )
: TQScrollView ( tqparent, name ),selected(0) : TQScrollView ( parent, name ),selected(0)
{ {
item_box = new LabelViewBox(this->viewport()); item_box = new LabelViewBox(this->viewport());
setResizePolicy(TQScrollView::AutoOneFit); setResizePolicy(TQScrollView::AutoOneFit);

@ -85,7 +85,7 @@ namespace kt
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
LabelView(TQWidget *tqparent = 0, const char *name = 0); LabelView(TQWidget *parent = 0, const char *name = 0);
virtual ~LabelView(); virtual ~LabelView();
/// Add an item to the label view /// Add an item to the label view

@ -38,8 +38,8 @@ namespace kt
{ {
Plugin* p; Plugin* p;
public: public:
PluginViewItem(Plugin* p,LabelView* tqparent) PluginViewItem(Plugin* p,LabelView* parent)
: LabelViewItem(p->getIcon(),p->getGuiName(),p->getDescription(),tqparent),p(p) : LabelViewItem(p->getIcon(),p->getGuiName(),p->getDescription(),parent),p(p)
{ {
update(); update();
} }
@ -74,9 +74,9 @@ namespace kt
return true; return true;
} }
void PluginManagerPrefPage::createWidget(TQWidget* tqparent) void PluginManagerPrefPage::createWidget(TQWidget* parent)
{ {
pmw = new PluginManagerWidget(tqparent); pmw = new PluginManagerWidget(parent);
connect(pmw->load_btn,TQT_SIGNAL(clicked()),this,TQT_SLOT(onLoad())); connect(pmw->load_btn,TQT_SIGNAL(clicked()),this,TQT_SLOT(onLoad()));
connect(pmw->unload_btn,TQT_SIGNAL(clicked()),this,TQT_SLOT(onUnload())); connect(pmw->unload_btn,TQT_SIGNAL(clicked()),this,TQT_SLOT(onUnload()));

@ -45,7 +45,7 @@ namespace kt
virtual ~PluginManagerPrefPage(); virtual ~PluginManagerPrefPage();
virtual bool apply(); virtual bool apply();
virtual void createWidget(TQWidget* tqparent); virtual void createWidget(TQWidget* parent);
virtual void updateData(); virtual void updateData();
virtual void deleteWidget(); virtual void deleteWidget();

@ -46,7 +46,7 @@
// Not all systems have an O_LARGEFILE - Solaris depending // Not all systems have an O_LARGEFILE - Solaris depending
// on command-line defines, FreeBSD never - so in those cases, // on command-line defines, FreeBSD never - so in those cases,
// make it a zero bittqmask. As long as it's only OR'ed into // make it a zero bitmask. As long as it's only OR'ed into
// open(2) flags, that's fine. // open(2) flags, that's fine.
// //
#ifndef O_LARGEFILE #ifndef O_LARGEFILE

@ -75,7 +75,7 @@ namespace bt
Uint32 ipi = toUint32(ip, &ok); Uint32 ipi = toUint32(ip, &ok);
if(!ok) if(!ok)
return; return;
IPKey key(ipi,0xFFFFFFFF); //-- you can test ranges here. Just specify your tqmask. IPKey key(ipi,0xFFFFFFFF); //-- you can test ranges here. Just specify your mask.
insertRangeIP(key, state); insertRangeIP(key, state);
Out(SYS_IPF|LOG_NOTICE) << "IP " << ip << " banned." << endl; Out(SYS_IPF|LOG_NOTICE) << "IP " << ip << " banned." << endl;
} }
@ -85,13 +85,13 @@ namespace bt
bool ok; bool ok;
int tmp = 0; int tmp = 0;
Uint32 addr = 0; Uint32 addr = 0;
Uint32 tqmask = 0xFFFFFFFF; Uint32 mask = 0xFFFFFFFF;
tmp = ip.section('.',0,0).toInt(&ok); tmp = ip.section('.',0,0).toInt(&ok);
if(!ok) if(!ok)
{ {
if(ip.section('.',0,0) == "*") if(ip.section('.',0,0) == "*")
tqmask &= 0x00FFFFFF; mask &= 0x00FFFFFF;
else return; //illegal character else return; //illegal character
} }
else else
@ -102,7 +102,7 @@ namespace bt
{ {
addr <<= 8; addr <<= 8;
if(ip.section('.',1,1) == "*") if(ip.section('.',1,1) == "*")
tqmask &= 0xFF00FFFF; mask &= 0xFF00FFFF;
else return; //illegal character else return; //illegal character
} }
else else
@ -116,7 +116,7 @@ namespace bt
{ {
addr <<= 8; addr <<= 8;
if(ip.section('.',2,2) == "*") if(ip.section('.',2,2) == "*")
tqmask &= 0xFFFF00FF; mask &= 0xFFFF00FF;
else return; //illegal character else return; //illegal character
} }
else else
@ -130,7 +130,7 @@ namespace bt
{ {
addr <<= 8; addr <<= 8;
if(ip.section('.',3,3) == "*") if(ip.section('.',3,3) == "*")
tqmask &=0xFFFFFF00; mask &=0xFFFFFF00;
else return; //illegal character else return; //illegal character
} }
else else
@ -139,21 +139,21 @@ namespace bt
addr |= tmp; addr |= tmp;
} }
IPKey key(addr, tqmask); IPKey key(addr, mask);
this->insertRangeIP(key); this->insertRangeIP(key);
} }
void IPBlocklist::insertRangeIP(IPKey& key, int state) void IPBlocklist::insertRangeIP(IPKey& key, int state)
{ {
// Out() << "Blocked range: " << key.m_ip << " - " << key.m_tqmask << endl; // Out() << "Blocked range: " << key.m_ip << " - " << key.m_mask << endl;
TQMap<IPKey, int>::iterator it; TQMap<IPKey, int>::iterator it;
if ((it = m_peers.find(key)) != m_peers.end()) if ((it = m_peers.find(key)) != m_peers.end())
{ {
if(it.key().m_tqmask != key.m_tqmask) if(it.key().m_mask != key.m_mask)
{ {
int st = it.data(); int st = it.data();
IPKey key1(key.m_ip, it.key().m_tqmask | key.m_tqmask); IPKey key1(key.m_ip, it.key().m_mask | key.m_mask);
m_peers.insert(key1, state+st); m_peers.insert(key1, state+st);
return; return;
} }
@ -168,13 +168,13 @@ namespace bt
bool ok; bool ok;
int tmp = 0; int tmp = 0;
Uint32 addr = 0; Uint32 addr = 0;
Uint32 tqmask = 0xFFFFFFFF; Uint32 mask = 0xFFFFFFFF;
tmp = ip.section('.',0,0).toInt(&ok); tmp = ip.section('.',0,0).toInt(&ok);
if(!ok) if(!ok)
{ {
if(ip.section('.',0,0) == "*") if(ip.section('.',0,0) == "*")
tqmask &= 0x00FFFFFF; mask &= 0x00FFFFFF;
else return; //illegal character else return; //illegal character
} }
else else
@ -185,7 +185,7 @@ namespace bt
{ {
addr <<= 8; addr <<= 8;
if(ip.section('.',1,1) == "*") if(ip.section('.',1,1) == "*")
tqmask &= 0xFF00FFFF; mask &= 0xFF00FFFF;
else return; //illegal character else return; //illegal character
} }
else else
@ -199,7 +199,7 @@ namespace bt
{ {
addr <<= 8; addr <<= 8;
if(ip.section('.',2,2) == "*") if(ip.section('.',2,2) == "*")
tqmask &= 0xFFFF00FF; mask &= 0xFFFF00FF;
else return; //illegal character else return; //illegal character
} }
else else
@ -213,7 +213,7 @@ namespace bt
{ {
addr <<= 8; addr <<= 8;
if(ip.section('.',3,3) == "*") if(ip.section('.',3,3) == "*")
tqmask &=0xFFFFFF00; mask &=0xFFFFFF00;
else return; //illegal character else return; //illegal character
} }
else else
@ -222,7 +222,7 @@ namespace bt
addr |= tmp; addr |= tmp;
} }
IPKey key(addr, tqmask); IPKey key(addr, mask);
TQMap<IPKey, int>::iterator it = m_peers.find(key); TQMap<IPKey, int>::iterator it = m_peers.find(key);
if (it == m_peers.end()) if (it == m_peers.end())
@ -304,11 +304,11 @@ namespace bt
IPKey::IPKey() IPKey::IPKey()
{ {
m_ip = 0; m_ip = 0;
m_tqmask = 0xFFFFFFFF; m_mask = 0xFFFFFFFF;
} }
IPKey::IPKey(TQString& ip, Uint32 tqmask) IPKey::IPKey(TQString& ip, Uint32 mask)
: m_tqmask(tqmask) : m_mask(mask)
{ {
bool ok; bool ok;
this->m_ip = toUint32(ip, &ok); this->m_ip = toUint32(ip, &ok);
@ -317,55 +317,55 @@ namespace bt
IPKey::IPKey(const IPKey& ip) IPKey::IPKey(const IPKey& ip)
{ {
m_ip = ip.m_ip; m_ip = ip.m_ip;
m_tqmask = ip.m_tqmask; m_mask = ip.m_mask;
} }
IPKey::IPKey(Uint32 ip, Uint32 tqmask) IPKey::IPKey(Uint32 ip, Uint32 mask)
: m_ip(ip), m_tqmask(tqmask) : m_ip(ip), m_mask(mask)
{} {}
TQString IPKey::toString() TQString IPKey::toString()
{ {
Uint32 tmp, tmptqmask; Uint32 tmp, tmpmask;
Uint32 ip = m_ip; Uint32 ip = m_ip;
Uint32 tqmask = m_tqmask; Uint32 mask = m_mask;
TQString out; TQString out;
tmp = ip; tmp = ip;
tmptqmask = tqmask; tmpmask = mask;
tmp &= 0x000000FF; tmp &= 0x000000FF;
tmptqmask &= 0x000000FF; tmpmask &= 0x000000FF;
if(tmptqmask == 0) if(tmpmask == 0)
out.prepend("*"); out.prepend("*");
else else
out.prepend(TQString("%1").tqarg(tmp)); out.prepend(TQString("%1").tqarg(tmp));
ip >>= 8; ip >>= 8;
tqmask >>= 8; mask >>= 8;
tmp = ip; tmp = ip;
tmptqmask = tqmask; tmpmask = mask;
tmp &= 0x000000FF; tmp &= 0x000000FF;
tmptqmask &= 0x000000FF; tmpmask &= 0x000000FF;
if(tmptqmask == 0) if(tmpmask == 0)
out.prepend("*."); out.prepend("*.");
else else
out.prepend(TQString("%1.").tqarg(tmp)); out.prepend(TQString("%1.").tqarg(tmp));
ip >>= 8; ip >>= 8;
tqmask >>= 8; mask >>= 8;
tmp = ip; tmp = ip;
tmptqmask = tqmask; tmpmask = mask;
tmp &= 0x000000FF; tmp &= 0x000000FF;
tmptqmask &= 0x000000FF; tmpmask &= 0x000000FF;
if(tmptqmask == 0) if(tmpmask == 0)
out.prepend("*."); out.prepend("*.");
else else
out.prepend(TQString("%1.").tqarg(tmp)); out.prepend(TQString("%1.").tqarg(tmp));
ip >>= 8; ip >>= 8;
tqmask >>= 8; mask >>= 8;
tmp = ip; tmp = ip;
tmptqmask = tqmask; tmpmask = mask;
tmp &= 0x000000FF; tmp &= 0x000000FF;
tmptqmask &= 0x000000FF; tmpmask &= 0x000000FF;
if(tmptqmask == 0) if(tmpmask == 0)
out.prepend("*."); out.prepend("*.");
else else
out.prepend(TQString("%1.").tqarg(tmp)); out.prepend(TQString("%1.").tqarg(tmp));
@ -375,23 +375,23 @@ namespace bt
bool IPKey::operator ==(const IPKey& ip) const bool IPKey::operator ==(const IPKey& ip) const
{ {
return (m_ip & m_tqmask) == m_tqmask & ip.m_ip; return (m_ip & m_mask) == m_mask & ip.m_ip;
} }
bool IPKey::operator !=(const IPKey& ip) const bool IPKey::operator !=(const IPKey& ip) const
{ {
return (m_ip & m_tqmask) != m_tqmask & ip.m_ip; return (m_ip & m_mask) != m_mask & ip.m_ip;
} }
bool IPKey::operator < (const IPKey& ip) const bool IPKey::operator < (const IPKey& ip) const
{ {
return (m_ip & m_tqmask) < (m_tqmask & ip.m_ip); return (m_ip & m_mask) < (m_mask & ip.m_ip);
} }
IPKey& IPKey::operator =(const IPKey& ip) IPKey& IPKey::operator =(const IPKey& ip)
{ {
m_ip = ip.m_ip; m_ip = ip.m_ip;
m_tqmask = ip.m_tqmask; m_mask = ip.m_mask;
return *this; return *this;
} }

@ -35,8 +35,8 @@ namespace bt
{ {
public: public:
IPKey(); IPKey();
IPKey(TQString& ip, Uint32 tqmask = 0xFFFFFFFF); IPKey(TQString& ip, Uint32 mask = 0xFFFFFFFF);
IPKey(Uint32 ip, Uint32 tqmask = 0xFFFFFFFF); IPKey(Uint32 ip, Uint32 mask = 0xFFFFFFFF);
IPKey(const IPKey& ip); IPKey(const IPKey& ip);
~IPKey(); ~IPKey();
@ -48,7 +48,7 @@ namespace bt
TQString toString(); TQString toString();
Uint32 m_ip; Uint32 m_ip;
Uint32 m_tqmask; Uint32 m_mask;
}; };
/** /**
@ -143,7 +143,7 @@ namespace bt
kt::IPBlockingInterface* pluginInterface; kt::IPBlockingInterface* pluginInterface;
/** /**
* @param IPKey - Key: Peer IP address and bit tqmask if it is a range * @param IPKey - Key: Peer IP address and bit mask if it is a range
* @param int - Number of bad chunks sent. * @param int - Number of bad chunks sent.
**/ **/
TQMap<IPKey, int> m_peers; TQMap<IPKey, int> m_peers;

@ -350,7 +350,7 @@ namespace bt
TorrentControl* tc = new TorrentControl(); TorrentControl* tc = new TorrentControl();
try try
{ {
// get the tqparent dir of target // get the parent dir of target
TQFileInfo fi = TQFileInfo(target); TQFileInfo fi = TQFileInfo(target);
TQString odir; TQString odir;

@ -45,7 +45,7 @@ namespace bt
class Log::Private class Log::Private
{ {
public: public:
Log* tqparent; Log* parent;
TQTextStream* out; TQTextStream* out;
TQFile fptr; TQFile fptr;
bool to_cout; bool to_cout;
@ -55,7 +55,7 @@ namespace bt
unsigned int m_filter; unsigned int m_filter;
AutoRotateLogJob* rotate_job; AutoRotateLogJob* rotate_job;
public: public:
Private(Log* tqparent) : tqparent(tqparent),out(0),to_cout(false),rotate_job(0) Private(Log* parent) : parent(parent),out(0),to_cout(false),rotate_job(0)
{ {
out = new TQTextStream(); out = new TQTextStream();
} }
@ -146,7 +146,7 @@ namespace bt
fptr.close(); // close the log file fptr.close(); // close the log file
out->setDevice(0); out->setDevice(0);
// start the rotate job // start the rotate job
rotate_job = new AutoRotateLogJob(file,tqparent); rotate_job = new AutoRotateLogJob(file,parent);
} }
} }

@ -25,7 +25,7 @@
namespace bt namespace bt
{ {
Profile::Profile(Profile* tqparent,const TQString & name) : tqparent(tqparent),name(name) Profile::Profile(Profile* parent,const TQString & name) : parent(parent),name(name)
{ {
min = max = avg = 0.0; min = max = avg = 0.0;
count = 0; count = 0;

@ -34,7 +34,7 @@ namespace bt
*/ */
class Profile class Profile
{ {
Profile* tqparent; Profile* parent;
TQPtrList<Profile> tqchildren; TQPtrList<Profile> tqchildren;
TQString name; TQString name;
@ -42,7 +42,7 @@ namespace bt
Uint32 count; Uint32 count;
double start_time; double start_time;
public: public:
Profile(Profile* tqparent,const TQString & name); Profile(Profile* parent,const TQString & name);
virtual ~Profile(); virtual ~Profile();
/** /**
@ -63,9 +63,9 @@ namespace bt
Profile* child(const TQString & name); Profile* child(const TQString & name);
/** /**
* Get the tqparent of the current profile. * Get the parent of the current profile.
*/ */
Profile* getParent() const {return tqparent;} Profile* getParent() const {return parent;}
/** /**
* Save profile information to a file. * Save profile information to a file.

@ -27,7 +27,7 @@
namespace kt namespace kt
{ {
AvailabilityChunkBar::AvailabilityChunkBar(TQWidget* tqparent, const char* name): ChunkBar(tqparent, name) AvailabilityChunkBar::AvailabilityChunkBar(TQWidget* parent, const char* name): ChunkBar(parent, name)
{ {
TQToolTip::add(this, i18n("<img src=\"available_color\">&nbsp; - Available Chunks<br><img src=\"unavailable_color\">&nbsp; - Unavailable Chunks<br><img src=\"excluded_color\">&nbsp; - Excluded Chunks")); TQToolTip::add(this, i18n("<img src=\"available_color\">&nbsp; - Available Chunks<br><img src=\"unavailable_color\">&nbsp; - Unavailable Chunks<br><img src=\"excluded_color\">&nbsp; - Excluded Chunks"));
} }

@ -33,7 +33,7 @@ namespace kt
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
AvailabilityChunkBar(TQWidget* tqparent, const char* name); AvailabilityChunkBar(TQWidget* parent, const char* name);
virtual ~AvailabilityChunkBar(); virtual ~AvailabilityChunkBar();
virtual const bt::BitSet & getBitSet() const; virtual const bt::BitSet & getBitSet() const;

@ -83,8 +83,8 @@ namespace kt
factory->setImage("unavailable_color", unavailable); factory->setImage("unavailable_color", unavailable);
} }
ChunkBar::ChunkBar(TQWidget *tqparent, const char *name) ChunkBar::ChunkBar(TQWidget *parent, const char *name)
: TQFrame(tqparent, name),curr_tc(0) : TQFrame(parent, name),curr_tc(0)
{ {
setFrameShape(StyledPanel); setFrameShape(StyledPanel);
setFrameShadow(Sunken); setFrameShadow(Sunken);

@ -52,7 +52,7 @@ namespace kt
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
ChunkBar(TQWidget *tqparent = 0, const char *name = 0); ChunkBar(TQWidget *parent = 0, const char *name = 0);
virtual ~ChunkBar(); virtual ~ChunkBar();
void setTC(kt::TorrentInterface* tc); void setTC(kt::TorrentInterface* tc);

@ -69,8 +69,8 @@ namespace kt
} }
ChunkDownloadView::ChunkDownloadView(TQWidget *tqparent, const char *name) ChunkDownloadView::ChunkDownloadView(TQWidget *parent, const char *name)
: ChunkDownloadViewBase(tqparent, name) : ChunkDownloadViewBase(parent, name)
{ {
m_list_view->setShowSortIndicator(true); m_list_view->setShowSortIndicator(true);
m_list_view->setAllColumnsShowFocus(true); m_list_view->setAllColumnsShowFocus(true);

@ -51,7 +51,7 @@ namespace kt
TQMap<kt::ChunkDownloadInterface*,ChunkDownloadViewItem*> items; TQMap<kt::ChunkDownloadInterface*,ChunkDownloadViewItem*> items;
kt::TorrentInterface* curr_tc; kt::TorrentInterface* curr_tc;
public: public:
ChunkDownloadView(TQWidget *tqparent = 0, const char *name = 0); ChunkDownloadView(TQWidget *parent = 0, const char *name = 0);
virtual ~ChunkDownloadView(); virtual ~ChunkDownloadView();
void saveLayout(KConfig* cfg,const TQString & group_name); void saveLayout(KConfig* cfg,const TQString & group_name);

@ -24,8 +24,8 @@
namespace kt namespace kt
{ {
DownloadedChunkBar::DownloadedChunkBar(TQWidget* tqparent, const char* name) DownloadedChunkBar::DownloadedChunkBar(TQWidget* parent, const char* name)
: ChunkBar(tqparent,name) : ChunkBar(parent,name)
{ {
show_excluded = true; show_excluded = true;
} }

@ -32,7 +32,7 @@ namespace kt
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
DownloadedChunkBar(TQWidget* tqparent, const char* name); DownloadedChunkBar(TQWidget* parent, const char* name);
virtual ~DownloadedChunkBar(); virtual ~DownloadedChunkBar();
virtual const bt::BitSet & getBitSet() const; virtual const bt::BitSet & getBitSet() const;

@ -40,8 +40,8 @@ using namespace bt;
namespace kt namespace kt
{ {
FileView::FileView(TQWidget *tqparent, const char *name) FileView::FileView(TQWidget *parent, const char *name)
: KListView(tqparent, name),curr_tc(0),multi_root(0),pending_fill(0),next_fill_item(0) : KListView(parent, name),curr_tc(0),multi_root(0),pending_fill(0),next_fill_item(0)
{ {
setFrameShape(TQFrame::NoFrame); setFrameShape(TQFrame::NoFrame);
addColumn( i18n( "File" ) ); addColumn( i18n( "File" ) );

@ -37,7 +37,7 @@ namespace kt
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
FileView(TQWidget *tqparent = 0, const char *name = 0); FileView(TQWidget *parent = 0, const char *name = 0);
virtual ~FileView(); virtual ~FileView();
void update(); void update();

@ -28,10 +28,10 @@
kt::FloatSpinBox::FloatSpinBox( kt::FloatSpinBox::FloatSpinBox(
TQWidget * tqparent, TQWidget * parent,
const char * name const char * name
) )
:TQSpinBox( -100, 100, 1, tqparent, name), :TQSpinBox( -100, 100, 1, parent, name),
m_precision_digits( 2 ), m_precision_digits( 2 ),
m_value(0.0f), m_value(0.0f),
m_minValue(0.0f), m_minValue(0.0f),
@ -48,10 +48,10 @@ kt::FloatSpinBox::FloatSpinBox(
kt::FloatSpinBox::FloatSpinBox( kt::FloatSpinBox::FloatSpinBox(
int precision, int precision,
TQWidget * tqparent, TQWidget * parent,
const char * name const char * name
) )
:TQSpinBox( -100, 100, 1, tqparent, name), :TQSpinBox( -100, 100, 1, parent, name),
m_precision_digits( precision ), m_precision_digits( precision ),
m_value(0.0f), m_value(0.0f),
m_minValue(0.0f), m_minValue(0.0f),
@ -71,10 +71,10 @@ kt::FloatSpinBox::FloatSpinBox(
float maxValue, float maxValue,
float step, float step,
int precision, int precision,
TQWidget * tqparent, TQWidget * parent,
const char * name const char * name
) )
:TQSpinBox( -100, 100, 1, tqparent, name), :TQSpinBox( -100, 100, 1, parent, name),
m_precision_digits( precision ), m_precision_digits( precision ),
m_value(0.0f), m_value(0.0f),
m_minValue(minValue), m_minValue(minValue),

@ -40,10 +40,10 @@ namespace kt
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
FloatSpinBox( TQWidget* tqparent=0, const char* name=0 ); FloatSpinBox( TQWidget* parent=0, const char* name=0 );
FloatSpinBox( int precision = 2, TQWidget* tqparent=0, const char* name=0 ); FloatSpinBox( int precision = 2, TQWidget* parent=0, const char* name=0 );
FloatSpinBox( float minValue, float maxValue, float step = 0.5, int precision = 2, FloatSpinBox( float minValue, float maxValue, float step = 0.5, int precision = 2,
TQWidget* tqparent=0, const char* name=0 ); TQWidget* parent=0, const char* name=0 );
virtual ~FloatSpinBox(); virtual ~FloatSpinBox();
TQString mapValueToText( int value ); TQString mapValueToText( int value );

@ -47,8 +47,8 @@ namespace kt
{ {
InfoWidgetPlugin::InfoWidgetPlugin(TQObject* tqparent, const char* name, const TQStringList& args) InfoWidgetPlugin::InfoWidgetPlugin(TQObject* parent, const char* name, const TQStringList& args)
: Plugin(tqparent, name, args,NAME,i18n("Info Widget"),AUTHOR,EMAIL, : Plugin(parent, name, args,NAME,i18n("Info Widget"),AUTHOR,EMAIL,
i18n("Shows additional information about a download. Like which chunks have been downloaded, how many seeders and leechers ..."), i18n("Shows additional information about a download. Like which chunks have been downloaded, how many seeders and leechers ..."),
"ktinfowidget") "ktinfowidget")
{ {

@ -44,7 +44,7 @@ namespace kt
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
InfoWidgetPlugin(TQObject* tqparent, const char* name, const TQStringList& args); InfoWidgetPlugin(TQObject* parent, const char* name, const TQStringList& args);
virtual ~InfoWidgetPlugin(); virtual ~InfoWidgetPlugin();
virtual void load(); virtual void load();

@ -53,9 +53,9 @@ namespace kt
return true; return true;
} }
void InfoWidgetPrefPage::createWidget(TQWidget* tqparent) void InfoWidgetPrefPage::createWidget(TQWidget* parent)
{ {
pref = new IWPref(tqparent); pref = new IWPref(parent);
updateData(); updateData();
} }

@ -41,7 +41,7 @@ namespace kt
virtual ~InfoWidgetPrefPage(); virtual ~InfoWidgetPrefPage();
virtual bool apply(); virtual bool apply();
virtual void createWidget(TQWidget* tqparent); virtual void createWidget(TQWidget* parent);
virtual void deleteWidget(); virtual void deleteWidget();
virtual void updateData(); virtual void updateData();

@ -38,8 +38,8 @@ namespace kt
{ {
} }
IWFileTreeDirItem::IWFileTreeDirItem(IWFileTreeDirItem* tqparent,const TQString & name) IWFileTreeDirItem::IWFileTreeDirItem(IWFileTreeDirItem* parent,const TQString & name)
: kt::FileTreeDirItem(tqparent,name) : kt::FileTreeDirItem(parent,name)
{ {
} }

@ -50,7 +50,7 @@ namespace kt
{ {
public: public:
IWFileTreeDirItem(KListView* klv,const TQString & name); IWFileTreeDirItem(KListView* klv,const TQString & name);
IWFileTreeDirItem(IWFileTreeDirItem* tqparent,const TQString & name); IWFileTreeDirItem(IWFileTreeDirItem* parent,const TQString & name);
virtual ~IWFileTreeDirItem(); virtual ~IWFileTreeDirItem();
/** /**

@ -23,8 +23,8 @@
#include <klocale.h> #include <klocale.h>
#include "localefloatvalidator.h" #include "localefloatvalidator.h"
kt::LocaleFloatValidator::LocaleFloatValidator( TQObject * tqparent, const char * name ) kt::LocaleFloatValidator::LocaleFloatValidator( TQObject * parent, const char * name )
:TQValidator(tqparent, name) :TQValidator(parent, name)
{ {
TQString decimalPoint = TQRegExp::escape(KGlobal::locale()->decimalSymbol()); TQString decimalPoint = TQRegExp::escape(KGlobal::locale()->decimalSymbol());
regexp.setPattern("^-?\\d*(" + decimalPoint + "\\d*)?$"); regexp.setPattern("^-?\\d*(" + decimalPoint + "\\d*)?$");

@ -35,7 +35,7 @@ namespace kt{
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
LocaleFloatValidator( TQObject * tqparent, const char *name = 0 ); LocaleFloatValidator( TQObject * parent, const char *name = 0 );
virtual TQValidator::State validate( TQString & str, int & pos) const; virtual TQValidator::State validate( TQString & str, int & pos) const;
private: private:

@ -207,8 +207,8 @@ namespace kt
return 0; return 0;
} }
PeerView::PeerView(TQWidget *tqparent, const char *name) PeerView::PeerView(TQWidget *parent, const char *name)
: KListView(tqparent, name) : KListView(parent, name)
{ {
addColumn(i18n("IP")); addColumn(i18n("IP"));
addColumn(i18n("Country")); addColumn(i18n("Country"));

@ -59,7 +59,7 @@ namespace kt
TQMap<kt::PeerInterface*,PeerViewItem*> items; TQMap<kt::PeerInterface*,PeerViewItem*> items;
public: public:
PeerView(TQWidget *tqparent = 0, const char *name = 0); PeerView(TQWidget *parent = 0, const char *name = 0);
virtual ~PeerView(); virtual ~PeerView();
public slots: public slots:

@ -34,8 +34,8 @@
namespace kt namespace kt
{ {
StatusTab::StatusTab(TQWidget* tqparent, const char* name, WFlags fl) StatusTab::StatusTab(TQWidget* parent, const char* name, WFlags fl)
: StatusTabBase(tqparent,name,fl),curr_tc(0) : StatusTabBase(parent,name,fl),curr_tc(0)
{ {
TQColorGroup cg = tqcolorGroup(); TQColorGroup cg = tqcolorGroup();
// do not use hardcoded colors // do not use hardcoded colors

@ -33,7 +33,7 @@ namespace kt
TQ_OBJECT TQ_OBJECT
public: public:
StatusTab(TQWidget* tqparent = 0, const char* name = 0, WFlags fl = 0 ); StatusTab(TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
virtual ~StatusTab(); virtual ~StatusTab();

@ -43,8 +43,8 @@
namespace kt namespace kt
{ {
TrackerView::TrackerView(TQWidget *tqparent, const char *name) TrackerView::TrackerView(TQWidget *parent, const char *name)
:TrackerViewBase(tqparent, name), tc(0) :TrackerViewBase(parent, name), tc(0)
{ {
KIconLoader* iload = KGlobal::iconLoader(); KIconLoader* iload = KGlobal::iconLoader();
btnUpdate->setIconSet(iload->loadIconSet("apply", KIcon::Small)); btnUpdate->setIconSet(iload->loadIconSet("apply", KIcon::Small));

@ -37,7 +37,7 @@ namespace kt
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
TrackerView(TQWidget *tqparent = 0, const char *name = 0); TrackerView(TQWidget *parent = 0, const char *name = 0);
virtual ~TrackerView(); virtual ~TrackerView();
void update(); void update();

@ -74,8 +74,8 @@ namespace kt
return block; return block;
} }
ConvertDialog::ConvertDialog( IPFilterPlugin* p, TQWidget *tqparent, const char *name ) ConvertDialog::ConvertDialog( IPFilterPlugin* p, TQWidget *parent, const char *name )
: ConvertingDlg( tqparent, name ) : ConvertingDlg( parent, name )
{ {
m_plugin = p; m_plugin = p;
btnClose->setText(i18n("Convert")); btnClose->setText(i18n("Convert"));

@ -33,7 +33,7 @@ namespace kt
TQ_OBJECT TQ_OBJECT
public: public:
ConvertDialog( IPFilterPlugin* p, TQWidget *tqparent = 0, const char *name = 0 ); ConvertDialog( IPFilterPlugin* p, TQWidget *parent = 0, const char *name = 0 );
public slots: public slots:
virtual void btnClose_clicked(); virtual void btnClose_clicked();

@ -55,7 +55,7 @@ using namespace bt;
namespace kt namespace kt
{ {
IPBlockingPrefPageWidget::IPBlockingPrefPageWidget(TQWidget* tqparent) : IPBlockingPref(tqparent) IPBlockingPrefPageWidget::IPBlockingPrefPageWidget(TQWidget* parent) : IPBlockingPref(parent)
{ {
m_url->setURL(IPBlockingPluginSettings::filterURL()); m_url->setURL(IPBlockingPluginSettings::filterURL());
if (m_url->url() == "") if (m_url->url() == "")
@ -240,9 +240,9 @@ namespace kt
return true; return true;
} }
void IPBlockingPrefPage::createWidget(TQWidget* tqparent) void IPBlockingPrefPage::createWidget(TQWidget* parent)
{ {
widget = new IPBlockingPrefPageWidget(tqparent); widget = new IPBlockingPrefPageWidget(parent);
widget->setPlugin(m_plugin); widget->setPlugin(m_plugin);
widget->setPrefPage(this); widget->setPrefPage(this);
} }

@ -41,7 +41,7 @@ namespace kt
class IPBlockingPrefPageWidget : public IPBlockingPref class IPBlockingPrefPageWidget : public IPBlockingPref
{ {
public: public:
IPBlockingPrefPageWidget(TQWidget *tqparent = 0); IPBlockingPrefPageWidget(TQWidget *parent = 0);
void apply(); void apply();
void convert(); void convert();
void setPlugin(IPFilterPlugin* p); void setPlugin(IPFilterPlugin* p);
@ -70,7 +70,7 @@ namespace kt
virtual ~IPBlockingPrefPage(); virtual ~IPBlockingPrefPage();
virtual bool apply(); virtual bool apply();
virtual void createWidget(TQWidget* tqparent); virtual void createWidget(TQWidget* parent);
virtual void updateData(); virtual void updateData();
virtual void deleteWidget(); virtual void deleteWidget();

@ -42,8 +42,8 @@ namespace kt
const TQString EMAIL = "ivasic@gmail.com"; const TQString EMAIL = "ivasic@gmail.com";
const TQString DESCRIPTION = i18n("Filters out unwanted peers based on their IP address"); const TQString DESCRIPTION = i18n("Filters out unwanted peers based on their IP address");
IPFilterPlugin::IPFilterPlugin(TQObject* tqparent, const char* name, const TQStringList& args) IPFilterPlugin::IPFilterPlugin(TQObject* parent, const char* name, const TQStringList& args)
: Plugin(tqparent, name, args,NAME,i18n("IP Filter"),AUTHOR,EMAIL,DESCRIPTION,"filter") : Plugin(parent, name, args,NAME,i18n("IP Filter"),AUTHOR,EMAIL,DESCRIPTION,"filter")
{ {
// setXMLFile("ktpluginui.rc"); // setXMLFile("ktpluginui.rc");
level1 = 0; level1 = 0;

@ -44,7 +44,7 @@ namespace kt
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
IPFilterPlugin(TQObject* tqparent, const char* name, const TQStringList& args); IPFilterPlugin(TQObject* parent, const char* name, const TQStringList& args);
virtual ~IPFilterPlugin(); virtual ~IPFilterPlugin();
virtual void load(); virtual void load();

@ -46,9 +46,9 @@ namespace kt
return true; return true;
} }
void LogPrefPage::createWidget(TQWidget* tqparent) void LogPrefPage::createWidget(TQWidget* parent)
{ {
m_widget = new LogPrefWidget(tqparent); m_widget = new LogPrefWidget(parent);
} }
void LogPrefPage::updateData() void LogPrefPage::updateData()

@ -38,7 +38,7 @@ namespace kt
virtual ~LogPrefPage(); virtual ~LogPrefPage();
virtual bool apply(); virtual bool apply();
virtual void createWidget(TQWidget* tqparent); virtual void createWidget(TQWidget* parent);
virtual void updateData(); virtual void updateData();
virtual void deleteWidget(); virtual void deleteWidget();

@ -31,8 +31,8 @@
namespace kt namespace kt
{ {
LogPrefWidget::LogPrefWidget(TQWidget *tqparent, const char *name) LogPrefWidget::LogPrefWidget(TQWidget *parent, const char *name)
:LogPrefWidgetBase(tqparent, name) :LogPrefWidgetBase(parent, name)
{ {
m_sysgen->setCurrentItem(getLevel(LogViewerPluginSettings::sysGEN())); m_sysgen->setCurrentItem(getLevel(LogViewerPluginSettings::sysGEN()));
m_syscon->setCurrentItem(getLevel(LogViewerPluginSettings::sysCON())); m_syscon->setCurrentItem(getLevel(LogViewerPluginSettings::sysCON()));

@ -29,7 +29,7 @@ namespace kt
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
LogPrefWidget(TQWidget *tqparent = 0, const char *name = 0); LogPrefWidget(TQWidget *parent = 0, const char *name = 0);
bool apply(); bool apply();
private: private:

@ -41,8 +41,8 @@ namespace kt
const TQString & msg() const {return str;} const TQString & msg() const {return str;}
}; };
LogViewer::LogViewer(TQWidget *tqparent, const char *name) LogViewer::LogViewer(TQWidget *parent, const char *name)
: KTextBrowser(tqparent, name), LogMonitorInterface() : KTextBrowser(parent, name), LogMonitorInterface()
{ {
/* /*
IMPORTANT: use LogText mode, so that setMaxLogLines will work, if not everything will be kept in memory. IMPORTANT: use LogText mode, so that setMaxLogLines will work, if not everything will be kept in memory.

@ -34,7 +34,7 @@ namespace kt
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
LogViewer(TQWidget *tqparent = 0, const char *name = 0); LogViewer(TQWidget *parent = 0, const char *name = 0);
virtual ~LogViewer(); virtual ~LogViewer();
virtual void message(const TQString& line, unsigned int arg); virtual void message(const TQString& line, unsigned int arg);

@ -40,8 +40,8 @@ K_EXPORT_COMPONENT_FACTORY(ktlogviewerplugin,KGenericFactory<kt::LogViewerPlugin
namespace kt namespace kt
{ {
LogViewerPlugin::LogViewerPlugin(TQObject* tqparent, const char* qt_name, const TQStringList& args) LogViewerPlugin::LogViewerPlugin(TQObject* parent, const char* qt_name, const TQStringList& args)
: Plugin(tqparent, qt_name, args, NAME,i18n("Log Viewer"), AUTHOR, EMAIL, : Plugin(parent, qt_name, args, NAME,i18n("Log Viewer"), AUTHOR, EMAIL,
i18n("Displays ktorrent logging output"),"log") i18n("Displays ktorrent logging output"),"log")
{ {
lv = 0; lv = 0;

@ -37,7 +37,7 @@ namespace kt
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
LogViewerPlugin(TQObject* tqparent, const char* qt_name, const TQStringList& args); LogViewerPlugin(TQObject* parent, const char* qt_name, const TQStringList& args);
virtual ~LogViewerPlugin(); virtual ~LogViewerPlugin();
virtual void load(); virtual void load();

@ -42,8 +42,8 @@ using namespace bt;
namespace kt namespace kt
{ {
ImportDialog::ImportDialog(CoreInterface* core,TQWidget* tqparent, const char* name, bool modal, WFlags fl) ImportDialog::ImportDialog(CoreInterface* core,TQWidget* parent, const char* name, bool modal, WFlags fl)
: ImportDlgBase(tqparent,name, modal,fl),DataCheckerListener(false),core(core) : ImportDlgBase(parent,name, modal,fl),DataCheckerListener(false),core(core)
{ {
KURLRequester* r = m_torrent_url; KURLRequester* r = m_torrent_url;
r->setMode(KFile::File|KFile::LocalOnly); r->setMode(KFile::File|KFile::LocalOnly);

@ -49,7 +49,7 @@ namespace kt
TQ_OBJECT TQ_OBJECT
public: public:
ImportDialog(CoreInterface* core,TQWidget* tqparent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ); ImportDialog(CoreInterface* core,TQWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
virtual ~ImportDialog(); virtual ~ImportDialog();
public slots: public slots:

@ -39,8 +39,8 @@ K_EXPORT_COMPONENT_FACTORY(ktpartfileimportplugin,KGenericFactory<kt::PartFileIm
namespace kt namespace kt
{ {
PartFileImportPlugin::PartFileImportPlugin(TQObject* tqparent, const char* name, const TQStringList& args) PartFileImportPlugin::PartFileImportPlugin(TQObject* parent, const char* name, const TQStringList& args)
: Plugin(tqparent, name, args,NAME,i18n("Import"),AUTHOR,EMAIL,i18n("Imports partially or fully downloaded torrents from other clients"),"ktplugins") : Plugin(parent, name, args,NAME,i18n("Import"),AUTHOR,EMAIL,i18n("Imports partially or fully downloaded torrents from other clients"),"ktplugins")
{ {
setXMLFile("ktpartfileimportpluginui.rc"); setXMLFile("ktpartfileimportpluginui.rc");
import_action = 0; import_action = 0;

@ -35,7 +35,7 @@ namespace kt
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
PartFileImportPlugin(TQObject* tqparent, const char* name, const TQStringList& args); PartFileImportPlugin(TQObject* parent, const char* name, const TQStringList& args);
virtual ~PartFileImportPlugin(); virtual ~PartFileImportPlugin();
virtual void load(); virtual void load();

@ -241,9 +241,9 @@ TQString Article::meta(const TQString &key) const
return d->meta[key]; return d->meta[key];
} }
KURLLabel *Article::widget(TQWidget *tqparent, const char *name) const KURLLabel *Article::widget(TQWidget *parent, const char *name) const
{ {
KURLLabel *label = new KURLLabel(d->link.url(), d->title, tqparent, name); KURLLabel *label = new KURLLabel(d->link.url(), d->title, parent, name);
label->setUseTips(true); label->setUseTips(true);
if (!d->description.isNull()) if (!d->description.isNull())
label->setTipText(d->description); label->setTipText(d->description);

@ -132,7 +132,7 @@ namespace RSS
TQString meta(const TQString &key) const; TQString meta(const TQString &key) const;
/** /**
* @param tqparent The tqparent widget for the KURLLabel. * @param parent The parent widget for the KURLLabel.
* @param name A name for the widget which will be used internally. * @param name A name for the widget which will be used internally.
* @return a widget (a KURLLabel in this case) for the Article. * @return a widget (a KURLLabel in this case) for the Article.
* This makes building a user-interface which contains the * This makes building a user-interface which contains the
@ -145,7 +145,7 @@ namespace RSS
* Note that you have to delete the KURLLabel object returned by * Note that you have to delete the KURLLabel object returned by
* this method yourself. * this method yourself.
*/ */
KURLLabel *widget(TQWidget *tqparent = 0, const char *name = 0) const; KURLLabel *widget(TQWidget *parent = 0, const char *name = 0) const;
typedef TQMap<TQString, TQString> MetaInfoMap; typedef TQMap<TQString, TQString> MetaInfoMap;

@ -150,7 +150,7 @@ Document::Document(const TQDomDocument &doc) : d(new Private)
d->link = elemText; d->link = elemText;
/* This is ugly but necessary since RSS 0.90 and 1.0 have a different tqparent /* This is ugly but necessary since RSS 0.90 and 1.0 have a different parent
* node for <image>, <textinput> and <item> than RSS 0.91-0.94 and RSS 2.0. * node for <image>, <textinput> and <item> than RSS 0.91-0.94 and RSS 2.0.
*/ */
TQDomNode parentNode; TQDomNode parentNode;

@ -27,9 +27,9 @@ time_t RSS::parseISO8601Date(const TQString &s)
} }
TQString RSS::extractNode(const TQDomNode &tqparent, const TQString &elemName, bool isInlined) TQString RSS::extractNode(const TQDomNode &parent, const TQString &elemName, bool isInlined)
{ {
TQDomNode node = tqparent.namedItem(elemName); TQDomNode node = parent.namedItem(elemName);
if (node.isNull()) if (node.isNull())
return TQString(); return TQString();

@ -26,7 +26,7 @@ namespace RSS
unsigned int count; unsigned int count;
}; };
TQString extractNode(const TQDomNode &tqparent, const TQString &elemName, bool isInlined=true); TQString extractNode(const TQDomNode &parent, const TQString &elemName, bool isInlined=true);
time_t parseISO8601Date(const TQString &s); time_t parseISO8601Date(const TQString &s);
} }

@ -54,7 +54,7 @@ namespace kt
startFeed(); startFeed();
} }
RssFeed::RssFeed(TQObject * tqparent) : TQObject(tqparent) RssFeed::RssFeed(TQObject * parent) : TQObject(parent)
{ {
m_active = false; m_active = false;
m_articleAge = 365; m_articleAge = 365;

@ -54,7 +54,7 @@ namespace kt
/** /**
* Default constructor. * Default constructor.
*/ */
RssFeed(TQObject * tqparent = 0); RssFeed(TQObject * parent = 0);
RssFeed(KURL feedUrl, TQString title = "", bool active = false, int articleAge = 3, bool ignoreTTL = false, TQTime autoRefresh = TQTime()); RssFeed(KURL feedUrl, TQString title = "", bool active = false, int articleAge = 3, bool ignoreTTL = false, TQTime autoRefresh = TQTime());
RssFeed(const RssFeed &other); RssFeed(const RssFeed &other);
RssFeed &operator=(const RssFeed &other); RssFeed &operator=(const RssFeed &other);

@ -60,7 +60,7 @@ using namespace bt;
namespace kt namespace kt
{ {
RssFeedManager::RssFeedManager(CoreInterface* core, TQWidget * tqparent) : RssFeedWidget(tqparent) RssFeedManager::RssFeedManager(CoreInterface* core, TQWidget * parent) : RssFeedWidget(parent)
{ {
//Construct the manager //Construct the manager
m_core = core; m_core = core;

@ -55,7 +55,7 @@ namespace kt
* @param core Pointer to core interface * @param core Pointer to core interface
* @param openSilently Wheather to open torrent silently or nor. * @param openSilently Wheather to open torrent silently or nor.
*/ */
RssFeedManager(CoreInterface* core, TQWidget * tqparent = 0); RssFeedManager(CoreInterface* core, TQWidget * parent = 0);
~RssFeedManager(); ~RssFeedManager();
public slots: public slots:

@ -47,8 +47,8 @@ namespace kt
const TQString EMAIL = "skyphyr@gmail.com"; const TQString EMAIL = "skyphyr@gmail.com";
const TQString DESCRIPTION = i18n("Automatically scans RSS feeds for torrent matching regular expressions and loads them."); const TQString DESCRIPTION = i18n("Automatically scans RSS feeds for torrent matching regular expressions and loads them.");
RssFeedPlugin::RssFeedPlugin(TQObject* tqparent, const char* name, const TQStringList& args) RssFeedPlugin::RssFeedPlugin(TQObject* parent, const char* name, const TQStringList& args)
: Plugin(tqparent, name, args,NAME,i18n("RSS Feeds"),AUTHOR,EMAIL,DESCRIPTION,"player_playlist") : Plugin(parent, name, args,NAME,i18n("RSS Feeds"),AUTHOR,EMAIL,DESCRIPTION,"player_playlist")
{ {
m_rssFeedManager = 0; m_rssFeedManager = 0;
} }

@ -39,7 +39,7 @@ namespace kt
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
RssFeedPlugin(TQObject* tqparent, const char* name, const TQStringList& args); RssFeedPlugin(TQObject* parent, const char* name, const TQStringList& args);
virtual ~RssFeedPlugin(); virtual ~RssFeedPlugin();
virtual void load(); virtual void load();

@ -53,7 +53,7 @@ namespace kt
return m_link==other.link() && m_season==other.season() && m_episode==other.episode(); return m_link==other.link() && m_season==other.season() && m_episode==other.episode();
} }
RssFilter::RssFilter(TQObject * tqparent) : TQObject(tqparent) RssFilter::RssFilter(TQObject * parent) : TQObject(parent)
{ {
m_title = "New"; m_title = "New";
m_active = false; m_active = false;

@ -75,7 +75,7 @@ namespace kt
/** /**
* Default constructor. * Default constructor.
*/ */
RssFilter(TQObject * tqparent = 0); RssFilter(TQObject * parent = 0);
RssFilter(const RssFilter &other); RssFilter(const RssFilter &other);
RssFilter(TQString title, bool active, TQStringList regexps, bool series, bool sansEpisode, RssFilter(TQString title, bool active, TQStringList regexps, bool series, bool sansEpisode,
int minSeason, int minEpisode, int maxSeason, int maxEpisode, int minSeason, int minEpisode, int maxSeason, int maxEpisode,

@ -33,7 +33,7 @@ using namespace bt;
namespace kt namespace kt
{ {
RssLinkDownloader::RssLinkDownloader(CoreInterface* core, TQString link, RssFilter * filter, TQObject * tqparent) : TQObject (tqparent) RssLinkDownloader::RssLinkDownloader(CoreInterface* core, TQString link, RssFilter * filter, TQObject * parent) : TQObject (parent)
{ {
//tempFile.setAutoDelete(true); //tempFile.setAutoDelete(true);
m_core = core; m_core = core;

@ -53,7 +53,7 @@ namespace kt
/** /**
* Default constructor. * Default constructor.
*/ */
RssLinkDownloader(CoreInterface* core, TQString link, RssFilter * filter = 0, TQObject * tqparent = 0); RssLinkDownloader(CoreInterface* core, TQString link, RssFilter * filter = 0, TQObject * parent = 0);
~RssLinkDownloader(); ~RssLinkDownloader();

@ -48,8 +48,8 @@ namespace kt
const TQString EMAIL = "ivasic@gmail.com"; const TQString EMAIL = "ivasic@gmail.com";
const TQString DESCRIPTION = i18n("Automatically scans directories for torrent files and loads them."); const TQString DESCRIPTION = i18n("Automatically scans directories for torrent files and loads them.");
ScanFolderPlugin::ScanFolderPlugin(TQObject* tqparent, const char* name, const TQStringList& args) ScanFolderPlugin::ScanFolderPlugin(TQObject* parent, const char* name, const TQStringList& args)
: Plugin(tqparent, name, args,NAME,i18n("Scan Folder"),AUTHOR,EMAIL,DESCRIPTION,"view_sidetree") : Plugin(parent, name, args,NAME,i18n("Scan Folder"),AUTHOR,EMAIL,DESCRIPTION,"view_sidetree")
{ {
// setXMLFile("ktscanfolderpluginui.rc"); // setXMLFile("ktscanfolderpluginui.rc");
m_sf1 = 0; m_sf1 = 0;

@ -40,7 +40,7 @@ namespace kt
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
ScanFolderPlugin(TQObject* tqparent, const char* name, const TQStringList& args); ScanFolderPlugin(TQObject* parent, const char* name, const TQStringList& args);
virtual ~ScanFolderPlugin(); virtual ~ScanFolderPlugin();
virtual void load(); virtual void load();

@ -49,9 +49,9 @@ namespace kt
return true; return true;
} }
void ScanFolderPrefPage::createWidget(TQWidget* tqparent) void ScanFolderPrefPage::createWidget(TQWidget* parent)
{ {
m_widget = new ScanFolderPrefPageWidget(tqparent); m_widget = new ScanFolderPrefPageWidget(parent);
} }
void ScanFolderPrefPage::updateData() void ScanFolderPrefPage::updateData()

@ -39,7 +39,7 @@ namespace kt
virtual ~ScanFolderPrefPage(); virtual ~ScanFolderPrefPage();
virtual bool apply(); virtual bool apply();
virtual void createWidget(TQWidget* tqparent); virtual void createWidget(TQWidget* parent);
virtual void updateData(); virtual void updateData();
virtual void deleteWidget(); virtual void deleteWidget();

@ -32,8 +32,8 @@
namespace kt namespace kt
{ {
ScanFolderPrefPageWidget::ScanFolderPrefPageWidget(TQWidget *tqparent, const char *name) ScanFolderPrefPageWidget::ScanFolderPrefPageWidget(TQWidget *parent, const char *name)
:SfPrefPageWidgetBase(tqparent, name) :SfPrefPageWidgetBase(parent, name)
{ {
use1->setChecked(ScanFolderPluginSettings::useFolder1()); use1->setChecked(ScanFolderPluginSettings::useFolder1());
use2->setChecked(ScanFolderPluginSettings::useFolder2()); use2->setChecked(ScanFolderPluginSettings::useFolder2());

@ -29,7 +29,7 @@ namespace kt
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
ScanFolderPrefPageWidget(TQWidget *tqparent = 0, const char *name = 0); ScanFolderPrefPageWidget(TQWidget *parent = 0, const char *name = 0);
void apply(); void apply();
}; };

@ -45,8 +45,8 @@ namespace kt
/* PREF PAGE WIDGET --------------------------------------------------------*/ /* PREF PAGE WIDGET --------------------------------------------------------*/
BWSPrefPageWidget::BWSPrefPageWidget(TQWidget* tqparent, const char* name, WFlags fl) BWSPrefPageWidget::BWSPrefPageWidget(TQWidget* parent, const char* name, WFlags fl)
: BWSPage(tqparent,name,fl) : BWSPage(parent,name,fl)
{ {
loadDefault(); loadDefault();

@ -36,7 +36,7 @@ namespace kt
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
BWSPrefPageWidget(TQWidget* tqparent = 0, const char* name = 0, WFlags fl = 0 ); BWSPrefPageWidget(TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~BWSPrefPageWidget(); ~BWSPrefPageWidget();
/*$PUBLIC_FUNCTIONS$*/ /*$PUBLIC_FUNCTIONS$*/

@ -34,8 +34,8 @@
namespace kt namespace kt
{ {
BWSWidget::BWSWidget(TQWidget* tqparent, const char* name, bool useColors) BWSWidget::BWSWidget(TQWidget* parent, const char* name, bool useColors)
: TQTable(tqparent,name), m_leftCategory(1), m_rightCategory(0), draw_focus(true), right_click(false), use_colors(useColors) : TQTable(parent,name), m_leftCategory(1), m_rightCategory(0), draw_focus(true), right_click(false), use_colors(useColors)
{ {
use_colors = SchedulerPluginSettings::useColors(); use_colors = SchedulerPluginSettings::useColors();

@ -46,7 +46,7 @@ namespace kt
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
BWSWidget(TQWidget* tqparent = 0, const char* name = 0, bool useColors = true); BWSWidget(TQWidget* parent = 0, const char* name = 0, bool useColors = true);
~BWSWidget(); ~BWSWidget();
///Repaints the whole widget ///Repaints the whole widget

@ -55,8 +55,8 @@ namespace kt
const TQString EMAIL = "ivasic@gmail.com"; const TQString EMAIL = "ivasic@gmail.com";
const TQString DESCRIPTION = i18n("Bandwidth scheduling plugin"); const TQString DESCRIPTION = i18n("Bandwidth scheduling plugin");
SchedulerPlugin::SchedulerPlugin(TQObject* tqparent, const char* name, const TQStringList& args) SchedulerPlugin::SchedulerPlugin(TQObject* parent, const char* name, const TQStringList& args)
: Plugin(tqparent, name, args,NAME,i18n("Bandwidth Scheduler"),AUTHOR,EMAIL,DESCRIPTION, "clock") : Plugin(parent, name, args,NAME,i18n("Bandwidth Scheduler"),AUTHOR,EMAIL,DESCRIPTION, "clock")
{ {
setXMLFile("ktschedulerpluginui.rc"); setXMLFile("ktschedulerpluginui.rc");
bws_action = 0; bws_action = 0;

@ -45,7 +45,7 @@ namespace kt
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
SchedulerPlugin(TQObject* tqparent, const char* name, const TQStringList& args); SchedulerPlugin(TQObject* parent, const char* name, const TQStringList& args);
virtual ~SchedulerPlugin(); virtual ~SchedulerPlugin();
virtual void load(); virtual void load();

@ -48,9 +48,9 @@ namespace kt
return true; return true;
} }
void SchedulerPrefPage::createWidget( TQWidget * tqparent ) void SchedulerPrefPage::createWidget( TQWidget * parent )
{ {
widget = new SchedulerPrefPageWidget(tqparent); widget = new SchedulerPrefPageWidget(parent);
} }
void SchedulerPrefPage::updateData() void SchedulerPrefPage::updateData()

@ -40,7 +40,7 @@ namespace kt
virtual ~SchedulerPrefPage(); virtual ~SchedulerPrefPage();
virtual bool apply(); virtual bool apply();
virtual void createWidget(TQWidget* tqparent); virtual void createWidget(TQWidget* parent);
virtual void updateData(); virtual void updateData();
virtual void deleteWidget(); virtual void deleteWidget();

@ -30,8 +30,8 @@
namespace kt namespace kt
{ {
SchedulerPrefPageWidget::SchedulerPrefPageWidget(TQWidget* tqparent, const char* name, WFlags fl) SchedulerPrefPageWidget::SchedulerPrefPageWidget(TQWidget* parent, const char* name, WFlags fl)
: SchedulerPage(tqparent,name,fl) : SchedulerPage(parent,name,fl)
{ {
groupBWS->setEnabled(false); groupBWS->setEnabled(false);
bool useit = SchedulerPluginSettings::enableBWS(); bool useit = SchedulerPluginSettings::enableBWS();

@ -34,7 +34,7 @@ namespace kt
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
SchedulerPrefPageWidget(TQWidget* tqparent = 0, const char* name = 0, WFlags fl = 0 ); SchedulerPrefPageWidget(TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~SchedulerPrefPageWidget(); ~SchedulerPrefPageWidget();

@ -36,8 +36,8 @@ using namespace bt;
namespace kt namespace kt
{ {
HTMLPart::HTMLPart(TQWidget *tqparent) HTMLPart::HTMLPart(TQWidget *parent)
: KHTMLPart(tqparent) : KHTMLPart(parent)
{ {
setJScriptEnabled(true); setJScriptEnabled(true);
setJavaEnabled(true); setJavaEnabled(true);

@ -39,7 +39,7 @@ namespace kt
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
HTMLPart(TQWidget *tqparent = 0); HTMLPart(TQWidget *parent = 0);
virtual ~HTMLPart(); virtual ~HTMLPart();
public slots: public slots:

@ -46,8 +46,8 @@ K_EXPORT_COMPONENT_FACTORY(ktsearchplugin,KGenericFactory<kt::SearchPlugin>("kts
namespace kt namespace kt
{ {
SearchPlugin::SearchPlugin(TQObject* tqparent, const char* name, const TQStringList& args) SearchPlugin::SearchPlugin(TQObject* parent, const char* name, const TQStringList& args)
: Plugin(tqparent, name, args,NAME,i18n("Search"),AUTHOR,EMAIL, : Plugin(parent, name, args,NAME,i18n("Search"),AUTHOR,EMAIL,
i18n("Search for torrents on several popular torrent search engines"),"viewmag") i18n("Search for torrents on several popular torrent search engines"),"viewmag")
{ {
// setXMLFile("ktsearchpluginui.rc"); // setXMLFile("ktsearchpluginui.rc");

@ -39,7 +39,7 @@ namespace kt
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
SearchPlugin(TQObject* tqparent, const char* name, const TQStringList& args); SearchPlugin(TQObject* parent, const char* name, const TQStringList& args);
virtual ~SearchPlugin(); virtual ~SearchPlugin();
virtual void load(); virtual void load();

@ -47,7 +47,7 @@ using namespace bt;
namespace kt namespace kt
{ {
SearchPrefPageWidget::SearchPrefPageWidget(TQWidget *tqparent) : SEPreferences(tqparent) SearchPrefPageWidget::SearchPrefPageWidget(TQWidget *parent) : SEPreferences(parent)
{ {
TQString info = i18n("Use your web browser to search for the string %1" TQString info = i18n("Use your web browser to search for the string %1"
" (capital letters) on the search engine you want to add. <br> " " (capital letters) on the search engine you want to add. <br> "
@ -264,9 +264,9 @@ namespace kt
return ret; return ret;
} }
void SearchPrefPage::createWidget(TQWidget* tqparent) void SearchPrefPage::createWidget(TQWidget* parent)
{ {
widget = new SearchPrefPageWidget(tqparent); widget = new SearchPrefPageWidget(parent);
} }
void SearchPrefPage::deleteWidget() void SearchPrefPage::deleteWidget()

@ -36,7 +36,7 @@ namespace kt
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
SearchPrefPageWidget(TQWidget *tqparent = 0); SearchPrefPageWidget(TQWidget *parent = 0);
bool apply(); bool apply();
void saveSearchEngines(); void saveSearchEngines();
@ -65,7 +65,7 @@ namespace kt
virtual ~SearchPrefPage(); virtual ~SearchPrefPage();
virtual bool apply(); virtual bool apply();
virtual void createWidget(TQWidget* tqparent); virtual void createWidget(TQWidget* parent);
virtual void updateData(); virtual void updateData();
virtual void deleteWidget(); virtual void deleteWidget();

@ -54,9 +54,9 @@ bool StatsPluginPrefs::apply ()
return true; return true;
} }
void StatsPluginPrefs::createWidget (TQWidget *tqparent) void StatsPluginPrefs::createWidget (TQWidget *parent)
{ {
pmUi = new StatsPluginPrefsPage(tqparent); pmUi = new StatsPluginPrefsPage(parent);
} }
void StatsPluginPrefs::updateData () void StatsPluginPrefs::updateData ()

@ -55,7 +55,7 @@ class StatsPluginPrefs : public TQObject, public PrefPageInterface
virtual ~StatsPluginPrefs(); virtual ~StatsPluginPrefs();
virtual bool apply (); virtual bool apply ();
virtual void createWidget (TQWidget *tqparent); virtual void createWidget (TQWidget *parent);
virtual void updateData (); virtual void updateData ();
virtual void deleteWidget (); virtual void deleteWidget ();
signals: signals:

@ -25,8 +25,8 @@ K_EXPORT_COMPONENT_FACTORY(ktstatsplugin, KGenericFactory<kt::StatsPlugin>("ktst
namespace kt namespace kt
{ {
StatsPlugin::StatsPlugin(TQObject* tqparent, const char* qt_name, const TQStringList& args): StatsPlugin::StatsPlugin(TQObject* parent, const char* qt_name, const TQStringList& args):
Plugin(tqparent, qt_name, args, "Statistics", i18n("Statistics"),"Krzysztof Kundzicz", "athantor@gmail.com", i18n("Shows transfers statistics"),"ktimemon"), pmUiSpd(0), pmUiCon(0), pmPrefsUi(0), pmUpdTmr(0) Plugin(parent, qt_name, args, "Statistics", i18n("Statistics"),"Krzysztof Kundzicz", "athantor@gmail.com", i18n("Shows transfers statistics"),"ktimemon"), pmUiSpd(0), pmUiCon(0), pmPrefsUi(0), pmUpdTmr(0)
{ {
mUpAvg = std::make_pair(0.0, 0.0); mUpAvg = std::make_pair(0.0, 0.0);
mDownAvg = std::make_pair(0.0, 0.0); mDownAvg = std::make_pair(0.0, 0.0);
@ -46,8 +46,8 @@ void StatsPlugin::load()
mUpdCtr = 1; mUpdCtr = 1;
mPeerSpdUpdCtr = 1; mPeerSpdUpdCtr = 1;
pmUiSpd = new StatsSpd(dynamic_cast<TQWidget *>(tqparent())); pmUiSpd = new StatsSpd(dynamic_cast<TQWidget *>(parent()));
pmUiCon = new StatsCon(dynamic_cast<TQWidget *>(tqparent())); pmUiCon = new StatsCon(dynamic_cast<TQWidget *>(parent()));
pmPrefsUi = new StatsPluginPrefs(); pmPrefsUi = new StatsPluginPrefs();
pmUpdTmr = new TQTimer(this); pmUpdTmr = new TQTimer(this);

@ -134,11 +134,11 @@ class StatsPlugin : public Plugin
public: public:
/** /**
\brief Constructor \brief Constructor
\param tqparent Parent \param parent Parent
\param qt_name \param qt_name
\param args \param args
*/ */
StatsPlugin(TQObject* tqparent, const char* qt_name, const TQStringList& args); StatsPlugin(TQObject* parent, const char* qt_name, const TQStringList& args);
///Destructor ///Destructor
virtual ~StatsPlugin(); virtual ~StatsPlugin();

@ -42,8 +42,8 @@ K_EXPORT_COMPONENT_FACTORY(ktupnpplugin,KGenericFactory<kt::UPnPPlugin>("ktupnpp
namespace kt namespace kt
{ {
UPnPPlugin::UPnPPlugin(TQObject* tqparent, const char* name, const TQStringList& args) UPnPPlugin::UPnPPlugin(TQObject* parent, const char* name, const TQStringList& args)
: Plugin(tqparent, name, args,NAME,i18n("UPnP"),AUTHOR,EMAIL,i18n("Uses UPnP to automatically forward ports on your router"),"ktupnp") : Plugin(parent, name, args,NAME,i18n("UPnP"),AUTHOR,EMAIL,i18n("Uses UPnP to automatically forward ports on your router"),"ktupnp")
{ {
sock = 0; sock = 0;
pref = 0; pref = 0;

@ -35,7 +35,7 @@ namespace kt
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
UPnPPlugin(TQObject* tqparent, const char* name, const TQStringList& args); UPnPPlugin(TQObject* parent, const char* name, const TQStringList& args);
virtual ~UPnPPlugin(); virtual ~UPnPPlugin();
virtual void load(); virtual void load();

@ -43,9 +43,9 @@ namespace kt
return true; return true;
} }
void UPnPPrefPage::createWidget(TQWidget* tqparent) void UPnPPrefPage::createWidget(TQWidget* parent)
{ {
widget = new UPnPPrefWidget(tqparent); widget = new UPnPPrefWidget(parent);
TQObject::connect(sock,TQT_SIGNAL(discovered(UPnPRouter* )),widget,TQT_SLOT(addDevice(UPnPRouter* ))); TQObject::connect(sock,TQT_SIGNAL(discovered(UPnPRouter* )),widget,TQT_SLOT(addDevice(UPnPRouter* )));
TQObject::connect(widget,TQT_SIGNAL(rescan()),sock,TQT_SLOT(discover())); TQObject::connect(widget,TQT_SIGNAL(rescan()),sock,TQT_SLOT(discover()));
} }

@ -46,7 +46,7 @@ namespace kt
virtual ~UPnPPrefPage(); virtual ~UPnPPrefPage();
virtual bool apply(); virtual bool apply();
virtual void createWidget(TQWidget* tqparent); virtual void createWidget(TQWidget* parent);
virtual void deleteWidget(); virtual void deleteWidget();
virtual void updateData(); virtual void updateData();

@ -37,8 +37,8 @@ using namespace bt;
namespace kt namespace kt
{ {
UPnPPrefWidget::UPnPPrefWidget(TQWidget* tqparent, const char* name, WFlags fl) UPnPPrefWidget::UPnPPrefWidget(TQWidget* parent, const char* name, WFlags fl)
: UPnPWidget(tqparent,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,TQT_SIGNAL(clicked()),this,TQT_SLOT(onForwardBtnClicked()));

@ -44,7 +44,7 @@ namespace kt
TQ_OBJECT TQ_OBJECT
public: public:
UPnPPrefWidget(TQWidget* tqparent = 0, const char* name = 0, WFlags fl = 0 ); UPnPPrefWidget(TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
virtual ~UPnPPrefWidget(); virtual ~UPnPPrefWidget();
void shutdown(bt::WaitJob* job); void shutdown(bt::WaitJob* job);

@ -40,8 +40,8 @@ K_EXPORT_COMPONENT_FACTORY(ktwebinterfaceplugin,KGenericFactory<kt::WebInterface
using namespace bt; using namespace bt;
namespace kt namespace kt
{ {
WebInterfacePlugin::WebInterfacePlugin(TQObject* tqparent, const char* name, const TQStringList& args) WebInterfacePlugin::WebInterfacePlugin(TQObject* parent, const char* name, const TQStringList& args)
: Plugin(tqparent, name, args,NAME,i18n("Web Interface"),AUTHOR,EMAIL,i18n("Allow to control ktorrent through browser"),"toggle_log") : Plugin(parent, name, args,NAME,i18n("Web Interface"),AUTHOR,EMAIL,i18n("Allow to control ktorrent through browser"),"toggle_log")
{ {
http_server = 0; http_server = 0;
pref=0; pref=0;

@ -35,7 +35,7 @@ namespace kt
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
WebInterfacePlugin(TQObject* tqparent, const char* name, const TQStringList& args); WebInterfacePlugin(TQObject* parent, const char* name, const TQStringList& args);
virtual ~WebInterfacePlugin(); virtual ~WebInterfacePlugin();
virtual void load(); virtual void load();

@ -43,9 +43,9 @@ namespace kt
return true; return true;
} }
void WebInterfacePrefPage::createWidget(TQWidget* tqparent) void WebInterfacePrefPage::createWidget(TQWidget* parent)
{ {
m_widget = new WebInterfacePrefWidget(tqparent); m_widget = new WebInterfacePrefWidget(parent);
} }
void WebInterfacePrefPage::updateData() void WebInterfacePrefPage::updateData()

@ -41,7 +41,7 @@ namespace kt
virtual ~WebInterfacePrefPage(); virtual ~WebInterfacePrefPage();
virtual bool apply(); virtual bool apply();
virtual void createWidget(TQWidget* tqparent); virtual void createWidget(TQWidget* parent);
virtual void updateData(); virtual void updateData();
virtual void deleteWidget(); virtual void deleteWidget();

@ -44,7 +44,7 @@ using namespace bt;
namespace kt namespace kt
{ {
WebInterfacePrefWidget::WebInterfacePrefWidget(TQWidget *tqparent, const char *name):WebInterfacePreference(tqparent,name) WebInterfacePrefWidget::WebInterfacePrefWidget(TQWidget *parent, const char *name):WebInterfacePreference(parent,name)
{ {
port->setValue(WebInterfacePluginSettings::port()); port->setValue(WebInterfacePluginSettings::port());
forward->setChecked(WebInterfacePluginSettings::forward()); forward->setChecked(WebInterfacePluginSettings::forward());

@ -30,7 +30,7 @@ namespace kt
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
WebInterfacePrefWidget(TQWidget *tqparent = 0, const char *name = 0); WebInterfacePrefWidget(TQWidget *parent = 0, const char *name = 0);
bool apply(); bool apply();
TQCString password; TQCString password;
public slots: public slots:

@ -203,7 +203,7 @@ class RestInterface {
class KTorrentXML extends DomDocument { class KTorrentXML extends DomDocument {
private $root_element; private $root_element;
public function __construct($root, $value = null, $attributes = null) { public function __construct($root, $value = null, $attributes = null) {
tqparent::__construct('1.0'); parent::__construct('1.0');
$this->root_element = $this->createElement($root); $this->root_element = $this->createElement($root);
$this->appendChild($this->root_element); $this->appendChild($this->root_element);
$this->formatOutput = true; $this->formatOutput = true;

@ -37,8 +37,8 @@ using namespace bt;
namespace kt namespace kt
{ {
ZeroConfPlugin::ZeroConfPlugin(TQObject* tqparent, const char* name, const TQStringList& args) ZeroConfPlugin::ZeroConfPlugin(TQObject* parent, const char* name, const TQStringList& args)
: Plugin(tqparent, name,args,NAME,i18n("Zeroconf"),AUTHOR,TQString(),i18n("Finds peers running ktorrent on the local network to share torrents with"),"ktplugins") : Plugin(parent, name,args,NAME,i18n("Zeroconf"),AUTHOR,TQString(),i18n("Finds peers running ktorrent on the local network to share torrents with"),"ktplugins")
{ {
services.setAutoDelete(true); services.setAutoDelete(true);
} }

@ -38,7 +38,7 @@ namespace kt
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
ZeroConfPlugin(TQObject* tqparent, const char* name, const TQStringList& args); ZeroConfPlugin(TQObject* parent, const char* name, const TQStringList& args);
virtual ~ZeroConfPlugin(); virtual ~ZeroConfPlugin();
virtual void load(); virtual void load();

Loading…
Cancel
Save