rename the following methods:

tqparent parent
tqmask mask


git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kpilot@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 13 years ago
parent 539a35866f
commit 9abdf0551e

@ -43,15 +43,15 @@
* as well as its child radio buttons. There are two different constructors * as well as its child radio buttons. There are two different constructors
* for them. * for them.
* Each controller has three child radio buttons, and if any of them is * Each controller has three child radio buttons, and if any of them is
* activated (stateChange), it sets the text of its tqparent (which is the * activated (stateChange), it sets the text of its parent (which is the
* controller, which is an instance of ResolutionCheckListItem, too). * controller, which is an instance of ResolutionCheckListItem, too).
**/ **/
class ResolutionCheckListItem : TQCheckListItem { class ResolutionCheckListItem : TQCheckListItem {
public: public:
ResolutionCheckListItem(ResolutionItem*it, ResolutionTable*tb, ResolutionCheckListItem(ResolutionItem*it, ResolutionTable*tb,
TQListView*tqparent); TQListView*parent);
ResolutionCheckListItem(TQString header, TQString text, ResolutionCheckListItem(TQString header, TQString text,
ResolutionCheckListItem*tqparent); ResolutionCheckListItem*parent);
~ResolutionCheckListItem() {}; ~ResolutionCheckListItem() {};
virtual void stateChange(bool newstate); virtual void stateChange(bool newstate);
virtual void setValue(TQString text); virtual void setValue(TQString text);
@ -73,8 +73,8 @@ protected:
ResolutionCheckListItem::ResolutionCheckListItem(ResolutionItem*it, ResolutionCheckListItem::ResolutionCheckListItem(ResolutionItem*it,
ResolutionTable*tb, TQListView*tqparent) : ResolutionTable*tb, TQListView*parent) :
TQCheckListItem(tqparent, TQString(), TQCheckListItem::Controller), TQCheckListItem(parent, TQString(), TQCheckListItem::Controller),
fResItem(it), fResItem(it),
isController(true), isController(true),
fCaption(it?(it->fName):(TQString())), fCaption(it?(it->fName):(TQString())),
@ -119,8 +119,8 @@ ResolutionCheckListItem::ResolutionCheckListItem(ResolutionItem*it,
} }
ResolutionCheckListItem::ResolutionCheckListItem(TQString text, TQString header, ResolutionCheckListItem::ResolutionCheckListItem(TQString text, TQString header,
ResolutionCheckListItem*tqparent) : ResolutionCheckListItem*parent) :
TQCheckListItem(tqparent, TQString(), TQCheckListItem::RadioButton), TQCheckListItem(parent, TQString(), TQCheckListItem::RadioButton),
fResItem(0L), fResItem(0L),
isController(false), isController(false),
fCaption(header), fCaption(header),
@ -133,7 +133,7 @@ void ResolutionCheckListItem::stateChange(bool newstate)
{ {
if (newstate && !isController) if (newstate && !isController)
{ {
ResolutionCheckListItem*par=static_cast<ResolutionCheckListItem*>(tqparent()); ResolutionCheckListItem*par=static_cast<ResolutionCheckListItem*>(parent());
{ {
par->setValue(fText); par->setValue(fText);
} }
@ -171,9 +171,9 @@ void ResolutionCheckListItem::updateText()
* *
*****************************************************************/ *****************************************************************/
ResolutionDlg::ResolutionDlg( TQWidget* tqparent, KPilotLink*fH, ResolutionDlg::ResolutionDlg( TQWidget* parent, KPilotLink*fH,
const TQString &caption, const TQString &helpText, ResolutionTable*tab) : const TQString &caption, const TQString &helpText, ResolutionTable*tab) :
KDialogBase( tqparent, "ResolutionDlg", false, caption, Apply|Cancel, Apply), KDialogBase( parent, "ResolutionDlg", false, caption, Apply|Cancel, Apply),
tickleTimer(0L), tickleTimer(0L),
fHandle(fH), fHandle(fH),
fTable(tab) fTable(tab)

@ -43,7 +43,7 @@ class ResolutionDlg : public KDialogBase
TQ_OBJECT TQ_OBJECT
public: public:
ResolutionDlg( TQWidget* tqparent=0, ResolutionDlg( TQWidget* parent=0,
KPilotLink*fH=0L, KPilotLink*fH=0L,
const TQString &caption=TQString(), const TQString &caption=TQString(),
const TQString &helpText=TQString(), const TQString &helpText=TQString(),

@ -145,7 +145,7 @@ int docRegExpBookmark::findMatches(TQString doctext, bmkList &fBookmarks)
*********************************************************************/ *********************************************************************/
DOCConverter::DOCConverter(TQObject *tqparent, const char *name):TQObject(tqparent,name) { DOCConverter::DOCConverter(TQObject *parent, const char *name):TQObject(parent,name) {
FUNCTIONSETUP; FUNCTIONSETUP;
docdb=0L; docdb=0L;
eSortBookmarks=eSortNone; eSortBookmarks=eSortNone;

@ -122,7 +122,7 @@ public:
} eSortBookmarks; } eSortBookmarks;
public: public:
DOCConverter(TQObject *tqparent=0L, const char *name=0L); DOCConverter(TQObject *parent=0L, const char *name=0L);
virtual ~ DOCConverter(); virtual ~ DOCConverter();
TQString readText(); TQString readText();

@ -39,8 +39,8 @@
#include <tqscrollview.h> #include <tqscrollview.h>
ResolutionDialog::ResolutionDialog( TQWidget* tqparent, const TQString& caption, syncInfoList*sinfo, KPilotLink*lnk ) ResolutionDialog::ResolutionDialog( TQWidget* parent, const TQString& caption, syncInfoList*sinfo, KPilotLink*lnk )
: KDialogBase( tqparent, "resolutionDialog", true, caption, KDialogBase::Ok|KDialogBase::Cancel, KDialogBase::Ok, true), tickleTimer(0L), fHandle(lnk) { : KDialogBase( parent, "resolutionDialog", true, caption, KDialogBase::Ok|KDialogBase::Cancel, KDialogBase::Ok, true), tickleTimer(0L), fHandle(lnk) {
FUNCTIONSETUP; FUNCTIONSETUP;
syncInfo=sinfo; syncInfo=sinfo;
hasConflicts=false; hasConflicts=false;

@ -57,7 +57,7 @@ class ResolutionDialog : public KDialogBase
TQ_OBJECT TQ_OBJECT
public: public:
ResolutionDialog( TQWidget* tqparent=0, const TQString& caption=i18n("Resolution Dialog"), syncInfoList*sinfo=0L, KPilotLink*lnk=0L); ResolutionDialog( TQWidget* parent=0, const TQString& caption=i18n("Resolution Dialog"), syncInfoList*sinfo=0L, KPilotLink*lnk=0L);
~ResolutionDialog(); ~ResolutionDialog();
bool hasConflicts; bool hasConflicts;

@ -94,7 +94,7 @@ DOCConduitFactory::~DOCConduitFactory()
} }
else else
{ {
WARNINGKPILOT << "Couldn't cast tqparent to widget." << endl; WARNINGKPILOT << "Couldn't cast parent to widget." << endl;
return 0L; return 0L;
} }
} }
@ -107,7 +107,7 @@ DOCConduitFactory::~DOCConduitFactory()
} }
else else
{ {
WARNINGKPILOT << "Couldn't cast tqparent to KPilotLink" <<endl; WARNINGKPILOT << "Couldn't cast parent to KPilotLink" <<endl;
return 0L; return 0L;
} }
} }

@ -55,7 +55,7 @@ public:
protected: protected:
virtual TQObject * createObject(TQObject * tqparent = 0, virtual TQObject * createObject(TQObject * parent = 0,
const char *name = 0, const char *name = 0,
const char *classname = TQOBJECT_OBJECT_NAME_STRING, const char *classname = TQOBJECT_OBJECT_NAME_STRING,
const TQStringList & args = TQStringList()); const TQStringList & args = TQStringList());

@ -54,8 +54,8 @@
#include "kpalmdocSettings.h" #include "kpalmdocSettings.h"
ConverterDlg::ConverterDlg( TQWidget *tqparent, const TQString& caption) ConverterDlg::ConverterDlg( TQWidget *parent, const TQString& caption)
: KDialogBase( tqparent, "converterdialog", false, caption, KDialogBase::Close|KDialogBase::Help|KDialogBase::User1, : KDialogBase( parent, "converterdialog", false, caption, KDialogBase::Close|KDialogBase::Help|KDialogBase::User1,
KDialogBase::Close, true, i18n("&About")) KDialogBase::Close, true, i18n("&About"))
{ {
TQWidget *page = makeHBoxMainWidget(); TQWidget *page = makeHBoxMainWidget();

@ -38,7 +38,7 @@ class ConverterDlg : public KDialogBase
TQ_OBJECT TQ_OBJECT
public: public:
ConverterDlg( TQWidget *tqparent=0, const TQString& caption=0); ConverterDlg( TQWidget *parent=0, const TQString& caption=0);
~ConverterDlg(); ~ConverterDlg();
protected slots: protected slots:

@ -123,7 +123,7 @@ KNotesConduitFactory::~KNotesConduitFactory()
else else
{ {
WARNINGKPILOT WARNINGKPILOT
<< "Couldn't cast tqparent to KPilotDeviceLink" << "Couldn't cast parent to KPilotDeviceLink"
<< endl; << endl;
return 0L; return 0L;
} }

@ -51,7 +51,7 @@ public:
// break its value. We store group and entry keys in here. // break its value. We store group and entry keys in here.
protected: protected:
virtual TQObject* createObject( TQObject* tqparent = 0, virtual TQObject* createObject( TQObject* parent = 0,
const char* name = 0, const char* name = 0,
const char* classname = TQOBJECT_OBJECT_NAME_STRING, const char* classname = TQOBJECT_OBJECT_NAME_STRING,
const TQStringList &args = TQStringList() ); const TQStringList &args = TQStringList() );

@ -36,7 +36,7 @@ class KNotesWidget;
class KNotesConfigBase : public ConduitConfigBase class KNotesConfigBase : public ConduitConfigBase
{ {
public: public:
KNotesConfigBase(TQWidget *tqparent, const char *name); KNotesConfigBase(TQWidget *parent, const char *name);
virtual void commit(); virtual void commit();
virtual void load(); virtual void load();

@ -115,7 +115,7 @@ MALConduitFactory::~MALConduitFactory()
else else
{ {
WARNINGKPILOT WARNINGKPILOT
<< "Couldn't cast tqparent to widget." << "Couldn't cast parent to widget."
<< endl; << endl;
return 0L; return 0L;
} }
@ -132,7 +132,7 @@ MALConduitFactory::~MALConduitFactory()
else else
{ {
WARNINGKPILOT WARNINGKPILOT
<< "Couldn't cast tqparent to KPilotLink" << "Couldn't cast parent to KPilotLink"
<< endl; << endl;
return 0L; return 0L;
} }

@ -49,7 +49,7 @@ public:
static KAboutData *about() { return fAbout; } ; static KAboutData *about() { return fAbout; } ;
protected: protected:
virtual TQObject* createObject( TQObject* tqparent = 0, virtual TQObject* createObject( TQObject* parent = 0,
const char* name = 0, const char* name = 0,
const char* classname = TQOBJECT_OBJECT_NAME_STRING, const char* classname = TQOBJECT_OBJECT_NAME_STRING,
const TQStringList &args = TQStringList() ); const TQStringList &args = TQStringList() );

@ -46,7 +46,7 @@
class MemofileConduitConfig : public ConduitConfigBase class MemofileConduitConfig : public ConduitConfigBase
{ {
public: public:
MemofileConduitConfig(TQWidget *tqparent=0L, const char *n=0L); MemofileConduitConfig(TQWidget *parent=0L, const char *n=0L);
virtual void commit(); virtual void commit();
virtual void load(); virtual void load();
protected: protected:

@ -115,8 +115,8 @@ bool NotepadConduit::event(TQEvent *e)
// NotepadActionThread // NotepadActionThread
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
NotepadActionThread::NotepadActionThread(TQObject *tqparent, KPilotLink *link) : NotepadActionThread::NotepadActionThread(TQObject *parent, KPilotLink *link) :
fParent(tqparent), fLink(link), notSaved(0), saved(0) fParent(parent), fLink(link), notSaved(0), saved(0)
{ {
FUNCTIONSETUP; FUNCTIONSETUP;
} }

@ -62,7 +62,7 @@ private:
class NotepadActionThread : public TQThread class NotepadActionThread : public TQThread
{ {
public: public:
NotepadActionThread(TQObject *tqparent, KPilotLink *link); NotepadActionThread(TQObject *parent, KPilotLink *link);
virtual void run(); virtual void run();
int getFailed() { return notSaved; } int getFailed() { return notSaved; }

@ -47,7 +47,7 @@
class NotepadConduitConfig : public ConduitConfigBase class NotepadConduitConfig : public ConduitConfigBase
{ {
public: public:
NotepadConduitConfig(TQWidget *tqparent=0L, const char *n=0L); NotepadConduitConfig(TQWidget *parent=0L, const char *n=0L);
virtual void commit(); virtual void commit();
virtual void load(); virtual void load();
static ConduitConfigBase *create(TQWidget *p, const char *n) static ConduitConfigBase *create(TQWidget *p, const char *n)

@ -47,7 +47,7 @@
class NullConduitConfig : public ConduitConfigBase class NullConduitConfig : public ConduitConfigBase
{ {
public: public:
NullConduitConfig(TQWidget *tqparent=0L, const char *n=0L); NullConduitConfig(TQWidget *parent=0L, const char *n=0L);
virtual void commit(); virtual void commit();
virtual void load(); virtual void load();
protected: protected:

@ -48,7 +48,7 @@
class ConduitConfig : public ConduitConfigBase class ConduitConfig : public ConduitConfigBase
{ {
public: public:
ConduitConfig(TQWidget *tqparent=0L, const char *n=0L); ConduitConfig(TQWidget *parent=0L, const char *n=0L);
virtual void commit(); virtual void commit();
virtual void load(); virtual void load();
protected: protected:

@ -36,7 +36,7 @@ class SysInfoWidget;
class SysInfoWidgetConfig : public ConduitConfigBase class SysInfoWidgetConfig : public ConduitConfigBase
{ {
public: public:
SysInfoWidgetConfig(TQWidget *tqparent, const char *); SysInfoWidgetConfig(TQWidget *parent, const char *);
virtual void commit(); virtual void commit();
virtual void load(); virtual void load();
virtual bool isModified() const; virtual bool isModified() const;

@ -39,7 +39,7 @@ class TimeWidgetConfig : public ConduitConfigBase
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
TimeWidgetConfig(TQWidget *tqparent, const char *); TimeWidgetConfig(TQWidget *parent, const char *);
virtual void commit(); virtual void commit();
virtual void load(); virtual void load();
static ConduitConfigBase *create(TQWidget *,const char *); static ConduitConfigBase *create(TQWidget *,const char *);

@ -54,12 +54,12 @@
AddressEditor::AddressEditor(PilotAddress * p, AddressEditor::AddressEditor(PilotAddress * p,
PilotAddressInfo *appInfo, PilotAddressInfo *appInfo,
TQWidget * tqparent, TQWidget * parent,
const char *name) : const char *name) :
KDialogBase(KDialogBase::Plain, KDialogBase(KDialogBase::Plain,
i18n("Address Editor"), i18n("Address Editor"),
Ok | Cancel, Cancel, Ok | Cancel, Cancel,
tqparent, name, false /* non-modal */ ), parent, name, false /* non-modal */ ),
fDeleteOnCancel(p == 0L), fDeleteOnCancel(p == 0L),
fAddress(p), fAddress(p),
fAppInfo(appInfo) fAppInfo(appInfo)
@ -69,7 +69,7 @@ AddressEditor::AddressEditor(PilotAddress * p,
initLayout(); initLayout();
fillFields(); fillFields();
connect(tqparent, TQT_SIGNAL(recordChanged(PilotAddress *)), connect(parent, TQT_SIGNAL(recordChanged(PilotAddress *)),
this, TQT_SLOT(updateRecord(PilotAddress *))); this, TQT_SLOT(updateRecord(PilotAddress *)));
} }

@ -45,7 +45,7 @@ class AddressEditor : public KDialogBase
public: public:
AddressEditor(PilotAddress *address, AddressEditor(PilotAddress *address,
PilotAddressInfo *appInfo, PilotAddressInfo *appInfo,
TQWidget *tqparent, const char *name=0L); TQWidget *parent, const char *name=0L);
~AddressEditor(); ~AddressEditor();

@ -65,9 +65,9 @@
#include "addressWidget.moc" #include "addressWidget.moc"
AddressWidget::AddressWidget(TQWidget * tqparent, AddressWidget::AddressWidget(TQWidget * parent,
const TQString & path) : const TQString & path) :
PilotComponent(tqparent, "component_address", path), PilotComponent(parent, "component_address", path),
fAddrInfo(0L), fAddrInfo(0L),
fAddressAppInfo(0L), fAddressAppInfo(0L),
fPendingAddresses(0) fPendingAddresses(0)

@ -47,7 +47,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
AddressWidget(TQWidget* tqparent,const TQString& dbpath); AddressWidget(TQWidget* parent,const TQString& dbpath);
~AddressWidget(); ~AddressWidget();
// Pilot Component Methods: // Pilot Component Methods:

@ -72,16 +72,16 @@
extern "C" extern "C"
{ {
KDE_EXPORT KCModule *create_kpilotconfig( TQWidget *tqparent, const char * ) KDE_EXPORT KCModule *create_kpilotconfig( TQWidget *parent, const char * )
{ {
FUNCTIONSETUP; FUNCTIONSETUP;
return new ConduitConfigWidget( tqparent, "kcmkpilotconfig" ); return new ConduitConfigWidget( parent, "kcmkpilotconfig" );
} }
KDE_EXPORT ConfigWizard *create_wizard(TQWidget *tqparent, int m) KDE_EXPORT ConfigWizard *create_wizard(TQWidget *parent, int m)
{ {
FUNCTIONSETUP; FUNCTIONSETUP;
return new ConfigWizard(tqparent,"Wizard", m); return new ConfigWizard(parent,"Wizard", m);
} }
} }
@ -89,7 +89,7 @@ extern "C"
class ConduitTip : public TQToolTip class ConduitTip : public TQToolTip
{ {
public: public:
ConduitTip(TQListView *tqparent); ConduitTip(TQListView *parent);
virtual ~ConduitTip(); virtual ~ConduitTip();
protected: protected:
@ -148,7 +148,7 @@ ConduitTip::~ConduitTip()
class KPilotCheckListItem : public TQCheckListItem class KPilotCheckListItem : public TQCheckListItem
{ {
public: public:
KPilotCheckListItem ( TQListViewItem * tqparent, const TQString & text, Type tt = RadioButtonController ) : TQCheckListItem(tqparent, text, tt),mOriginalState(false) {} KPilotCheckListItem ( TQListViewItem * parent, const TQString & text, Type tt = RadioButtonController ) : TQCheckListItem(parent, text, tt),mOriginalState(false) {}
~KPilotCheckListItem() {} ~KPilotCheckListItem() {}
void setOriginalState(bool state) { mOriginalState=state; setOn(state);} void setOriginalState(bool state) { mOriginalState=state; setOn(state);}
@ -171,20 +171,20 @@ protected:
/* /*
** Create a page in the widget stack @p tqparent on page @p pageno, ** Create a page in the widget stack @p parent on page @p pageno,
** bearing the given @p text. The remainder of the parameters are ** bearing the given @p text. The remainder of the parameters are
** for esoteric things like: ** for esoteric things like:
** @p buttons set to non-null to include (and return) a TQHBox suitable ** @p buttons set to non-null to include (and return) a TQHBox suitable
** for displaying a row of buttons in on the page. ** for displaying a row of buttons in on the page.
** @p label set to non-null to return the TQLabel used to display @p text. ** @p label set to non-null to return the TQLabel used to display @p text.
*/ */
static void addDescriptionPage(TQWidgetStack *tqparent, static void addDescriptionPage(TQWidgetStack *parent,
int pageno, int pageno,
const TQString &text, const TQString &text,
TQHBox **buttons = 0L, TQHBox **buttons = 0L,
TQLabel **label = 0L) TQLabel **label = 0L)
{ {
TQVBox *v = new TQVBox(tqparent); TQVBox *v = new TQVBox(parent);
TQLabel *l = 0L; TQLabel *l = 0L;
v->setFrameShape(TQLabel::NoFrame); v->setFrameShape(TQLabel::NoFrame);
@ -202,12 +202,12 @@ static void addDescriptionPage(TQWidgetStack *tqparent,
l = new TQLabel(v); l = new TQLabel(v);
} }
tqparent->addWidget(v,pageno); parent->addWidget(v,pageno);
} }
ConduitConfigWidgetBase::ConduitConfigWidgetBase(TQWidget *tqparent, const char *n) : ConduitConfigWidgetBase::ConduitConfigWidgetBase(TQWidget *parent, const char *n) :
KCModule(tqparent, n), KCModule(parent, n),
fConduitList(0L), fConduitList(0L),
fStack(0L), fStack(0L),
fConfigureButton(0L), fConfigureButton(0L),
@ -300,9 +300,9 @@ ConduitConfigWidgetBase::ConduitConfigWidgetBase(TQWidget *tqparent, const char
fStack->addWidget(ConduitConfigBase::aboutPage(fStack,0L),GENERAL_ABOUT); fStack->addWidget(ConduitConfigBase::aboutPage(fStack,0L),GENERAL_ABOUT);
} }
ConduitConfigWidget::ConduitConfigWidget(TQWidget *tqparent, const char *n, ConduitConfigWidget::ConduitConfigWidget(TQWidget *parent, const char *n,
bool) : bool) :
ConduitConfigWidgetBase(tqparent,n), ConduitConfigWidgetBase(parent,n),
fConfigure(0L), fConfigure(0L),
fCurrentConduit(0L), fCurrentConduit(0L),
fGeneralPage(0L), fGeneralPage(0L),
@ -716,7 +716,7 @@ void ConduitConfigWidget::selected(TQListViewItem *p)
#endif #endif
// set the dialog title to the selected item // set the dialog title to the selected item
TQListViewItem *pParent = p->tqparent(); TQListViewItem *pParent = p->parent();
TQString title; TQString title;
title = pParent ? pParent->text(CONDUIT_NAME) + CSL1(" - ") : TQString() ; title = pParent ? pParent->text(CONDUIT_NAME) + CSL1(" - ") : TQString() ;
title += p ? p->text(CONDUIT_NAME) : i18n("KPilot Setup"); title += p ? p->text(CONDUIT_NAME) : i18n("KPilot Setup");

@ -41,8 +41,8 @@
#include "datebookWidget.moc" #include "datebookWidget.moc"
DatebookWidget::DatebookWidget(TQWidget *tqparent, const TQString &dbpath) : DatebookWidget::DatebookWidget(TQWidget *parent, const TQString &dbpath) :
PilotComponent(tqparent,"component_generic",dbpath) PilotComponent(parent,"component_generic",dbpath)
{ {
FUNCTIONSETUP; FUNCTIONSETUP;

@ -42,7 +42,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
DatebookWidget(TQWidget* tqparent, const TQString& dbpath); DatebookWidget(TQWidget* parent, const TQString& dbpath);
virtual ~DatebookWidget(); virtual ~DatebookWidget();
// Pilot component methods // Pilot component methods

@ -41,8 +41,8 @@ using namespace KHE;
/************************************************* /*************************************************
**************************************************/ **************************************************/
DBAppInfoEditor::DBAppInfoEditor(char*appInfoData, int l, TQWidget *tqparent) : DBAppInfoEditor::DBAppInfoEditor(char*appInfoData, int l, TQWidget *parent) :
KDialogBase(tqparent, "AppBlock Editor",false, KDialogBase(parent, "AppBlock Editor",false,
i18n("Edit AppInfo Block"), i18n("Edit AppInfo Block"),
Ok|Cancel), Ok|Cancel),
appInfo(appInfoData), appInfo(appInfoData),

@ -37,7 +37,7 @@ class DBAppInfoEditor : public KDialogBase
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
DBAppInfoEditor(char*appInfoData, int l, TQWidget *tqparent = 0); DBAppInfoEditor(char*appInfoData, int l, TQWidget *parent = 0);
~DBAppInfoEditor(); ~DBAppInfoEditor();
char*appInfo; char*appInfo;
int len; int len;

@ -40,8 +40,8 @@
#include "dbFlagsEditor_base.h" #include "dbFlagsEditor_base.h"
DBFlagsEditor::DBFlagsEditor(DBInfo*dbinfo, TQWidget *tqparent) : DBFlagsEditor::DBFlagsEditor(DBInfo*dbinfo, TQWidget *parent) :
KDialogBase(tqparent, "FlagsEditor",false, KDialogBase(parent, "FlagsEditor",false,
i18n("Edit Database Flags"), Ok|Cancel), i18n("Edit Database Flags"), Ok|Cancel),
dbi(dbinfo) dbi(dbinfo)
{ {

@ -40,7 +40,7 @@ class DBFlagsEditor : public KDialogBase
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
DBFlagsEditor(DBInfo*dbinfo=0L, TQWidget *tqparent = 0); DBFlagsEditor(DBInfo*dbinfo=0L, TQWidget *parent = 0);
~DBFlagsEditor(); ~DBFlagsEditor();
protected: protected:

@ -49,8 +49,8 @@ using namespace KHE;
DBRecordEditor::DBRecordEditor(PilotRecord*r, int n, TQWidget *tqparent) DBRecordEditor::DBRecordEditor(PilotRecord*r, int n, TQWidget *parent)
: KDialogBase(tqparent, "RecordEditor",false,i18n("Edit Record"), : KDialogBase(parent, "RecordEditor",false,i18n("Edit Record"),
Ok|Cancel), rec(r), nr(n) Ok|Cancel), rec(r), nr(n)
{ {
// fWidget=new DBRecordEditorBase(this); // fWidget=new DBRecordEditorBase(this);

@ -56,7 +56,7 @@ class DBRecordEditor : public KDialogBase
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
DBRecordEditor(PilotRecord*r=0L, int n=-1, TQWidget *tqparent = 0); DBRecordEditor(PilotRecord*r=0L, int n=-1, TQWidget *parent = 0);
~DBRecordEditor(); ~DBRecordEditor();
protected: protected:

@ -64,8 +64,8 @@
#include "dbviewerWidget.moc" #include "dbviewerWidget.moc"
GenericDBWidget::GenericDBWidget(TQWidget *tqparent, const TQString &dbpath) : GenericDBWidget::GenericDBWidget(TQWidget *parent, const TQString &dbpath) :
PilotComponent(tqparent,"component_generic",dbpath), fDB(0L) PilotComponent(parent,"component_generic",dbpath), fDB(0L)
{ {
FUNCTIONSETUP; FUNCTIONSETUP;
setupWidget(); setupWidget();

@ -46,7 +46,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
GenericDBWidget(TQWidget* tqparent, const TQString& dbpath); GenericDBWidget(TQWidget* parent, const TQString& dbpath);
virtual ~GenericDBWidget(); virtual ~GenericDBWidget();
// Pilot component methods // Pilot component methods

@ -58,9 +58,9 @@
#include "fileInstallWidget.moc" #include "fileInstallWidget.moc"
FileInstallWidget::FileInstallWidget(TQWidget * tqparent, FileInstallWidget::FileInstallWidget(TQWidget * parent,
const TQString & path) : const TQString & path) :
PilotComponent(tqparent, "component_files", path), PilotComponent(parent, "component_files", path),
fSaveFileList(false), fSaveFileList(false),
fInstaller(0L) fInstaller(0L)
{ {

@ -48,7 +48,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
FileInstallWidget(TQWidget* tqparent, const TQString& dbPath); FileInstallWidget(TQWidget* parent, const TQString& dbPath);
virtual ~FileInstallWidget(); virtual ~FileInstallWidget();
// Pilot Component Methods: // Pilot Component Methods:

@ -68,7 +68,7 @@
class BackupAction::Thread : public TQThread class BackupAction::Thread : public TQThread
{ {
public: public:
Thread( BackupAction *tqparent, Thread( BackupAction *parent,
KPilotLink *link, KPilotLink *link,
const TQString &filename, const TQString &filename,
const DBInfo *info ); const DBInfo *info );
@ -1128,12 +1128,12 @@ void RestoreAction::setDirectory( const TQString &path )
BackupAction::Thread::Thread( BackupAction *tqparent, BackupAction::Thread::Thread( BackupAction *parent,
KPilotLink *link, KPilotLink *link,
const TQString &filename, const TQString &filename,
const DBInfo *info ) const DBInfo *info )
{ {
fParent = tqparent; fParent = parent;
fLink = link; fLink = link;
fFilename = filename; fFilename = filename;
memcpy(&fDBInfo,info,sizeof(DBInfo)); memcpy(&fDBInfo,info,sizeof(DBInfo));

@ -320,21 +320,21 @@ void KPilotInstaller::slotSelectComponent(PilotComponent *c)
return; return;
} }
TQObject *o = c->tqparent(); TQObject *o = c->parent();
if (!o) if (!o)
{ {
WARNINGKPILOT << "Widget has no tqparent." << endl; WARNINGKPILOT << "Widget has no parent." << endl;
return; return;
} }
TQWidget *tqparent = dynamic_cast<TQWidget *>(o); TQWidget *parent = dynamic_cast<TQWidget *>(o);
if (!tqparent) if (!parent)
{ {
WARNINGKPILOT << "Widget's tqparent is not a widget." << endl; WARNINGKPILOT << "Widget's parent is not a widget." << endl;
return; return;
} }
int index = fManagingWidget->pageIndex(tqparent); int index = fManagingWidget->pageIndex(parent);
if (index < 0) if (index < 0)
{ {
@ -741,7 +741,7 @@ void KPilotInstaller::slotResetLink()
/* /*
** Can't be a member function because it needs to be called even with no KPilotInstaller. ** Can't be a member function because it needs to be called even with no KPilotInstaller.
*/ */
static bool runConfigure(PilotDaemonDCOP_stub &daemon,TQWidget *tqparent) static bool runConfigure(PilotDaemonDCOP_stub &daemon,TQWidget *parent)
{ {
FUNCTIONSETUP; FUNCTIONSETUP;
bool ret = false; bool ret = false;
@ -754,7 +754,7 @@ static bool runConfigure(PilotDaemonDCOP_stub &daemon,TQWidget *tqparent)
KPilotSettings::self()->readConfig(); KPilotSettings::self()->readConfig();
KCMultiDialog *options = new KCMultiDialog( KDialogBase::Plain, i18n("Configuration"), tqparent, "KPilotPreferences", true ); KCMultiDialog *options = new KCMultiDialog( KDialogBase::Plain, i18n("Configuration"), parent, "KPilotPreferences", true );
options->addModule( CSL1("kpilot_config.desktop") ); options->addModule( CSL1("kpilot_config.desktop") );
if (!options) if (!options)
@ -796,7 +796,7 @@ static bool runConfigure(PilotDaemonDCOP_stub &daemon,TQWidget *tqparent)
* canceled, though). * canceled, though).
*/ */
typedef enum { Failed, OK, Cancel } WizardResult; typedef enum { Failed, OK, Cancel } WizardResult;
static WizardResult runWizard(PilotDaemonDCOP_stub &daemon,TQWidget *tqparent) static WizardResult runWizard(PilotDaemonDCOP_stub &daemon,TQWidget *parent)
{ {
FUNCTIONSETUP; FUNCTIONSETUP;
WizardResult ret = Failed ; WizardResult ret = Failed ;
@ -826,7 +826,7 @@ static WizardResult runWizard(PilotDaemonDCOP_stub &daemon,TQWidget *tqparent)
goto sorry; goto sorry;
} }
w = f(tqparent,ConfigWizard::Standalone); w = f(parent,ConfigWizard::Standalone);
if (!w) if (!w)
{ {
WARNINGKPILOT << "Can't create wizard." << endl; WARNINGKPILOT << "Can't create wizard." << endl;
@ -847,7 +847,7 @@ static WizardResult runWizard(PilotDaemonDCOP_stub &daemon,TQWidget *tqparent)
sorry: sorry:
if (Failed == ret) if (Failed == ret)
{ {
KMessageBox::sorry(tqparent, KMessageBox::sorry(parent,
i18n("The library containing the configuration wizard for KPilot " i18n("The library containing the configuration wizard for KPilot "
"could not be loaded, and the wizard is not available. " "could not be loaded, and the wizard is not available. "
"Please try to use the regular configuration dialog."), "Please try to use the regular configuration dialog."),

@ -52,8 +52,8 @@
#include "kpilotProbeDialog.h" #include "kpilotProbeDialog.h"
ConfigWizard::ConfigWizard(TQWidget *tqparent, const char *n, int m) : ConfigWizard::ConfigWizard(TQWidget *parent, const char *n, int m) :
KWizard(tqparent, n), KWizard(parent, n),
fMode((Mode)m) fMode((Mode)m)
{ {
// page1=new ConfigWizard_base1(this); // page1=new ConfigWizard_base1(this);

@ -86,8 +86,8 @@ and the module can't be unloaded.
*/ */
ProbeDialog::ProbeDialog(TQWidget *tqparent, const char *n) : ProbeDialog::ProbeDialog(TQWidget *parent, const char *n) :
KDialogBase(tqparent, n, true, i18n("Autodetecting Your Handheld"), KDialogBase::Ok|KDialogBase::Cancel|KDialogBase::User1, KDialogBase::Cancel, true, i18n("Restart Detection")), KDialogBase(parent, n, true, i18n("Autodetecting Your Handheld"), KDialogBase::Ok|KDialogBase::Cancel|KDialogBase::User1, KDialogBase::Cancel, true, i18n("Restart Detection")),
mDetected(false), mUserName(), mDevice() mDetected(false), mUserName(), mDevice()
{ {
FUNCTIONSETUP; FUNCTIONSETUP;

@ -36,9 +36,9 @@
#include "listCat.moc" #include "listCat.moc"
ListCategorizer::ListCategorizer(TQWidget * tqparent, ListCategorizer::ListCategorizer(TQWidget * parent,
const char *name) : const char *name) :
KListView(tqparent, name), KListView(parent, name),
fStartOpen(false) fStartOpen(false)
{ {
FUNCTIONSETUP; FUNCTIONSETUP;
@ -47,9 +47,9 @@ ListCategorizer::ListCategorizer(TQWidget * tqparent,
ListCategorizer::ListCategorizer(const TQStringList & i, ListCategorizer::ListCategorizer(const TQStringList & i,
bool startOpen, bool startOpen,
TQWidget * tqparent, TQWidget * parent,
const char *name) : const char *name) :
KListView(tqparent, name), KListView(parent, name),
fStartOpen(startOpen) fStartOpen(startOpen)
{ {
FUNCTIONSETUP; FUNCTIONSETUP;
@ -121,7 +121,7 @@ void ListCategorizer::setupWidget()
return; return;
} }
TQListViewItem *category = p->tqparent(); TQListViewItem *category = p->parent();
if (!category) if (!category)
{ {
@ -136,7 +136,7 @@ void ListCategorizer::setupWidget()
FUNCTIONSETUP; FUNCTIONSETUP;
TQListViewItem *p = currentItem(); TQListViewItem *p = currentItem();
if (!p || !p->tqparent()) if (!p || !p->parent())
return; return;
KListView::startDrag(); KListView::startDrag();

@ -72,9 +72,9 @@ public:
* *
* This creates a new empty ListCategorizer with * This creates a new empty ListCategorizer with
* startOpen set to false. The parameters * startOpen set to false. The parameters
* @p tqparent and @p name are the usual TQt ones. * @p parent and @p name are the usual TQt ones.
*/ */
ListCategorizer(TQWidget *tqparent, ListCategorizer(TQWidget *parent,
const char *name = 0); const char *name = 0);
/** /**
* Constructor. * Constructor.
@ -85,7 +85,7 @@ public:
*/ */
ListCategorizer(const TQStringList& categories, ListCategorizer(const TQStringList& categories,
bool startOpen, bool startOpen,
TQWidget *tqparent, TQWidget *parent,
const char *name = 0); const char *name = 0);
/** /**
@ -201,7 +201,7 @@ private:
class RichListViewItem : public TQListViewItem class RichListViewItem : public TQListViewItem
{ {
public: public:
RichListViewItem(TQListViewItem *tqparent, RichListViewItem(TQListViewItem *parent,
TQString, TQString,
int); int);
virtual ~RichListViewItem(); virtual ~RichListViewItem();

@ -94,8 +94,8 @@ PilotListItem::~PilotListItem()
} }
#endif #endif
PilotCheckListItem::PilotCheckListItem(TQListView * tqparent, const TQString & text, recordid_t pilotid, void *r) : PilotCheckListItem::PilotCheckListItem(TQListView * parent, const TQString & text, recordid_t pilotid, void *r) :
TQCheckListItem(tqparent, text, TQCheckListItem::CheckBox), TQCheckListItem(parent, text, TQCheckListItem::CheckBox),
fid(pilotid), fid(pilotid),
fr(r) fr(r)
{ {
@ -142,10 +142,10 @@ void PilotCheckListItem::stateChange ( bool on)
} }
#endif #endif
PilotListViewItem::PilotListViewItem( TQListView * tqparent, PilotListViewItem::PilotListViewItem( TQListView * parent,
TQString label1, TQString label2, TQString label3, TQString label4, TQString label1, TQString label2, TQString label3, TQString label4,
recordid_t pilotid, void *r): recordid_t pilotid, void *r):
TQListViewItem(tqparent, label1, label2, label3, label4, TQListViewItem(parent, label1, label2, label3, label4,
TQString(), TQString(), TQString(), TQString()), TQString(), TQString(), TQString(), TQString()),
fid(pilotid), fid(pilotid),
fr(r), fr(r),

@ -59,7 +59,7 @@ private:
class PilotCheckListItem : public TQCheckListItem class PilotCheckListItem : public TQCheckListItem
{ {
public: public:
PilotCheckListItem( TQListView * tqparent, const TQString & text, recordid_t pilotid=0, void *r=0); PilotCheckListItem( TQListView * parent, const TQString & text, recordid_t pilotid=0, void *r=0);
virtual ~PilotCheckListItem(); virtual ~PilotCheckListItem();
recordid_t id() const {return fid;}; recordid_t id() const {return fid;};
const void *rec() const {return fr;}; const void *rec() const {return fr;};
@ -85,7 +85,7 @@ struct PilotListViewItemData
class PilotListViewItem : public TQListViewItem class PilotListViewItem : public TQListViewItem
{ {
public: public:
PilotListViewItem( TQListView * tqparent, PilotListViewItem( TQListView * parent,
TQString label1, TQString label2 = TQString(), TQString label1, TQString label2 = TQString(),
TQString label3 = TQString(), TQString label4 = TQString(), TQString label3 = TQString(), TQString label4 = TQString(),
recordid_t pilotid=0, void *r=0); recordid_t pilotid=0, void *r=0);

@ -59,9 +59,9 @@
#define TE_EOL "\n" #define TE_EOL "\n"
LogWidget::LogWidget(TQWidget * tqparent) : LogWidget::LogWidget(TQWidget * parent) :
DCOPObject("LogIface"), DCOPObject("LogIface"),
PilotComponent(tqparent, "component_log", TQString()), PilotComponent(parent, "component_log", TQString()),
fLog(0L), fLog(0L),
fShowTime(false), fShowTime(false),
fSplash(0L), fSplash(0L),

@ -74,9 +74,9 @@ public:
} ; } ;
MemoWidget::MemoWidget(TQWidget * tqparent, MemoWidget::MemoWidget(TQWidget * parent,
const TQString & path) : const TQString & path) :
PilotComponent(tqparent, "component_memo", path), PilotComponent(parent, "component_memo", path),
fTextWidget(0L), fTextWidget(0L),
d(new Private()), d(new Private()),
lastSelectedMemo(-1) lastSelectedMemo(-1)
@ -84,7 +84,7 @@ MemoWidget::MemoWidget(TQWidget * tqparent,
FUNCTIONSETUP; FUNCTIONSETUP;
setGeometry(0, 0, setGeometry(0, 0,
tqparent->tqgeometry().width(), tqparent->tqgeometry().height()); parent->tqgeometry().width(), parent->tqgeometry().height());
setupWidget(); setupWidget();
d->fMemoList.setAutoDelete(true); d->fMemoList.setAutoDelete(true);
slotUpdateButtons(); slotUpdateButtons();

@ -45,7 +45,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
MemoWidget(TQWidget* tqparent, const TQString& dbpath); MemoWidget(TQWidget* parent, const TQString& dbpath);
virtual ~MemoWidget(); virtual ~MemoWidget();
// Pilot Component Methods: // Pilot Component Methods:

@ -46,19 +46,19 @@
#include "pilotComponent.moc" #include "pilotComponent.moc"
PilotComponent::PilotComponent(TQWidget * tqparent, PilotComponent::PilotComponent(TQWidget * parent,
const char *id, const char *id,
const TQString & path) : const TQString & path) :
TQWidget(tqparent, id), TQWidget(parent, id),
fDBPath(path), fDBPath(path),
shown(false) shown(false)
{ {
FUNCTIONSETUP; FUNCTIONSETUP;
if (tqparent) if (parent)
{ {
resize(tqparent->tqgeometry().width(), resize(parent->tqgeometry().width(),
tqparent->tqgeometry().height()); parent->tqgeometry().height());
} }
} }

@ -45,7 +45,7 @@ Q_OBJECT
friend class KPilotInstaller; friend class KPilotInstaller;
public: public:
PilotComponent(TQWidget* tqparent, PilotComponent(TQWidget* parent,
const char *id, const char *id,
const TQString& dbPath); const TQString& dbPath);

@ -45,8 +45,8 @@
TodoEditor::TodoEditor(PilotTodoEntry * p, struct ToDoAppInfo *appInfo, TodoEditor::TodoEditor(PilotTodoEntry * p, struct ToDoAppInfo *appInfo,
TQWidget * tqparent, const char *name) : TQWidget * parent, const char *name) :
KDialogBase(tqparent, name, false, i18n("To-do Editor"), Ok|Cancel), KDialogBase(parent, name, false, i18n("To-do Editor"), Ok|Cancel),
fDeleteOnCancel(p == 0L), fDeleteOnCancel(p == 0L),
fTodo(p), fTodo(p),
fAppInfo(appInfo) fAppInfo(appInfo)
@ -57,7 +57,7 @@ TodoEditor::TodoEditor(PilotTodoEntry * p, struct ToDoAppInfo *appInfo,
setMainWidget(fWidget); setMainWidget(fWidget);
fillFields(); fillFields();
connect(tqparent, TQT_SIGNAL(recordChanged(PilotTodoEntry *)), connect(parent, TQT_SIGNAL(recordChanged(PilotTodoEntry *)),
this, TQT_SLOT(updateRecord(PilotTodoEntry *))); this, TQT_SLOT(updateRecord(PilotTodoEntry *)));
} }

@ -50,7 +50,7 @@ class TodoEditor : public KDialogBase
public: public:
TodoEditor(PilotTodoEntry *todo, TodoEditor(PilotTodoEntry *todo,
struct ToDoAppInfo *appInfo, struct ToDoAppInfo *appInfo,
TQWidget *tqparent, const char *name=0L); TQWidget *parent, const char *name=0L);
~TodoEditor(); ~TodoEditor();

@ -49,8 +49,8 @@
TodoCheckListItem::TodoCheckListItem(TQListView*tqparent, const TQString&text, TodoCheckListItem::TodoCheckListItem(TQListView*parent, const TQString&text,
recordid_t pilotid, void*r):PilotCheckListItem(tqparent, text, pilotid, r) recordid_t pilotid, void*r):PilotCheckListItem(parent, text, pilotid, r)
{ {
} }
@ -63,9 +63,9 @@ void TodoCheckListItem::stateChange(bool state)
TodoWidget::TodoWidget(TQWidget * tqparent, TodoWidget::TodoWidget(TQWidget * parent,
const TQString & path) : const TQString & path) :
PilotComponent(tqparent, "component_todo", path), PilotComponent(parent, "component_todo", path),
fTodoInfo(0L), fTodoInfo(0L),
fTodoAppInfo(0L), fTodoAppInfo(0L),
fTodoDB(0L), fTodoDB(0L),

@ -43,7 +43,7 @@ class TodoListView : public KListView
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
TodoListView(TQWidget * tqparent = 0, const char * name = 0 ):KListView(tqparent, name){}; TodoListView(TQWidget * parent = 0, const char * name = 0 ):KListView(parent, name){};
~TodoListView() {}; ~TodoListView() {};
signals: signals:
void itemChecked(TQCheckListItem*item); void itemChecked(TQCheckListItem*item);
@ -59,7 +59,7 @@ public:
class TodoCheckListItem : public PilotCheckListItem class TodoCheckListItem : public PilotCheckListItem
{ {
public: public:
TodoCheckListItem(TQListView*tqparent, const TQString&text, recordid_t pilotid, void*r); TodoCheckListItem(TQListView*parent, const TQString&text, recordid_t pilotid, void*r);
~TodoCheckListItem() {}; ~TodoCheckListItem() {};
virtual void stateChange(bool state); virtual void stateChange(bool state);
}; };
@ -70,7 +70,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
TodoWidget(TQWidget* tqparent,const TQString& dbpath); TodoWidget(TQWidget* parent,const TQString& dbpath);
~TodoWidget(); ~TodoWidget();
// Pilot Component Methods: // Pilot Component Methods:

@ -527,9 +527,9 @@ void DeviceCommThread::run()
DEBUGKPILOT << fname << ": comm thread now done..." << endl; DEBUGKPILOT << fname << ": comm thread now done..." << endl;
} }
KPilotDeviceLink::KPilotDeviceLink(TQObject * tqparent, const char *name, KPilotDeviceLink::KPilotDeviceLink(TQObject * parent, const char *name,
const TQString &tempDevice) : const TQString &tempDevice) :
KPilotLink(tqparent, name), fLinktqStatus(Init), fWorkaroundUSB(false), KPilotLink(parent, name), fLinktqStatus(Init), fWorkaroundUSB(false),
fPilotSocket(-1), fTempDevice(tempDevice), fMessages(new Messages(this)), fDeviceCommThread(0L) fPilotSocket(-1), fTempDevice(tempDevice), fMessages(new Messages(this)), fDeviceCommThread(0L)
{ {
FUNCTIONSETUP; FUNCTIONSETUP;

@ -82,12 +82,12 @@ public:
* Constructor. Creates a link that can sync to a physical handheld. * Constructor. Creates a link that can sync to a physical handheld.
* Call reset() on it to start looking for a device. * Call reset() on it to start looking for a device.
* *
* @param tqparent Parent object. * @param parent Parent object.
* @param name Name of this object. * @param name Name of this object.
* @param tempDevice Path to device node to use as an alternative * @param tempDevice Path to device node to use as an alternative
* to the "normal" one set by KPilot. * to the "normal" one set by KPilot.
*/ */
KPilotDeviceLink( TQObject *tqparent = 0, KPilotDeviceLink( TQObject *parent = 0,
const char *name = 0, const char *name = 0,
const TQString &tempDevice = TQString() ); const TQString &tempDevice = TQString() );

@ -109,8 +109,8 @@ private:
class Messages class Messages
{ {
public: public:
Messages(KPilotDeviceLink *tqparent) : Messages(KPilotDeviceLink *parent) :
fDeviceLink(tqparent) fDeviceLink(parent)
{ {
reset(); reset();
} }

@ -137,8 +137,8 @@ void TickleThread::run()
KPilotLink::KPilotLink( TQObject *tqparent, const char *name ) : KPilotLink::KPilotLink( TQObject *parent, const char *name ) :
TQObject( tqparent, name ), TQObject( parent, name ),
fPilotPath(TQString()), fPilotPath(TQString()),
fPilotUser(0L), fPilotUser(0L),
fPilotSysInfo(0L), fPilotSysInfo(0L),

@ -178,7 +178,7 @@ public:
typedef TQValueList<struct DBInfo> DBInfoList; typedef TQValueList<struct DBInfo> DBInfoList;
/** Constructor. Use reset() to start looking for a device. */ /** Constructor. Use reset() to start looking for a device. */
KPilotLink( TQObject *tqparent = 0, const char *name = 0 ); KPilotLink( TQObject *parent = 0, const char *name = 0 );
/** Destructor. This rudely interrupts any communication in progress. /** Destructor. This rudely interrupts any communication in progress.
* It is best to call endOfSync() or finishSync() before destroying * It is best to call endOfSync() or finishSync() before destroying

@ -118,8 +118,8 @@ unsigned int KPilotLocalLink::findAvailableDatabases( KPilotLocalLink::Private &
} }
KPilotLocalLink::KPilotLocalLink( TQObject *tqparent, const char *name ) : KPilotLocalLink::KPilotLocalLink( TQObject *parent, const char *name ) :
KPilotLink(tqparent,name), KPilotLink(parent,name),
fReady(false), fReady(false),
d( new Private ) d( new Private )
{ {

@ -45,7 +45,7 @@ class KDE_EXPORT KPilotLocalLink : public KPilotLink
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
KPilotLocalLink( TQObject *tqparent=0L, const char *name=0L ); KPilotLocalLink( TQObject *parent=0L, const char *name=0L );
virtual ~KPilotLocalLink(); virtual ~KPilotLocalLink();
virtual TQString statusString() const; virtual TQString statusString() const;

@ -65,9 +65,9 @@
#include "plugin.moc" #include "plugin.moc"
ConduitConfigBase::ConduitConfigBase(TQWidget *tqparent, ConduitConfigBase::ConduitConfigBase(TQWidget *parent,
const char *name) : const char *name) :
TQObject(tqparent,name), TQObject(parent,name),
fModified(false), fModified(false),
fWidget(0L), fWidget(0L),
fConduitName(i18n("Unnamed")) fConduitName(i18n("Unnamed"))
@ -108,11 +108,11 @@ ConduitConfigBase::~ConduitConfigBase()
return true; return true;
} }
TQWidget *ConduitConfigBase::aboutPage(TQWidget *tqparent, KAboutData *ad) TQWidget *ConduitConfigBase::aboutPage(TQWidget *parent, KAboutData *ad)
{ {
FUNCTIONSETUP; FUNCTIONSETUP;
TQWidget *w = new TQWidget(tqparent, "aboutpage"); TQWidget *w = new TQWidget(parent, "aboutpage");
TQString s; TQString s;
TQLabel *text; TQLabel *text;

@ -82,9 +82,9 @@ Q_OBJECT
public: public:
/** /**
* Constructor. Creates a conduit configuration support object * Constructor. Creates a conduit configuration support object
* with the given tqparent @p tqparent and name (optional) @p n. * with the given parent @p parent and name (optional) @p n.
*/ */
ConduitConfigBase(TQWidget *tqparent=0L, const char *n=0L); ConduitConfigBase(TQWidget *parent=0L, const char *n=0L);
/** Destructor. */ /** Destructor. */
virtual ~ConduitConfigBase(); virtual ~ConduitConfigBase();
@ -152,10 +152,10 @@ public:
* application's icon. This widget can be used pretty much * application's icon. This widget can be used pretty much
* anywhere. Copied from KAboutDialog, mostly. * anywhere. Copied from KAboutDialog, mostly.
* *
* @param tqparent The widget that holds the about widget. * @param parent The widget that holds the about widget.
* @param data The KAboutData that is used to populate the widget. * @param data The KAboutData that is used to populate the widget.
*/ */
static TQWidget *aboutPage(TQWidget *tqparent, KAboutData *data=0L); static TQWidget *aboutPage(TQWidget *parent, KAboutData *data=0L);
protected: protected:
/** /**
@ -444,7 +444,7 @@ namespace PluginUtility
* *
* <pre> * <pre>
* protected: * protected:
* virtual TQObject* createObject( TQObject* tqparent = 0, * virtual TQObject* createObject( TQObject* parent = 0,
* const char* name = 0, * const char* name = 0,
* const char* classname = TQOBJECT_OBJECT_NAME_STRING, * const char* classname = TQOBJECT_OBJECT_NAME_STRING,
* const TQStringList &args = TQStringList() ); * const TQStringList &args = TQStringList() );

@ -45,26 +45,26 @@ class KPilotLink;
template <class Widget, class Action> class ConduitFactory : public KLibFactory template <class Widget, class Action> class ConduitFactory : public KLibFactory
{ {
public: public:
ConduitFactory(TQObject *tqparent = 0, const char *name = 0) : ConduitFactory(TQObject *parent = 0, const char *name = 0) :
KLibFactory(tqparent,name) KLibFactory(parent,name)
{ fInstance = new KInstance(name); } ; { fInstance = new KInstance(name); } ;
virtual ~ConduitFactory() virtual ~ConduitFactory()
{ delete fInstance; } ; { delete fInstance; } ;
protected: protected:
virtual TQObject *createObject( virtual TQObject *createObject(
TQObject* tqparent = 0, TQObject* parent = 0,
const char* name = 0, const char* name = 0,
const char* classname = TQOBJECT_OBJECT_NAME_STRING, const char* classname = TQOBJECT_OBJECT_NAME_STRING,
const TQStringList &args = TQStringList() ) const TQStringList &args = TQStringList() )
{ {
if (qstrcmp(classname,"ConduitConfigBase")==0) if (qstrcmp(classname,"ConduitConfigBase")==0)
{ {
TQWidget *w = dynamic_cast<TQWidget *>(tqparent); TQWidget *w = dynamic_cast<TQWidget *>(parent);
if (w) return new Widget(w,name); if (w) return new Widget(w,name);
else else
{ {
WARNINGKPILOT << "Could not cast tqparent to widget." << endl; WARNINGKPILOT << "Could not cast parent to widget." << endl;
return 0L; return 0L;
} }
} }
@ -72,11 +72,11 @@ protected:
if (qstrcmp(classname,"SyncAction")==0) if (qstrcmp(classname,"SyncAction")==0)
{ {
KPilotLink *d = 0L; KPilotLink *d = 0L;
if (tqparent) d = dynamic_cast<KPilotLink *>(tqparent); if (parent) d = dynamic_cast<KPilotLink *>(parent);
if (d || !tqparent) if (d || !parent)
{ {
if (!tqparent) if (!parent)
{ {
kdDebug() << k_funcinfo << ": Using NULL device." << endl; kdDebug() << k_funcinfo << ": Using NULL device." << endl;
} }
@ -84,7 +84,7 @@ protected:
} }
else else
{ {
WARNINGKPILOT << "Could not cast tqparent to KPilotLink" << endl; WARNINGKPILOT << "Could not cast parent to KPilotLink" << endl;
return 0L; return 0L;
} }
} }

@ -65,11 +65,11 @@ SyncAction::SyncAction(KPilotLink *p,
} }
SyncAction::SyncAction(KPilotLink *p, SyncAction::SyncAction(KPilotLink *p,
TQWidget * visibletqparent, TQWidget * visibleparent,
const char *name) : const char *name) :
TQObject(p, name), TQObject(p, name),
fHandle(p), fHandle(p),
fParent(visibletqparent) fParent(visibleparent)
{ {
FUNCTIONSETUP; FUNCTIONSETUP;
} }

@ -56,7 +56,7 @@ public:
SyncAction(KPilotLink *p, SyncAction(KPilotLink *p,
const char *name=0L); const char *name=0L);
SyncAction(KPilotLink *p, SyncAction(KPilotLink *p,
TQWidget *visibletqparent, TQWidget *visibleparent,
const char *name=0L); const char *name=0L);
~SyncAction(); ~SyncAction();

Loading…
Cancel
Save