rename the following methods:

tqparent parent
tqmask mask


git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 13 years ago
parent 627b091fad
commit 9036365267

@ -15,8 +15,8 @@
#include "boardinfo.h" #include "boardinfo.h"
BoardInfoDlg::BoardInfoDlg(bool editable, BoardInfo *info, TQWidget *tqparent, const char *_name, bool modal) BoardInfoDlg::BoardInfoDlg(bool editable, BoardInfo *info, TQWidget *parent, const char *_name, bool modal)
: KDialogBase(KDialogBase::Tabbed, i18n("Gameboard Information"), (editable? Ok|Apply|Cancel : Close), (editable? Ok : Close), tqparent, _name, modal) : KDialogBase(KDialogBase::Tabbed, i18n("Gameboard Information"), (editable? Ok|Apply|Cancel : Close), (editable? Ok : Close), parent, _name, modal)
{ {
if (!info) if (!info)
return; return;
@ -110,7 +110,7 @@ void BoardInfoDlg::slotOk()
/////////////////////////////////// ///////////////////////////////////
LotsaEdits::LotsaEdits(bool editable, TQStringList defaults, TQWidget *tqparent, const char *name) : TQWidget(tqparent, name) LotsaEdits::LotsaEdits(bool editable, TQStringList defaults, TQWidget *parent, const char *name) : TQWidget(parent, name)
{ {
list.setAutoDelete(true); list.setAutoDelete(true);
this->editable = editable; this->editable = editable;

@ -33,7 +33,7 @@ class LotsaEdits : public TQWidget
TQ_OBJECT TQ_OBJECT
public: public:
LotsaEdits(bool, TQStringList=TQStringList(), TQWidget *tqparent=0, const char *name=0); LotsaEdits(bool, TQStringList=TQStringList(), TQWidget *parent=0, const char *name=0);
public slots: public slots:
TQStringList save(); TQStringList save();
@ -54,7 +54,7 @@ class BoardInfoDlg : public KDialogBase
TQ_OBJECT TQ_OBJECT
public: public:
BoardInfoDlg(bool editable, BoardInfo *, TQWidget *tqparent=0, const char *_name=0, bool = true); BoardInfoDlg(bool editable, BoardInfo *, TQWidget *parent=0, const char *_name=0, bool = true);
protected slots: protected slots:
void slotOk(); void slotOk();

@ -35,8 +35,8 @@
#include "editor.h" #include "editor.h"
#include "designer.h" #include "designer.h"
AtlanticDesigner::AtlanticDesigner(TQWidget *tqparent, const char *name) AtlanticDesigner::AtlanticDesigner(TQWidget *parent, const char *name)
: KMainWindow(tqparent, name) : KMainWindow(parent, name)
{ {
firstBoard = true; firstBoard = true;
estates.setAutoDelete(true); estates.setAutoDelete(true);

@ -28,7 +28,7 @@ class AtlanticDesigner : public KMainWindow
TQ_OBJECT TQ_OBJECT
public: public:
AtlanticDesigner(TQWidget *tqparent = 0, const char *name = 0); AtlanticDesigner(TQWidget *parent = 0, const char *name = 0);
~AtlanticDesigner(); ~AtlanticDesigner();
protected: protected:

@ -144,8 +144,8 @@ void ConfigEstate::setPassMoney(const int passMoney)
TQStringList types; TQStringList types;
EstateEdit::EstateEdit(ConfigEstateGroupList *newGroups, EstateList *estates, TQValueList<CardStack> *cards, TQWidget *tqparent, const char *name) EstateEdit::EstateEdit(ConfigEstateGroupList *newGroups, EstateList *estates, TQValueList<CardStack> *cards, TQWidget *parent, const char *name)
: TQWidget(tqparent, name) : TQWidget(parent, name)
{ {
groups = newGroups; groups = newGroups;
@ -378,8 +378,8 @@ bool EstateEdit::rightArrow()const
///////////////////////////////// /////////////////////////////////
TaxDlg::TaxDlg(TQWidget *tqparent, char *name) TaxDlg::TaxDlg(TQWidget *parent, char *name)
: EstateDlg(tqparent, name) : EstateDlg(parent, name)
{ {
TQGridLayout *taxBox = new TQGridLayout(this, 2, 2, KDialog::marginHint(), KDialog::spacingHint()); TQGridLayout *taxBox = new TQGridLayout(this, 2, 2, KDialog::marginHint(), KDialog::spacingHint());
taxBox->addWidget(new TQLabel(i18n("Fixed tax:"), this), 0, 0); taxBox->addWidget(new TQLabel(i18n("Fixed tax:"), this), 0, 0);
@ -406,8 +406,8 @@ void TaxDlg::update()
///////////////////////////////// /////////////////////////////////
GenericDlg::GenericDlg(TQWidget *tqparent, char *name) GenericDlg::GenericDlg(TQWidget *parent, char *name)
: EstateDlg(tqparent, name) : EstateDlg(parent, name)
{ {
TQHBoxLayout *tqlayout = new TQHBoxLayout(this, KDialog::spacingHint()); TQHBoxLayout *tqlayout = new TQHBoxLayout(this, KDialog::spacingHint());
tqlayout->addWidget(new TQLabel(i18n("Background:"), this)); tqlayout->addWidget(new TQLabel(i18n("Background:"), this));
@ -429,8 +429,8 @@ void GenericDlg::update()
///////////////////////////////// /////////////////////////////////
CardsDlg::CardsDlg(EstateList *newEstates, TQValueList<CardStack> *newCards, TQWidget *tqparent, char *name) CardsDlg::CardsDlg(EstateList *newEstates, TQValueList<CardStack> *newCards, TQWidget *parent, char *name)
: EstateDlg(tqparent, name) : EstateDlg(parent, name)
{ {
estates = newEstates; estates = newEstates;
stacks = newCards; stacks = newCards;
@ -515,8 +515,8 @@ void CardsDlg::update()
///////////////////////////////// /////////////////////////////////
ChooseWidget::ChooseWidget(EstateList *estates, int id, Card *card, TQWidget *tqparent, char *name) ChooseWidget::ChooseWidget(EstateList *estates, int id, Card *card, TQWidget *parent, char *name)
: TQWidget (tqparent, name) : TQWidget (parent, name)
{ {
this->id = id; this->id = id;
this->card = card; this->card = card;
@ -640,7 +640,7 @@ Skipped:
///////////////////////////////// /////////////////////////////////
CardView::CardView(EstateList *estates, CardStack *stack, TQWidget *tqparent, char *name) : TQWidget(tqparent, name) CardView::CardView(EstateList *estates, CardStack *stack, TQWidget *parent, char *name) : TQWidget(parent, name)
{ {
card = 0; card = 0;
@ -812,8 +812,8 @@ void CardView::updateButtonsEnabled()
///////////////////////////////// /////////////////////////////////
StreetDlg::StreetDlg(ConfigEstateGroupList *newGroups, TQWidget *tqparent, char *name) StreetDlg::StreetDlg(ConfigEstateGroupList *newGroups, TQWidget *parent, char *name)
: EstateDlg(tqparent, name) : EstateDlg(parent, name)
{ {
groups = newGroups; groups = newGroups;

@ -90,7 +90,7 @@ class EstateDlg : public TQWidget
TQ_OBJECT TQ_OBJECT
public: public:
EstateDlg(TQWidget *tqparent = 0, char *name = 0) : TQWidget(tqparent, name) { estate = 0; } EstateDlg(TQWidget *parent = 0, char *name = 0) : TQWidget(parent, name) { estate = 0; }
signals: signals:
void updateBackground(); void updateBackground();
@ -113,7 +113,7 @@ class EstateEdit : public TQWidget
TQ_OBJECT TQ_OBJECT
public: public:
EstateEdit(ConfigEstateGroupList *, EstateList *, TQValueList<CardStack> *, TQWidget *tqparent = 0, const char *name = 0); EstateEdit(ConfigEstateGroupList *, EstateList *, TQValueList<CardStack> *, TQWidget *parent = 0, const char *name = 0);
ConfigEstate *theEstate() { return estate; } ConfigEstate *theEstate() { return estate; }
bool upArrow()const; bool upArrow()const;
bool downArrow()const; bool downArrow()const;
@ -169,7 +169,7 @@ class ChooseWidget : public TQWidget
TQ_OBJECT TQ_OBJECT
public: public:
ChooseWidget(EstateList *, int id, Card *, TQWidget *tqparent = 0, char *name = 0); ChooseWidget(EstateList *, int id, Card *, TQWidget *parent = 0, char *name = 0);
public slots: public slots:
void typeChanged(int); void typeChanged(int);
@ -197,7 +197,7 @@ class CardView : public TQWidget
TQ_OBJECT TQ_OBJECT
public: public:
CardView(EstateList *, CardStack *, TQWidget *tqparent = 0, char *name = 0); CardView(EstateList *, CardStack *, TQWidget *parent = 0, char *name = 0);
private slots: private slots:
void selected(int); void selected(int);
@ -232,7 +232,7 @@ class TaxDlg : public EstateDlg
TQ_OBJECT TQ_OBJECT
public: public:
TaxDlg(TQWidget *tqparent = 0, char *name = 0); TaxDlg(TQWidget *parent = 0, char *name = 0);
protected: protected:
virtual void save(); virtual void save();
@ -249,7 +249,7 @@ class GenericDlg : public EstateDlg
TQ_OBJECT TQ_OBJECT
public: public:
GenericDlg(TQWidget *tqparent = 0, char *name = 0); GenericDlg(TQWidget *parent = 0, char *name = 0);
protected: protected:
virtual void save(); virtual void save();
@ -265,7 +265,7 @@ class CardsDlg : public EstateDlg
TQ_OBJECT TQ_OBJECT
public: public:
CardsDlg(EstateList *, TQValueList<CardStack> *, TQWidget *tqparent = 0, char *name = 0); CardsDlg(EstateList *, TQValueList<CardStack> *, TQWidget *parent = 0, char *name = 0);
protected: protected:
virtual void save(); virtual void save();
@ -290,7 +290,7 @@ class StreetDlg : public EstateDlg
TQ_OBJECT TQ_OBJECT
public: public:
StreetDlg(ConfigEstateGroupList *, TQWidget *tqparent = 0, char *name = 0); StreetDlg(ConfigEstateGroupList *, TQWidget *parent = 0, char *name = 0);
protected: protected:
virtual void save(); virtual void save();

@ -19,8 +19,8 @@
#include "group.h" #include "group.h"
GroupEditor::GroupEditor(ConfigEstateGroupList *newList, TQWidget *tqparent) GroupEditor::GroupEditor(ConfigEstateGroupList *newList, TQWidget *parent)
: KDialogBase(KDialogBase::Plain, i18n("Group Editor"), Ok|Apply|Cancel, Ok, tqparent, "Group Editor", false, true), mylist(*newList) : KDialogBase(KDialogBase::Plain, i18n("Group Editor"), Ok|Apply|Cancel, Ok, parent, "Group Editor", false, true), mylist(*newList)
{ {
setWFlags(WDestructiveClose); setWFlags(WDestructiveClose);
list = newList; list = newList;

@ -56,7 +56,7 @@ class GroupEditor : public KDialogBase
TQ_OBJECT TQ_OBJECT
public: public:
GroupEditor(ConfigEstateGroupList *, TQWidget *tqparent=0); GroupEditor(ConfigEstateGroupList *, TQWidget *parent=0);
signals: signals:
void changed(); void changed();

@ -48,8 +48,8 @@ K_EXPORT_KADDRESSBOOK_XXFILTER_CATALOG( libkaddrbk_gmx_xxport, GMXXXPort, "libka
#define GMX_FILESELECTION_STRING "*.gmxa|" + i18n( "GMX addressbook file (*.gmxa)" ) #define GMX_FILESELECTION_STRING "*.gmxa|" + i18n( "GMX addressbook file (*.gmxa)" )
GMXXXPort::GMXXXPort( KABC::AddressBook *ab, TQWidget *tqparent, const char *name ) GMXXXPort::GMXXXPort( KABC::AddressBook *ab, TQWidget *parent, const char *name )
: KAB::XXPort( ab, tqparent, name ) : KAB::XXPort( ab, parent, name )
{ {
createImportAction( i18n( "Import GMX Address Book..." ) ); createImportAction( i18n( "Import GMX Address Book..." ) );
createExportAction( i18n( "Export GMX Address Book..." ) ); createExportAction( i18n( "Export GMX Address Book..." ) );

@ -33,7 +33,7 @@ class GMXXXPort : public KAB::XXPort
TQ_OBJECT TQ_OBJECT
public: public:
GMXXXPort( KABC::AddressBook *ab, TQWidget *tqparent, const char *name = 0 ); GMXXXPort( KABC::AddressBook *ab, TQWidget *parent, const char *name = 0 );
TQString identifier() const { return "gmx"; } TQString identifier() const { return "gmx"; }

@ -40,8 +40,8 @@ class FlagInfo
K_EXPORT_KADDRESSBOOK_XXFILTER_CATALOG( libkaddrbk_geo_xxport, GeoXXPort, "libkaddrbk_geo_xxport" ) K_EXPORT_KADDRESSBOOK_XXFILTER_CATALOG( libkaddrbk_geo_xxport, GeoXXPort, "libkaddrbk_geo_xxport" )
GeoXXPort::GeoXXPort( KABC::AddressBook *ab, TQWidget *tqparent, const char *name ) GeoXXPort::GeoXXPort( KABC::AddressBook *ab, TQWidget *parent, const char *name )
: KAB::XXPort( ab, tqparent, name ) : KAB::XXPort( ab, parent, name )
{ {
createExportAction( i18n( "Export Geo Data..." ) ); createExportAction( i18n( "Export Geo Data..." ) );
} }

@ -32,7 +32,7 @@ class GeoXXPort : public KAB::XXPort
TQ_OBJECT TQ_OBJECT
public: public:
GeoXXPort( KABC::AddressBook *ab, TQWidget *tqparent, const char *name = 0 ); GeoXXPort( KABC::AddressBook *ab, TQWidget *parent, const char *name = 0 );
TQString identifier() const { return "geo"; } TQString identifier() const { return "geo"; }

@ -241,8 +241,8 @@ void KatePluginSymbolViewerView::goToSymbol(TQListViewItem *it)
kv->gotoLineNumber(it->text(1).toInt(NULL, 10)); kv->gotoLineNumber(it->text(1).toInt(NULL, 10));
} }
KatePluginSymbolViewer::KatePluginSymbolViewer( TQObject* tqparent, const char* name, const TQStringList& ) KatePluginSymbolViewer::KatePluginSymbolViewer( TQObject* parent, const char* name, const TQStringList& )
: Kate::Plugin ( (Kate::Application*)tqparent, name ), : Kate::Plugin ( (Kate::Application*)parent, name ),
pConfig("katecppsymbolviewerpluginrc") pConfig("katecppsymbolviewerpluginrc")
{ {
pConfig.setGroup("global"); pConfig.setGroup("global");
@ -307,7 +307,7 @@ void KatePluginSymbolViewer::applyConfig( KatePluginSymbolViewerConfigPage* p )
// BEGIN KatePluginSymbolViewerConfigPage // BEGIN KatePluginSymbolViewerConfigPage
KatePluginSymbolViewerConfigPage::KatePluginSymbolViewerConfigPage( KatePluginSymbolViewerConfigPage::KatePluginSymbolViewerConfigPage(
TQObject* /*tqparent*/ /*= 0L*/, TQWidget *parentWidget /*= 0L*/) TQObject* /*parent*/ /*= 0L*/, TQWidget *parentWidget /*= 0L*/)
: Kate::PluginConfigPage( parentWidget ) : Kate::PluginConfigPage( parentWidget )
{ {
TQVBoxLayout* top = new TQVBoxLayout(this, 0, TQVBoxLayout* top = new TQVBoxLayout(this, 0,

@ -94,7 +94,7 @@ class KatePluginSymbolViewerConfigPage : public Kate::PluginConfigPage
friend class KatePluginSymbolViewer; friend class KatePluginSymbolViewer;
public: public:
KatePluginSymbolViewerConfigPage (TQObject* tqparent = 0L, TQWidget *parentWidget = 0L); KatePluginSymbolViewerConfigPage (TQObject* parent = 0L, TQWidget *parentWidget = 0L);
~KatePluginSymbolViewerConfigPage (); ~KatePluginSymbolViewerConfigPage ();
/** /**
@ -128,7 +128,7 @@ class KatePluginSymbolViewer : public Kate::Plugin, Kate::PluginViewInterface, K
TQ_OBJECT TQ_OBJECT
public: public:
KatePluginSymbolViewer( TQObject* tqparent = 0, const char* name = 0, const TQStringList& = TQStringList() ); KatePluginSymbolViewer( TQObject* parent = 0, const char* name = 0, const TQStringList& = TQStringList() );
virtual ~KatePluginSymbolViewer(); virtual ~KatePluginSymbolViewer();
void addView (Kate::MainWindow *win); void addView (Kate::MainWindow *win);

@ -30,8 +30,8 @@
K_EXPORT_COMPONENT_FACTORY( katefll_initplugin, KGenericFactory<InitPluginKateFileListLoader>( "katefll_loader" ) ) K_EXPORT_COMPONENT_FACTORY( katefll_initplugin, KGenericFactory<InitPluginKateFileListLoader>( "katefll_loader" ) )
InitPluginKateFileListLoader::InitPluginKateFileListLoader (TQObject * tqparent, const char *name, const TQStringList datalist) InitPluginKateFileListLoader::InitPluginKateFileListLoader (TQObject * parent, const char *name, const TQStringList datalist)
:InitPlugin((Kate::Application*)tqparent,name) :InitPlugin((Kate::Application*)parent,name)
{ {
} }

@ -42,8 +42,8 @@ class PluginView : public KXMLGUIClient
KRecentFilesAction *recentFiles; KRecentFilesAction *recentFiles;
}; };
PluginKateFileListLoader::PluginKateFileListLoader (TQObject * tqparent, const char *name, const TQStringList) PluginKateFileListLoader::PluginKateFileListLoader (TQObject * parent, const char *name, const TQStringList)
: Plugin((Kate::Application*)tqparent,name), PluginViewInterface(), : Plugin((Kate::Application*)parent,name), PluginViewInterface(),
m_config( new KConfig("katefilelistpluginrc") ) m_config( new KConfig("katefilelistpluginrc") )
{ {
m_config->setGroup("General"); m_config->setGroup("General");

@ -98,9 +98,9 @@ KatePluginFactory::~KatePluginFactory()
delete s_instance; delete s_instance;
} }
TQObject* KatePluginFactory::createObject( TQObject* tqparent, const char* name, const char*, const TQStringList & ) TQObject* KatePluginFactory::createObject( TQObject* parent, const char* name, const char*, const TQStringList & )
{ {
return new KateFileTemplates( tqparent, name ); return new KateFileTemplates( parent, name );
} }
KInstance* KatePluginFactory::s_instance = 0L; KInstance* KatePluginFactory::s_instance = 0L;
@ -125,8 +125,8 @@ class TemplateInfo
//END TemplateInfo //END TemplateInfo
//BEGIN KateFileTemplates //BEGIN KateFileTemplates
KateFileTemplates::KateFileTemplates( TQObject* tqparent, const char* name ) KateFileTemplates::KateFileTemplates( TQObject* parent, const char* name )
: Kate::Plugin ( (Kate::Application*)tqparent, name ), : Kate::Plugin ( (Kate::Application*)parent, name ),
m_actionCollection( new KActionCollection( this, "template_actions", new KInstance("kate") ) ) m_actionCollection( new KActionCollection( this, "template_actions", new KInstance("kate") ) )
{ {
// create actions, so that they are shared. // create actions, so that they are shared.
@ -544,8 +544,8 @@ void KateFileTemplates::slotEditTemplate()
//BEGIN KateTemplateInfoWidget //BEGIN KateTemplateInfoWidget
// This widget can be used to change the data of a TemplateInfo object // This widget can be used to change the data of a TemplateInfo object
KateTemplateInfoWidget::KateTemplateInfoWidget( TQWidget *tqparent, TemplateInfo *info, KateFileTemplates *kft ) KateTemplateInfoWidget::KateTemplateInfoWidget( TQWidget *parent, TemplateInfo *info, KateFileTemplates *kft )
: TQWidget( tqparent ), : TQWidget( parent ),
info( info ), info( info ),
kft( kft ) kft( kft )
{ {
@ -659,8 +659,8 @@ void KateTemplateInfoWidget::slotHlSet( int id )
//BEGIN KateTemplateWizard //BEGIN KateTemplateWizard
// A simple wizard to help create a new template :-) // A simple wizard to help create a new template :-)
KateTemplateWizard::KateTemplateWizard( TQWidget *tqparent, KateFileTemplates *kft ) KateTemplateWizard::KateTemplateWizard( TQWidget *parent, KateFileTemplates *kft )
: KWizard( tqparent ), : KWizard( parent ),
kft( kft ) kft( kft )
{ {
// Hide the help button for now // Hide the help button for now
@ -733,7 +733,7 @@ KateTemplateWizard::KateTemplateWizard( TQWidget *tqparent, KateFileTemplates *k
map[ "fullname" ] = ""; map[ "fullname" ] = "";
map[ "email" ] = ""; map[ "email" ] = "";
KTextEditor::TemplateInterface::expandMacros( map, tqparent ); KTextEditor::TemplateInterface::expandMacros( map, parent );
TQString sFullname = map["fullname"]; TQString sFullname = map["fullname"];
TQString sEmail = map["email"]; TQString sEmail = map["email"];
TQString _s = sFullname; TQString _s = sFullname;
@ -1072,8 +1072,8 @@ void KateTemplateWizard::accept()
class KateTemplateItem : public KListViewItem class KateTemplateItem : public KListViewItem
{ {
public: public:
KateTemplateItem( KListViewItem *tqparent, TemplateInfo *templateinfo ) KateTemplateItem( KListViewItem *parent, TemplateInfo *templateinfo )
: KListViewItem( tqparent, templateinfo->tmplate ), templateinfo( templateinfo ) : KListViewItem( parent, templateinfo->tmplate ), templateinfo( templateinfo )
{ {
} }
TemplateInfo *templateinfo; TemplateInfo *templateinfo;
@ -1083,7 +1083,7 @@ class KateTemplateItem : public KListViewItem
//BEGIN KFTNewStuff //BEGIN KFTNewStuff
class KFTNewStuff : public KNewStuff { class KFTNewStuff : public KNewStuff {
public: public:
KFTNewStuff( const TQString &type, TQWidget *tqparent=0 ) : KNewStuff( type, tqparent ), m_win( tqparent ) {} KFTNewStuff( const TQString &type, TQWidget *parent=0 ) : KNewStuff( type, parent ), m_win( parent ) {}
~KFTNewStuff() {} ~KFTNewStuff() {}
bool install( const TQString &/*filename*/ ) { return true; } bool install( const TQString &/*filename*/ ) { return true; }
bool createUploadFile( const TQString &/*filename*/ ) { return false; } bool createUploadFile( const TQString &/*filename*/ ) { return false; }
@ -1099,8 +1099,8 @@ class KFTNewStuff : public KNewStuff {
//END KTNewStuff //END KTNewStuff
//BEGIN KateTemplateManager //BEGIN KateTemplateManager
KateTemplateManager::KateTemplateManager( KateFileTemplates *kft, TQWidget *tqparent, const char *name ) KateTemplateManager::KateTemplateManager( KateFileTemplates *kft, TQWidget *parent, const char *name )
: TQWidget( tqparent, name ) : TQWidget( parent, name )
, kft( kft ) , kft( kft )
{ {
TQGridLayout *lo = new TQGridLayout( this, 2, 6 ); TQGridLayout *lo = new TQGridLayout( this, 2, 6 );

@ -45,7 +45,7 @@ class KatePluginFactory : public KLibFactory
KatePluginFactory(); KatePluginFactory();
virtual ~KatePluginFactory(); virtual ~KatePluginFactory();
virtual TQObject* createObject( TQObject* tqparent = 0, const char* pname = 0, const char* name = TQOBJECT_OBJECT_NAME_STRING, const TQStringList &args = TQStringList() ); virtual TQObject* createObject( TQObject* parent = 0, const char* pname = 0, const char* name = TQOBJECT_OBJECT_NAME_STRING, const TQStringList &args = TQStringList() );
private: private:
static KInstance* s_instance; static KInstance* s_instance;
@ -77,7 +77,7 @@ class KateFileTemplates : public Kate::Plugin, public Kate::PluginViewInterface
TQ_OBJECT TQ_OBJECT
public: public:
KateFileTemplates( TQObject* tqparent = 0, const char* name = 0 ); KateFileTemplates( TQObject* parent = 0, const char* name = 0 );
virtual ~KateFileTemplates(); virtual ~KateFileTemplates();
void addView (Kate::MainWindow *win); void addView (Kate::MainWindow *win);
@ -161,7 +161,7 @@ class KateTemplateInfoWidget : public TQWidget
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
KateTemplateInfoWidget( TQWidget *tqparent=0, TemplateInfo *info=0, KateFileTemplates *kft=0 ); KateTemplateInfoWidget( TQWidget *parent=0, TemplateInfo *info=0, KateFileTemplates *kft=0 );
~KateTemplateInfoWidget() {} ~KateTemplateInfoWidget() {}
TemplateInfo *info; TemplateInfo *info;
@ -196,7 +196,7 @@ class KateTemplateWizard : public KWizard
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
KateTemplateWizard( TQWidget* tqparent, KateFileTemplates *ktf ); KateTemplateWizard( TQWidget* parent, KateFileTemplates *ktf );
~KateTemplateWizard() {} ~KateTemplateWizard() {}
public slots: public slots:
@ -236,7 +236,7 @@ class KateTemplateManager : public TQWidget
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
KateTemplateManager( KateFileTemplates *kft=0, TQWidget *tqparent=0, const char *name=0 ); KateTemplateManager( KateFileTemplates *kft=0, TQWidget *parent=0, const char *name=0 );
~KateTemplateManager() {} ~KateTemplateManager() {}
public slots: public slots:

@ -16,8 +16,8 @@ class PluginView : public KXMLGUIClient
Kate::MainWindow *win; Kate::MainWindow *win;
}; };
KatePluginHelloWorld::KatePluginHelloWorld( TQObject* tqparent, const char* name, const TQStringList& ) KatePluginHelloWorld::KatePluginHelloWorld( TQObject* parent, const char* name, const TQStringList& )
: Kate::Plugin ( (Kate::Application*)tqparent, name ) : Kate::Plugin ( (Kate::Application*)parent, name )
{ {
} }

@ -15,7 +15,7 @@ class KatePluginHelloWorld : public Kate::Plugin, Kate::PluginViewInterface
TQ_OBJECT TQ_OBJECT
public: public:
KatePluginHelloWorld( TQObject* tqparent = 0, const char* name = 0, const TQStringList& = TQStringList() ); KatePluginHelloWorld( TQObject* parent = 0, const char* name = 0, const TQStringList& = TQStringList() );
virtual ~KatePluginHelloWorld(); virtual ~KatePluginHelloWorld();
void addView (Kate::MainWindow *win); void addView (Kate::MainWindow *win);

@ -36,8 +36,8 @@ class PluginView : public KXMLGUIClient
Kate::MainWindow *win; Kate::MainWindow *win;
}; };
PluginKateHtmlTools::PluginKateHtmlTools( TQObject* tqparent, const char* name, const TQStringList& ) PluginKateHtmlTools::PluginKateHtmlTools( TQObject* parent, const char* name, const TQStringList& )
: Kate::Plugin ( (Kate::Application *)tqparent, name ) : Kate::Plugin ( (Kate::Application *)parent, name )
{ {
} }

@ -34,7 +34,7 @@ class PluginKateHtmlTools : public Kate::Plugin, Kate::PluginViewInterface
TQ_OBJECT TQ_OBJECT
public: public:
PluginKateHtmlTools( TQObject* tqparent = 0, const char* name = 0, const TQStringList& = TQStringList() ); PluginKateHtmlTools( TQObject* parent = 0, const char* name = 0, const TQStringList& = TQStringList() );
virtual ~PluginKateHtmlTools(); virtual ~PluginKateHtmlTools();
void addView (Kate::MainWindow *win); void addView (Kate::MainWindow *win);

@ -57,8 +57,8 @@ class PluginView : public KXMLGUIClient
//END //END
//BEGIN PluginKateInsertCommand //BEGIN PluginKateInsertCommand
PluginKateInsertCommand::PluginKateInsertCommand( TQObject* tqparent, const char* name, const TQStringList& ) PluginKateInsertCommand::PluginKateInsertCommand( TQObject* parent, const char* name, const TQStringList& )
: Kate::Plugin ( (Kate::Application *)tqparent, name ), : Kate::Plugin ( (Kate::Application *)parent, name ),
kv ( 0 ), kv ( 0 ),
sh ( 0 ) sh ( 0 )
{ {
@ -277,13 +277,13 @@ void PluginKateInsertCommand::applyConfig( InsertCommandConfigPage *p )
//BEGIN CmdPrompt //BEGIN CmdPrompt
// This is a simple dialog to retrieve a command and decide if // This is a simple dialog to retrieve a command and decide if
// stdErr should be included in the text inserted. // stdErr should be included in the text inserted.
CmdPrompt::CmdPrompt(TQWidget* tqparent, CmdPrompt::CmdPrompt(TQWidget* parent,
const char* name, const char* name,
const TQStringList& cmdhist, const TQStringList& cmdhist,
const TQString& dir, const TQString& dir,
const TQString& /*docdir*/, const TQString& /*docdir*/,
int settings) int settings)
: KDialogBase (tqparent, name, true, i18n("Insert Command"), Ok|Cancel, Ok, true) : KDialogBase (parent, name, true, i18n("Insert Command"), Ok|Cancel, Ok, true)
{ {
TQWidget *page = new TQWidget( this ); TQWidget *page = new TQWidget( this );
setMainWidget(page); setMainWidget(page);
@ -345,8 +345,8 @@ void CmdPrompt::slotTextChanged(const TQString &text)
//BEGIN WaitDlg implementation //BEGIN WaitDlg implementation
// This is a dialog that is displayed while a command is running, // This is a dialog that is displayed while a command is running,
// with a cancel button to allow the user to kill the command // with a cancel button to allow the user to kill the command
WaitDlg::WaitDlg(TQWidget* tqparent, const TQString& text, const TQString& title) WaitDlg::WaitDlg(TQWidget* parent, const TQString& text, const TQString& title)
: KDialogBase( tqparent, "wait dialog", true, title, Cancel, Cancel, true ) : KDialogBase( parent, "wait dialog", true, title, Cancel, Cancel, true )
{ {
TQWidget *page = new TQWidget( this ); TQWidget *page = new TQWidget( this );
setMainWidget( page ); setMainWidget( page );
@ -366,7 +366,7 @@ WaitDlg::~WaitDlg()
//BEGIN InsertCommandConfigPage //BEGIN InsertCommandConfigPage
// This is the config page for this plugin. // This is the config page for this plugin.
InsertCommandConfigPage::InsertCommandConfigPage(TQObject* /*tqparent*/, InsertCommandConfigPage::InsertCommandConfigPage(TQObject* /*parent*/,
TQWidget *parentWidget) TQWidget *parentWidget)
: Kate::PluginConfigPage( parentWidget ) : Kate::PluginConfigPage( parentWidget )
{ {

@ -58,7 +58,7 @@ class PluginKateInsertCommand : public Kate::Plugin,
TQ_OBJECT TQ_OBJECT
public: public:
PluginKateInsertCommand( TQObject* tqparent = 0, const char* name = 0, const TQStringList& = TQStringList() ); PluginKateInsertCommand( TQObject* parent = 0, const char* name = 0, const TQStringList& = TQStringList() );
virtual ~PluginKateInsertCommand(); virtual ~PluginKateInsertCommand();
void addView (Kate::MainWindow *win); void addView (Kate::MainWindow *win);
@ -106,7 +106,7 @@ class CmdPrompt : public KDialogBase
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
CmdPrompt(TQWidget* tqparent=0, CmdPrompt(TQWidget* parent=0,
const char* name=0, const char* name=0,
const TQStringList& cmdhist=TQStringList(), const TQStringList& cmdhist=TQStringList(),
const TQString& dir=TQString(), const TQString& dir=TQString(),
@ -132,7 +132,7 @@ private slots:
class WaitDlg : public KDialogBase class WaitDlg : public KDialogBase
{ {
public: public:
WaitDlg(TQWidget* tqparent, WaitDlg(TQWidget* parent,
const TQString& text=TQString(), const TQString& text=TQString(),
const TQString& title=i18n("Please Wait")); const TQString& title=i18n("Please Wait"));
~WaitDlg(); ~WaitDlg();
@ -146,7 +146,7 @@ class InsertCommandConfigPage : public Kate::PluginConfigPage
friend class PluginKateInsertCommand; friend class PluginKateInsertCommand;
public: public:
InsertCommandConfigPage(TQObject* tqparent = 0L, TQWidget *parentWidget = 0L); InsertCommandConfigPage(TQObject* parent = 0L, TQWidget *parentWidget = 0L);
~InsertCommandConfigPage() {} ~InsertCommandConfigPage() {}
/** Reimplemented from Kate::PluginConfigPage /** Reimplemented from Kate::PluginConfigPage

@ -17,7 +17,7 @@
using namespace Kate::JS; using namespace Kate::JS;
Bindings::Bindings(TQObject *tqparent): KJSEmbed::Bindings::JSBindingPlugin(tqparent,"KateAppBindings",TQStringList()) { Bindings::Bindings(TQObject *parent): KJSEmbed::Bindings::JSBindingPlugin(parent,"KateAppBindings",TQStringList()) {
} }
Bindings::~Bindings() { Bindings::~Bindings() {
@ -74,11 +74,11 @@ void DocumentManager::addBindings(KJS::ExecState *exec, KJSEmbed::JSObjectProxy
object.put(exec, "closeAllDocument", KJS::Object(new DocumentManager( exec, CloseAllDocuments, proxy,dict ))); object.put(exec, "closeAllDocument", KJS::Object(new DocumentManager( exec, CloseAllDocuments, proxy,dict )));
} }
DocumentManager::DocumentManager( KJS::ExecState *exec, int id, KJSEmbed::JSObjectProxy *tqparent, RefCountedObjectDict *dict ):KJSEmbed::JSProxyImp(exec) { DocumentManager::DocumentManager( KJS::ExecState *exec, int id, KJSEmbed::JSObjectProxy *parent, RefCountedObjectDict *dict ):KJSEmbed::JSProxyImp(exec) {
m_dict=dict; m_dict=dict;
m_dict->incRef(); m_dict->incRef();
m_id=id; m_id=id;
m_proxy=tqparent; m_proxy=parent;
} }
DocumentManager::~DocumentManager() { DocumentManager::~DocumentManager() {
@ -231,7 +231,7 @@ KJS::Value Kate::JS::Management::call( KJS::ExecState *exec, KJS::Object &self,
} }
void Kate::JS::Application::addBindings(KJS::ExecState *exec, KJSEmbed::JSObjectProxy *proxy,KJS::Object &object){ void Kate::JS::Application::addBindings(KJS::ExecState *exec, KJSEmbed::JSObjectProxy *proxy,KJS::Object &object){
PluginKateKJSWrapper *wrap=static_cast<PluginKateKJSWrapper*>(proxy->part()->tqparent()); PluginKateKJSWrapper *wrap=static_cast<PluginKateKJSWrapper*>(proxy->part()->parent());
KJS::Object ToolView(new Application( exec, ToolView, proxy ,wrap)); KJS::Object ToolView(new Application( exec, ToolView, proxy ,wrap));
ToolView.put(exec,KJS::Identifier("Left"),KJS::Number(KDockWidget::DockLeft) ,KJS::ReadOnly | KJS::DontDelete); ToolView.put(exec,KJS::Identifier("Left"),KJS::Number(KDockWidget::DockLeft) ,KJS::ReadOnly | KJS::DontDelete);
ToolView.put(exec,KJS::Identifier("Top"),KJS::Number(KDockWidget::DockTop) ,KJS::ReadOnly | KJS::DontDelete); ToolView.put(exec,KJS::Identifier("Top"),KJS::Number(KDockWidget::DockTop) ,KJS::ReadOnly | KJS::DontDelete);
@ -262,10 +262,10 @@ void Kate::JS::Application::addBindings(KJS::ExecState *exec, KJSEmbed::JSObject
} }
Kate::JS::Application::Application( KJS::ExecState *exec, int id, KJSEmbed::JSObjectProxy *tqparent,PluginKateKJSWrapper *plugin):KJSEmbed::JSProxyImp(exec) { Kate::JS::Application::Application( KJS::ExecState *exec, int id, KJSEmbed::JSObjectProxy *parent,PluginKateKJSWrapper *plugin):KJSEmbed::JSProxyImp(exec) {
kdDebug()<<"Kate::JS::Application::Application"<<endl; kdDebug()<<"Kate::JS::Application::Application"<<endl;
m_id=id; m_id=id;
m_proxy=tqparent; m_proxy=parent;
m_plugin=plugin; m_plugin=plugin;
} }
@ -417,7 +417,7 @@ void Kate::JS::MainWindow::addBindings(KJS::ExecState *exec, KJSEmbed::JSObjectP
if (!mw) return; if (!mw) return;
kdDebug()<<"Kate::JS::MainWindow::addBindings - 3"<<endl; kdDebug()<<"Kate::JS::MainWindow::addBindings - 3"<<endl;
PluginKateKJSWrapper *wrap=static_cast<PluginKateKJSWrapper*>(proxy->part()->tqparent()); PluginKateKJSWrapper *wrap=static_cast<PluginKateKJSWrapper*>(proxy->part()->parent());
if (!wrap) return; if (!wrap) return;
kdDebug()<<"Kate::JS::MainWindow::addBindings - 4"<<endl; kdDebug()<<"Kate::JS::MainWindow::addBindings - 4"<<endl;
@ -427,10 +427,10 @@ void Kate::JS::MainWindow::addBindings(KJS::ExecState *exec, KJSEmbed::JSObjectP
Kate::JS::MainWindow::MainWindow( KJS::ExecState *exec, int id, KJSEmbed::JSObjectProxy *tqparent,PluginKateKJSWrapper *plugin):KJSEmbed::JSProxyImp(exec) { Kate::JS::MainWindow::MainWindow( KJS::ExecState *exec, int id, KJSEmbed::JSObjectProxy *parent,PluginKateKJSWrapper *plugin):KJSEmbed::JSProxyImp(exec) {
kdDebug()<<"Kate::JS::MainWindow::MainWindow"<<endl; kdDebug()<<"Kate::JS::MainWindow::MainWindow"<<endl;
m_id=id; m_id=id;
m_proxy=tqparent; m_proxy=parent;
m_plugin=plugin; m_plugin=plugin;
} }

@ -34,7 +34,7 @@ namespace Kate {
class Bindings: public KJSEmbed::Bindings::JSBindingPlugin { class Bindings: public KJSEmbed::Bindings::JSBindingPlugin {
public: public:
Bindings(TQObject *tqparent); Bindings(TQObject *parent);
virtual ~Bindings(); virtual ~Bindings();
KJS::Object createBinding(KJSEmbed::KJSEmbedPart *jspart, KJS::ExecState *exec, const KJS::List &args) const; KJS::Object createBinding(KJSEmbed::KJSEmbedPart *jspart, KJS::ExecState *exec, const KJS::List &args) const;
void addBindings(KJS::ExecState *exec, KJS::Object &target) const; void addBindings(KJS::ExecState *exec, KJS::Object &target) const;
@ -57,7 +57,7 @@ namespace Kate {
virtual KJS::Value call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ); virtual KJS::Value call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args );
static void addBindings(KJS::ExecState *exec, KJSEmbed::JSObjectProxy *proxy,KJS::Object &target); static void addBindings(KJS::ExecState *exec, KJSEmbed::JSObjectProxy *proxy,KJS::Object &target);
private: private:
DocumentManager( KJS::ExecState *exec, int id, KJSEmbed::JSObjectProxy *tqparent, RefCountedObjectDict *dict ); DocumentManager( KJS::ExecState *exec, int id, KJSEmbed::JSObjectProxy *parent, RefCountedObjectDict *dict );
virtual ~DocumentManager(); virtual ~DocumentManager();
private: private:
RefCountedObjectDict *m_dict; RefCountedObjectDict *m_dict;
@ -98,7 +98,7 @@ namespace Kate {
virtual KJS::Value call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ); virtual KJS::Value call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args );
static void addBindings(KJS::ExecState *exec, KJSEmbed::JSObjectProxy *proxy,KJS::Object &target); static void addBindings(KJS::ExecState *exec, KJSEmbed::JSObjectProxy *proxy,KJS::Object &target);
private: private:
Application( KJS::ExecState *exec, int id, KJSEmbed::JSObjectProxy *tqparent, PluginKateKJSWrapper *plugin ); Application( KJS::ExecState *exec, int id, KJSEmbed::JSObjectProxy *parent, PluginKateKJSWrapper *plugin );
~Application(); ~Application();
private: private:
int m_id; int m_id;
@ -136,7 +136,7 @@ namespace Kate {
virtual KJS::Value call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ); virtual KJS::Value call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args );
static void addBindings(KJS::ExecState *exec, KJSEmbed::JSObjectProxy *proxy,KJS::Object &target); static void addBindings(KJS::ExecState *exec, KJSEmbed::JSObjectProxy *proxy,KJS::Object &target);
private: private:
MainWindow( KJS::ExecState *exec, int id, KJSEmbed::JSObjectProxy *tqparent, PluginKateKJSWrapper *plugin ); MainWindow( KJS::ExecState *exec, int id, KJSEmbed::JSObjectProxy *parent, PluginKateKJSWrapper *plugin );
~MainWindow(); ~MainWindow();
private: private:
int m_id; int m_id;

@ -53,8 +53,8 @@ void PluginKateKJSWrapperView::removeFromWindow() {
win->guiFactory()->removeClient (this); win->guiFactory()->removeClient (this);
} }
PluginKateKJSWrapper::PluginKateKJSWrapper( TQObject* tqparent, const char* name, const TQStringList& list) PluginKateKJSWrapper::PluginKateKJSWrapper( TQObject* parent, const char* name, const TQStringList& list)
: Kate::Plugin ( (Kate::Application *)tqparent, name ) { : Kate::Plugin ( (Kate::Application *)parent, name ) {
m_views.setAutoDelete(true); m_views.setAutoDelete(true);
m_scriptname=list[0]; m_scriptname=list[0];
m_kateAppBindings=new Kate::JS::Bindings(this); m_kateAppBindings=new Kate::JS::Bindings(this);
@ -370,18 +370,18 @@ void PluginKateKJSWrapper::applyConfig( KateKJSWrapperConfigPage *p )
#endif #endif
} }
KateKJSWrapperConfigPage::KateKJSWrapperConfigPage(KJS::Object pageConstructor,PluginKateKJSWrapper* tqparent, KateKJSWrapperConfigPage::KateKJSWrapperConfigPage(KJS::Object pageConstructor,PluginKateKJSWrapper* parent,
TQWidget *parentWidget) TQWidget *parentWidget)
: Kate::PluginConfigPage( parentWidget ),m_plugin(tqparent) : Kate::PluginConfigPage( parentWidget ),m_plugin(parent)
{ {
TQVBoxLayout *l=new TQVBoxLayout(this); TQVBoxLayout *l=new TQVBoxLayout(this);
l->setAutoAdd(true); l->setAutoAdd(true);
l->activate(); l->activate();
KJS::Interpreter *js = tqparent->m_part->interpreter(); KJS::Interpreter *js = parent->m_part->interpreter();
KJS::ExecState *exec = js->globalExec(); KJS::ExecState *exec = js->globalExec();
exec->clearException(); exec->clearException();
KJS::List param; KJS::List param;
param.append(tqparent->m_part->factory()->createProxy(exec,this,0)); param.append(parent->m_part->factory()->createProxy(exec,this,0));
m_pageObject=pageConstructor.construct(exec,param); m_pageObject=pageConstructor.construct(exec,param);
} }

@ -76,7 +76,7 @@ class PluginKateKJSWrapper : public Kate::Plugin,
TQ_OBJECT TQ_OBJECT
public: public:
PluginKateKJSWrapper( TQObject* tqparent = 0, const char* name = 0, const TQStringList& = TQStringList() ); PluginKateKJSWrapper( TQObject* parent = 0, const char* name = 0, const TQStringList& = TQStringList() );
virtual ~PluginKateKJSWrapper(); virtual ~PluginKateKJSWrapper();
void addView (Kate::MainWindow *win); void addView (Kate::MainWindow *win);
@ -122,7 +122,7 @@ class KateKJSWrapperConfigPage : public Kate::PluginConfigPage
friend class PluginKateKJSWrapper; friend class PluginKateKJSWrapper;
public: public:
KateKJSWrapperConfigPage(KJS::Object pageConstructor,PluginKateKJSWrapper* tqparent = 0L, TQWidget *parentWidget = 0L); KateKJSWrapperConfigPage(KJS::Object pageConstructor,PluginKateKJSWrapper* parent = 0L, TQWidget *parentWidget = 0L);
~KateKJSWrapperConfigPage() {}; ~KateKJSWrapperConfigPage() {};
/** Reimplemented from Kate::PluginConfigPage /** Reimplemented from Kate::PluginConfigPage

@ -181,8 +181,8 @@ getOpenNodes (TQValueList < TQString > *open_nodes, PyBrowseNode * node)
} }
KPyBrowser::KPyBrowser (TQWidget * tqparent, const char *name): KPyBrowser::KPyBrowser (TQWidget * parent, const char *name):
KListView (tqparent, name) KListView (parent, name)
{ {
addColumn(i18n("Name")); addColumn(i18n("Name"));
@ -380,7 +380,7 @@ KPyBrowser::tip (const TQPoint & p, TQRect & r, TQString & str)
///////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////
// KateFileList::KFLToolTip implementation // KateFileList::KFLToolTip implementation
KPyBrowser::KPBToolTip::KPBToolTip (TQWidget * tqparent):TQToolTip (tqparent) KPyBrowser::KPBToolTip::KPBToolTip (TQWidget * parent):TQToolTip (parent)
{ {
} }

@ -38,7 +38,7 @@ class KPyBrowser : public KListView
TQ_OBJECT TQ_OBJECT
public: public:
/** construtor */ /** construtor */
KPyBrowser(TQWidget* tqparent=0, const char *name=0); KPyBrowser(TQWidget* parent=0, const char *name=0);
/** destructor */ /** destructor */
~KPyBrowser(); ~KPyBrowser();
void parseText(TQString &pytext); void parseText(TQString &pytext);
@ -60,7 +60,7 @@ class KPyBrowser : public KListView
class KPBToolTip : public TQToolTip class KPBToolTip : public TQToolTip
{ {
public: public:
KPBToolTip(TQWidget *tqparent); KPBToolTip(TQWidget *parent);
protected: protected:
void maybeTip( const TQPoint & ); void maybeTip( const TQPoint & );
}; };

@ -130,8 +130,8 @@ void PluginViewPyBrowse::slotShowPyBrowser()
//TO DO implement this later so that you can turn the browser off and on //TO DO implement this later so that you can turn the browser off and on
} }
KatePluginPyBrowse::KatePluginPyBrowse( TQObject* tqparent, const char* name, const TQStringList& ) KatePluginPyBrowse::KatePluginPyBrowse( TQObject* parent, const char* name, const TQStringList& )
: Kate::Plugin ( (Kate::Application *)tqparent, name ) : Kate::Plugin ( (Kate::Application *)parent, name )
{ {
} }

@ -61,7 +61,7 @@ class KatePluginPyBrowse : public Kate::Plugin, public Kate::PluginViewInterface
TQ_OBJECT TQ_OBJECT
public: public:
KatePluginPyBrowse( TQObject* tqparent = 0, const char* name = 0, const TQStringList& = TQStringList() ); KatePluginPyBrowse( TQObject* parent = 0, const char* name = 0, const TQStringList& = TQStringList() );
~KatePluginPyBrowse(); ~KatePluginPyBrowse();
void addView(Kate::MainWindow *win); void addView(Kate::MainWindow *win);

@ -99,16 +99,16 @@ static const char *py_function_xpm[] = {
}; };
PyBrowseNode::PyBrowseNode (TQListViewItem * tqparent, const TQString &name, PyBrowseNode::PyBrowseNode (TQListViewItem * parent, const TQString &name,
const TQString &signature, int nodeType): const TQString &signature, int nodeType):
TQListViewItem (tqparent, signature) TQListViewItem (parent, signature)
{ {
init (name, signature, nodeType); init (name, signature, nodeType);
} }
PyBrowseNode::PyBrowseNode (TQListView * tqparent, const TQString &name, PyBrowseNode::PyBrowseNode (TQListView * parent, const TQString &name,
const TQString &signature, int nodeType): const TQString &signature, int nodeType):
TQListViewItem (tqparent, signature) TQListViewItem (parent, signature)
{ {
init (name, signature, nodeType); init (name, signature, nodeType);
} }

@ -37,8 +37,8 @@ class PyBrowseNode : public TQListViewItem {
public: public:
TQPixmap *pyClassPixmap; TQPixmap *pyClassPixmap;
PyBrowseNode(TQListView *tqparent, const TQString &a_name, const TQString &a_signature, int type); PyBrowseNode(TQListView *parent, const TQString &a_name, const TQString &a_signature, int type);
PyBrowseNode(TQListViewItem *tqparent, const TQString &a_name, const TQString &a_signature, int type); PyBrowseNode(TQListViewItem *parent, const TQString &a_name, const TQString &a_signature, int type);
~PyBrowseNode(); ~PyBrowseNode();
void init(const TQString &a_name, const TQString &a_signature, int nodeType); void init(const TQString &a_name, const TQString &a_signature, int nodeType);

@ -62,8 +62,8 @@ K_EXPORT_COMPONENT_FACTORY( katemakeplugin, KGenericFactory<PluginKateMake>( "ka
// #define FUNCTIONSETUP kdDebug() << k_funcinfo << endl; // #define FUNCTIONSETUP kdDebug() << k_funcinfo << endl;
#define FUNCTIONSETUP #define FUNCTIONSETUP
PluginKateMake::PluginKateMake( TQObject* tqparent, const char* name, const TQStringList& ) PluginKateMake::PluginKateMake( TQObject* parent, const char* name, const TQStringList& )
: Kate::Plugin ( (Kate::Application *)tqparent, name ) : Kate::Plugin ( (Kate::Application *)parent, name )
{ {
FUNCTIONSETUP; FUNCTIONSETUP;
} }
@ -123,11 +123,11 @@ void PluginKateMake::removeView(Kate::MainWindow *win)
class ErrorMessage : public TQListViewItem class ErrorMessage : public TQListViewItem
{ {
public: public:
ErrorMessage(TQListView *tqparent, ErrorMessage(TQListView *parent,
const TQString &filename, const TQString &filename,
int lineno, int lineno,
const TQString &message) : const TQString &message) :
TQListViewItem(tqparent, TQListViewItem(parent,
filename, filename,
(lineno > 0 ? TQString::number(lineno) : TQString()), (lineno > 0 ? TQString::number(lineno) : TQString()),
message) message)
@ -136,8 +136,8 @@ public:
m_lineno = lineno; m_lineno = lineno;
m_serial = s_serial++; m_serial = s_serial++;
} }
ErrorMessage(TQListView *tqparent,const TQString &message) : ErrorMessage(TQListView *parent,const TQString &message) :
TQListViewItem(tqparent,TQString(),TQString(),TQString()) TQListViewItem(parent,TQString(),TQString(),TQString())
{ {
TQString m(message); TQString m(message);
m.remove('\n'); m.remove('\n');
@ -149,8 +149,8 @@ public:
m_serial = s_serial++; m_serial = s_serial++;
setSelectable(false); setSelectable(false);
} }
ErrorMessage(TQListView *tqparent, bool start) : ErrorMessage(TQListView *parent, bool start) :
TQListViewItem(tqparent,TQString()) TQListViewItem(parent,TQString())
{ {
m_isError=false; m_isError=false;
m_lineno=-1; m_lineno=-1;
@ -261,7 +261,7 @@ TQString ErrorMessage::fancyMessage() const
class LinePopup : public KPassivePopup class LinePopup : public KPassivePopup
{ {
protected: protected:
LinePopup( TQWidget *tqparent=0, const char *name=0, WFlags f=0 ); LinePopup( TQWidget *parent=0, const char *name=0, WFlags f=0 );
virtual ~LinePopup(); virtual ~LinePopup();
public: public:
@ -292,12 +292,12 @@ LinePopup::~LinePopup()
one=0L; one=0L;
} }
/* static */ LinePopup *LinePopup::message(TQWidget *tqparent, /* static */ LinePopup *LinePopup::message(TQWidget *parent,
const TQPoint &p, const TQPoint &p,
ErrorMessage *e) ErrorMessage *e)
{ {
if (one) delete one; if (one) delete one;
LinePopup *pop = new LinePopup( tqparent ); LinePopup *pop = new LinePopup( parent );
pop->setAutoDelete( true ); pop->setAutoDelete( true );
@ -321,10 +321,10 @@ LinePopup::~LinePopup()
} }
} }
PluginKateMakeView::PluginKateMakeView(TQWidget *tqparent, PluginKateMakeView::PluginKateMakeView(TQWidget *parent,
Kate::MainWindow *mainwin, Kate::MainWindow *mainwin,
const char* name) : const char* name) :
TQListView(tqparent,name), TQListView(parent,name),
KXMLGUIClient(), KXMLGUIClient(),
win(mainwin), win(mainwin),
filenameDetector(0L), filenameDetector(0L),
@ -674,7 +674,7 @@ bool PluginKateMakeView::slotValidate()
class Settings : public KDialogBase class Settings : public KDialogBase
{ {
public: public:
Settings( TQWidget *tqparent, Settings( TQWidget *parent,
const TQString &src, const TQString &bld); const TQString &src, const TQString &bld);
KLineEdit *edit_src,*edit_bld; KLineEdit *edit_src,*edit_bld;

@ -54,7 +54,7 @@ class PluginKateMakeView : public TQListView, public KXMLGUIClient
TQ_OBJECT TQ_OBJECT
public: public:
PluginKateMakeView(TQWidget *tqparent, PluginKateMakeView(TQWidget *parent,
Kate::MainWindow *mainwin, Kate::MainWindow *mainwin,
const char* name); const char* name);
virtual ~PluginKateMakeView(); virtual ~PluginKateMakeView();
@ -96,7 +96,7 @@ class PluginKateMake : public Kate::Plugin, Kate::PluginViewInterface
TQ_OBJECT TQ_OBJECT
public: public:
PluginKateMake( TQObject* tqparent = 0, const char* name = 0, const TQStringList& = TQStringList() ); PluginKateMake( TQObject* parent = 0, const char* name = 0, const TQStringList& = TQStringList() );
virtual ~PluginKateMake(); virtual ~PluginKateMake();
void addView (Kate::MainWindow *win); void addView (Kate::MainWindow *win);

@ -41,8 +41,8 @@ class PluginView : public KXMLGUIClient
K_EXPORT_COMPONENT_FACTORY( katemodelineplugin, KGenericFactory<ModelinePlugin>( "katemodeline" ) ) K_EXPORT_COMPONENT_FACTORY( katemodelineplugin, KGenericFactory<ModelinePlugin>( "katemodeline" ) )
ModelinePlugin::ModelinePlugin( TQObject* tqparent, const char* name, const TQStringList &args ) ModelinePlugin::ModelinePlugin( TQObject* parent, const char* name, const TQStringList &args )
: Kate::Plugin ( (Kate::Application *) tqparent, name ) : Kate::Plugin ( (Kate::Application *) parent, name )
{ {
} }

@ -26,7 +26,7 @@ class ModelinePlugin : public Kate::Plugin, Kate::PluginViewInterface
TQ_OBJECT TQ_OBJECT
public: public:
ModelinePlugin( TQObject* tqparent = 0, const char* name = 0, const TQStringList &args = TQStringList() ); ModelinePlugin( TQObject* parent = 0, const char* name = 0, const TQStringList &args = TQStringList() );
virtual ~ModelinePlugin(); virtual ~ModelinePlugin();
void addView (Kate::MainWindow *win); void addView (Kate::MainWindow *win);

@ -36,8 +36,8 @@ class PluginView : public KXMLGUIClient
K_EXPORT_COMPONENT_FACTORY( kateopenheaderplugin, KGenericFactory<PluginKateOpenHeader>( "kateopenheader" ) ) K_EXPORT_COMPONENT_FACTORY( kateopenheaderplugin, KGenericFactory<PluginKateOpenHeader>( "kateopenheader" ) )
PluginKateOpenHeader::PluginKateOpenHeader( TQObject* tqparent, const char* name, const TQStringList& ) PluginKateOpenHeader::PluginKateOpenHeader( TQObject* parent, const char* name, const TQStringList& )
: Kate::Plugin ( (Kate::Application *)tqparent, name ) : Kate::Plugin ( (Kate::Application *)parent, name )
{ {
} }

@ -34,7 +34,7 @@ class PluginKateOpenHeader : public Kate::Plugin, Kate::PluginViewInterface
TQ_OBJECT TQ_OBJECT
public: public:
PluginKateOpenHeader( TQObject* tqparent = 0, const char* name = 0, const TQStringList& = TQStringList() ); PluginKateOpenHeader( TQObject* parent = 0, const char* name = 0, const TQStringList& = TQStringList() );
virtual ~PluginKateOpenHeader(); virtual ~PluginKateOpenHeader();
void addView (Kate::MainWindow *win); void addView (Kate::MainWindow *win);

@ -9,8 +9,8 @@
***************************************************************************/ ***************************************************************************/
#include "csnippet.h" #include "csnippet.h"
CSnippet::CSnippet(TQString sKey, TQString sValue, TQListViewItem *lvi, TQObject *tqparent, const char *name) CSnippet::CSnippet(TQString sKey, TQString sValue, TQListViewItem *lvi, TQObject *parent, const char *name)
: TQObject(tqparent, name), _sKey(sKey), _sValue(sValue), _lvi(lvi) {} : TQObject(parent, name), _sKey(sKey), _sValue(sValue), _lvi(lvi) {}
CSnippet::~CSnippet() {} CSnippet::~CSnippet() {}

@ -23,7 +23,7 @@ class CSnippet : public TQObject {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
CSnippet(TQString sKey, TQString sValue, TQListViewItem *lvi, TQObject *tqparent = 0, const char *name = 0); CSnippet(TQString sKey, TQString sValue, TQListViewItem *lvi, TQObject *parent = 0, const char *name = 0);
~CSnippet(); ~CSnippet();
TQString getKey() { return _sKey; } TQString getKey() { return _sKey; }
TQString getValue() { return _sValue; } TQString getValue() { return _sValue; }

@ -9,8 +9,8 @@
***************************************************************************/ ***************************************************************************/
#include "cwidgetsnippets.h" #include "cwidgetsnippets.h"
CWidgetSnippets::CWidgetSnippets( TQWidget* tqparent, const char* name, WFlags fl) CWidgetSnippets::CWidgetSnippets( TQWidget* parent, const char* name, WFlags fl)
: CWidgetSnippetsBase(tqparent, name, fl) : CWidgetSnippetsBase(parent, name, fl)
{ {
} }

@ -17,7 +17,7 @@
*/ */
class CWidgetSnippets : public CWidgetSnippetsBase { class CWidgetSnippets : public CWidgetSnippetsBase {
public: public:
CWidgetSnippets( TQWidget* tqparent = 0, const char* name = 0, WFlags fl = 0 ); CWidgetSnippets( TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~CWidgetSnippets(); ~CWidgetSnippets();

@ -95,12 +95,12 @@ KatePluginSnippetsView::~ KatePluginSnippetsView() {
/** /**
* ctor KatePluginSnippets * ctor KatePluginSnippets
* @param tqparent * @param parent
* @param name * @param name
* @return * @return
*/ */
KatePluginSnippets::KatePluginSnippets( TQObject* tqparent, const char* name, const TQStringList& ) KatePluginSnippets::KatePluginSnippets( TQObject* parent, const char* name, const TQStringList& )
: Kate::Plugin ( (Kate::Application*)tqparent, name ) {} : Kate::Plugin ( (Kate::Application*)parent, name ) {}
/** /**
* dtor KatePluginSnippets * dtor KatePluginSnippets

@ -66,7 +66,7 @@ class KatePluginSnippets : public Kate::Plugin, Kate::PluginViewInterface {
TQ_OBJECT TQ_OBJECT
public: public:
KatePluginSnippets( TQObject* tqparent = 0, const char* name = 0, const TQStringList& = TQStringList() ); KatePluginSnippets( TQObject* parent = 0, const char* name = 0, const TQStringList& = TQStringList() );
virtual ~KatePluginSnippets(); virtual ~KatePluginSnippets();
void addView (Kate::MainWindow *win); void addView (Kate::MainWindow *win);

@ -73,17 +73,17 @@ KatePluginFactory::~KatePluginFactory()
} }
TQObject* KatePluginFactory::createObject( TQObject* KatePluginFactory::createObject(
TQObject* tqparent, const char* name, const char*, const TQStringList & ) TQObject* parent, const char* name, const char*, const TQStringList & )
{ {
return new KatePluginTabBarExtension( tqparent, name ); return new KatePluginTabBarExtension( parent, name );
} }
KInstance* KatePluginFactory::s_instance = 0L; KInstance* KatePluginFactory::s_instance = 0L;
// BEGIN KatePluginTabBarExtension // BEGIN KatePluginTabBarExtension
KatePluginTabBarExtension::KatePluginTabBarExtension( KatePluginTabBarExtension::KatePluginTabBarExtension(
TQObject* tqparent, const char* name ) TQObject* parent, const char* name )
: Kate::Plugin ( (Kate::Application*)tqparent, name ), : Kate::Plugin ( (Kate::Application*)parent, name ),
pConfig(new KConfig("katetabbarextensionpluginrc")) pConfig(new KConfig("katetabbarextensionpluginrc"))
{ {
pConfig->setGroup("global"); pConfig->setGroup("global");
@ -175,8 +175,8 @@ void KatePluginTabBarExtension::applyConfig( KateTabBarExtensionConfigPage* p )
// BEGIN KateTabBarButton // BEGIN KateTabBarButton
KateTabBarButton::KateTabBarButton(Kate::ViewManager* pViewManager, KateTabBarButton::KateTabBarButton(Kate::ViewManager* pViewManager,
Kate::Document *pDoc, TQWidget * tqparent, const char * name) Kate::Document *pDoc, TQWidget * parent, const char * name)
: TQPushButton(tqparent, name), : TQPushButton(parent, name),
modified(false), modified(false),
myDocID(pDoc->documentNumber()), myDocID(pDoc->documentNumber()),
doc(pDoc), doc(pDoc),
@ -264,8 +264,8 @@ void KateTabBarButton::setOn(bool on)
// BEGIN KateTabBarExtension // BEGIN KateTabBarExtension
KateTabBarExtension::KateTabBarExtension( Kate::DocumentManager *pDocManager, KateTabBarExtension::KateTabBarExtension( Kate::DocumentManager *pDocManager,
Kate::MainWindow *win, bool bHorizOrientation, bool bSort, Kate::MainWindow *win, bool bHorizOrientation, bool bSort,
TQWidget* tqparent, const char* name, WFlags f ) TQWidget* parent, const char* name, WFlags f )
: TQWidget(tqparent, name, f), : TQWidget(parent, name, f),
pCurrentTab(0), m_win(win), m_docManager(pDocManager), m_sort(false) pCurrentTab(0), m_win(win), m_docManager(pDocManager), m_sort(false)
{ {
if (bHorizOrientation) { if (bHorizOrientation) {
@ -475,7 +475,7 @@ void KateTabBarExtension::slotViewChanged ()
// BEGIN KateTabBarExtensionConfigPage // BEGIN KateTabBarExtensionConfigPage
KateTabBarExtensionConfigPage::KateTabBarExtensionConfigPage( KateTabBarExtensionConfigPage::KateTabBarExtensionConfigPage(
TQObject* /*tqparent*/ /*= 0L*/, TQWidget *parentWidget /*= 0L*/) TQObject* /*parent*/ /*= 0L*/, TQWidget *parentWidget /*= 0L*/)
: Kate::PluginConfigPage( parentWidget ) : Kate::PluginConfigPage( parentWidget )
{ {
TQVBoxLayout* top = new TQVBoxLayout(this, 0, TQVBoxLayout* top = new TQVBoxLayout(this, 0,

@ -67,7 +67,7 @@ class KatePluginFactory : public KLibFactory
KatePluginFactory(); KatePluginFactory();
virtual ~KatePluginFactory(); virtual ~KatePluginFactory();
virtual TQObject* createObject( TQObject* tqparent = 0, const char* pname = 0, virtual TQObject* createObject( TQObject* parent = 0, const char* pname = 0,
const char* name = TQOBJECT_OBJECT_NAME_STRING, const TQStringList &args = TQStringList() ); const char* name = TQOBJECT_OBJECT_NAME_STRING, const TQStringList &args = TQStringList() );
private: private:
@ -88,11 +88,11 @@ class KateTabBarButton: public TQPushButton
* constructor * constructor
* @param pViewManager pointer to kate's the view manager * @param pViewManager pointer to kate's the view manager
* @param pDoc pointer to the document, that the tab button represents * @param pDoc pointer to the document, that the tab button represents
* @param tqparent tqparent widget * @param parent parent widget
* @param name name of the tab button * @param name name of the tab button
*/ */
KateTabBarButton(Kate::ViewManager* pViewManager, Kate::Document *pDoc, KateTabBarButton(Kate::ViewManager* pViewManager, Kate::Document *pDoc,
TQWidget* tqparent = 0, const char * name = 0); TQWidget* parent = 0, const char * name = 0);
/** /**
* standard destructor (emtpy) * standard destructor (emtpy)
@ -164,13 +164,13 @@ class KateTabBarExtension : public TQWidget
* @param win pinter to the main window * @param win pinter to the main window
* @param bHorizOrientation true, if orientation is Qt::Horizontal * @param bHorizOrientation true, if orientation is Qt::Horizontal
* @param bSort true, if orientation is Qt::Horizontal * @param bSort true, if orientation is Qt::Horizontal
* @param tqparent tqparent widget * @param parent parent widget
* @param name name of widget * @param name name of widget
* @param f widget flags * @param f widget flags
*/ */
KateTabBarExtension( Kate::DocumentManager *pDocManager, KateTabBarExtension( Kate::DocumentManager *pDocManager,
Kate::MainWindow *win, bool bHorizOrientation, bool bSort, Kate::MainWindow *win, bool bHorizOrientation, bool bSort,
TQWidget * tqparent = 0, const char * name = 0, WFlags f = 0 ); TQWidget * parent = 0, const char * name = 0, WFlags f = 0 );
/** standard destructor */ /** standard destructor */
~KateTabBarExtension(); ~KateTabBarExtension();
@ -268,7 +268,7 @@ class KateTabBarExtensionConfigPage : public Kate::PluginConfigPage
friend class KatePluginTabBarExtension; friend class KatePluginTabBarExtension;
public: public:
KateTabBarExtensionConfigPage (TQObject* tqparent = 0L, TQWidget *parentWidget = 0L); KateTabBarExtensionConfigPage (TQObject* parent = 0L, TQWidget *parentWidget = 0L);
~KateTabBarExtensionConfigPage (); ~KateTabBarExtensionConfigPage ();
/** /**
@ -301,7 +301,7 @@ class KatePluginTabBarExtension : public Kate::Plugin, Kate::PluginViewInterface
TQ_OBJECT TQ_OBJECT
public: public:
KatePluginTabBarExtension( TQObject* tqparent = 0, const char* name = 0 ); KatePluginTabBarExtension( TQObject* parent = 0, const char* name = 0 );
virtual ~KatePluginTabBarExtension(); virtual ~KatePluginTabBarExtension();
void addView (Kate::MainWindow *win); void addView (Kate::MainWindow *win);

@ -44,8 +44,8 @@ class PluginView : public KXMLGUIClient
Kate::MainWindow *win; Kate::MainWindow *win;
}; };
PluginKateTextFilter::PluginKateTextFilter( TQObject* tqparent, const char* name, const TQStringList& ) PluginKateTextFilter::PluginKateTextFilter( TQObject* parent, const char* name, const TQStringList& )
: Kate::Plugin ( (Kate::Application *)tqparent, name ), : Kate::Plugin ( (Kate::Application *)parent, name ),
Kate::Command(), Kate::Command(),
m_pFilterShellProcess (NULL) m_pFilterShellProcess (NULL)
{ {

@ -36,7 +36,7 @@ class PluginKateTextFilter : public Kate::Plugin, public Kate::PluginViewInterfa
TQ_OBJECT TQ_OBJECT
public: public:
PluginKateTextFilter( TQObject* tqparent = 0, const char* name = 0, const TQStringList& = TQStringList() ); PluginKateTextFilter( TQObject* parent = 0, const char* name = 0, const TQStringList& = TQStringList() );
virtual ~PluginKateTextFilter(); virtual ~PluginKateTextFilter();
void addView (Kate::MainWindow *win); void addView (Kate::MainWindow *win);

@ -54,8 +54,8 @@
K_EXPORT_COMPONENT_FACTORY( katexmlcheckplugin, KGenericFactory<PluginKateXMLCheck>( "katexmlcheck" ) ) K_EXPORT_COMPONENT_FACTORY( katexmlcheckplugin, KGenericFactory<PluginKateXMLCheck>( "katexmlcheck" ) )
PluginKateXMLCheck::PluginKateXMLCheck( TQObject* tqparent, const char* name, const TQStringList& ) PluginKateXMLCheck::PluginKateXMLCheck( TQObject* parent, const char* name, const TQStringList& )
: Kate::Plugin ( (Kate::Application *)tqparent, name ) : Kate::Plugin ( (Kate::Application *)parent, name )
{ {
} }
@ -94,8 +94,8 @@ void PluginKateXMLCheck::removeView(Kate::MainWindow *win)
//--------------------------------- //---------------------------------
PluginKateXMLCheckView::PluginKateXMLCheckView(TQWidget *tqparent,Kate::MainWindow *mainwin,const char* name) PluginKateXMLCheckView::PluginKateXMLCheckView(TQWidget *parent,Kate::MainWindow *mainwin,const char* name)
:TQListView(tqparent,name),KXMLGUIClient(),win(mainwin) :TQListView(parent,name),KXMLGUIClient(),win(mainwin)
{ {
m_tmp_file=0; m_tmp_file=0;
m_proc=0; m_proc=0;

@ -47,7 +47,7 @@ class PluginKateXMLCheckView : public TQListView, public KXMLGUIClient
TQ_OBJECT TQ_OBJECT
public: public:
PluginKateXMLCheckView(TQWidget *tqparent,Kate::MainWindow *mainwin,const char* name); PluginKateXMLCheckView(TQWidget *parent,Kate::MainWindow *mainwin,const char* name);
virtual ~PluginKateXMLCheckView(); virtual ~PluginKateXMLCheckView();
Kate::MainWindow *win; Kate::MainWindow *win;
@ -76,7 +76,7 @@ class PluginKateXMLCheck : public Kate::Plugin, Kate::PluginViewInterface
TQ_OBJECT TQ_OBJECT
public: public:
PluginKateXMLCheck( TQObject* tqparent = 0, const char* name = 0, const TQStringList& = TQStringList() ); PluginKateXMLCheck( TQObject* parent = 0, const char* name = 0, const TQStringList& = TQStringList() );
virtual ~PluginKateXMLCheck(); virtual ~PluginKateXMLCheck();
void addView (Kate::MainWindow *win); void addView (Kate::MainWindow *win);

@ -52,7 +52,7 @@ FIXME:
TODO: TODO:
-check for mem leaks -check for mem leaks
-add "Go to opening/tqparent tag"? -add "Go to opening/parent tag"?
-check doctype to get top-level element -check doctype to get top-level element
-can undo behaviour be improved?, e.g. the plugins internal deletions of text -can undo behaviour be improved?, e.g. the plugins internal deletions of text
don't have to be an extra step don't have to be an extra step
@ -113,8 +113,8 @@ class PluginView : public KXMLGUIClient
Kate::MainWindow *win; Kate::MainWindow *win;
}; };
PluginKateXMLTools::PluginKateXMLTools( TQObject* tqparent, const char* name, const TQStringList& ) PluginKateXMLTools::PluginKateXMLTools( TQObject* parent, const char* name, const TQStringList& )
: Kate::Plugin ( (Kate::Application*)tqparent, name ) : Kate::Plugin ( (Kate::Application*)parent, name )
{ {
//kdDebug() << "PluginKateXMLTools constructor called" << endl; //kdDebug() << "PluginKateXMLTools constructor called" << endl;
@ -132,7 +132,7 @@ PluginKateXMLTools::PluginKateXMLTools( TQObject* tqparent, const char* name, co
m_dtds.setAutoDelete( true ); m_dtds.setAutoDelete( true );
m_documentManager = ((Kate::Application*)tqparent)->documentManager(); m_documentManager = ((Kate::Application*)parent)->documentManager();
// connect( m_documentManager, TQT_SIGNAL(documentCreated()), // connect( m_documentManager, TQT_SIGNAL(documentCreated()),
// this, TQT_SLOT(slotDocumentCreated()) ); // this, TQT_SLOT(slotDocumentCreated()) );
@ -283,11 +283,11 @@ void PluginKateXMLTools::keyEvent( int, int, const TQString &/*s*/ )
{ {
kdDebug() << "*outside tag -> get elements" << endl; kdDebug() << "*outside tag -> get elements" << endl;
TQString parentElement = getParentElement( *kv, true ); TQString parentElement = getParentElement( *kv, true );
kdDebug() << "tqparent: " << parentElement << endl; kdDebug() << "parent: " << parentElement << endl;
allowed = m_docDtds[docNumber]->allowedElements(parentElement ); allowed = m_docDtds[docNumber]->allowedElements(parentElement );
m_mode = elements; m_mode = elements;
} }
// TODO: optionally close tqparent tag if not left=="/>" // TODO: optionally close parent tag if not left=="/>"
else if( leftCh == " " || (isQuote(leftCh) && secondLeftCh == "=") ) else if( leftCh == " " || (isQuote(leftCh) && secondLeftCh == "=") )
{ {
// TODO: check secondLeftChar, too?! then you don't need to trigger // TODO: check secondLeftChar, too?! then you don't need to trigger
@ -603,7 +603,7 @@ void PluginKateXMLTools::slotInsertElement()
} }
/** /**
* Insert a closing tag for the nearest not-closed tqparent element. * Insert a closing tag for the nearest not-closed parent element.
*/ */
void PluginKateXMLTools::slotCloseElement() void PluginKateXMLTools::slotCloseElement()
{ {
@ -895,10 +895,10 @@ TQString PluginKateXMLTools::insideAttribute( Kate::View &kv )
} }
/** /**
* Find the tqparent element for the current cursor position. That is, * Find the parent element for the current cursor position. That is,
* go left and find the first opening element that's not closed yet, * go left and find the first opening element that's not closed yet,
* ignoring empty elements. * ignoring empty elements.
* Examples: If cursor is at "X", the correct tqparent element is "p": * Examples: If cursor is at "X", the correct parent element is "p":
* <p> <a x="xyz"> foo <i> test </i> bar </a> X * <p> <a x="xyz"> foo <i> test </i> bar </a> X
* <p> <a x="xyz"> foo bar </a> X * <p> <a x="xyz"> foo bar </a> X
* <p> foo <img/> bar X * <p> foo <img/> bar X
@ -1099,8 +1099,8 @@ TQStringList PluginKateXMLTools::sortTQStringList( TQStringList list ) {
} }
//BEGIN InsertElement dialog //BEGIN InsertElement dialog
InsertElement::InsertElement( TQWidget *tqparent, const char *name ) InsertElement::InsertElement( TQWidget *parent, const char *name )
:KDialogBase( tqparent, name, true, i18n("Insert XML Element" ), :KDialogBase( parent, name, true, i18n("Insert XML Element" ),
KDialogBase::Ok|KDialogBase::Cancel) KDialogBase::Ok|KDialogBase::Cancel)
{ {
} }

@ -53,7 +53,7 @@ class PluginKateXMLTools : public Kate::Plugin, Kate::PluginViewInterface
public: public:
PluginKateXMLTools( TQObject* tqparent = 0, const char* name = 0, const TQStringList& = TQStringList() ); PluginKateXMLTools( TQObject* parent = 0, const char* name = 0, const TQStringList& = TQStringList() );
virtual ~PluginKateXMLTools(); virtual ~PluginKateXMLTools();
void addView ( Kate::MainWindow *win ); void addView ( Kate::MainWindow *win );
void removeView( Kate::MainWindow *win ); void removeView( Kate::MainWindow *win );
@ -140,7 +140,7 @@ class InsertElement : public KDialogBase
TQ_OBJECT TQ_OBJECT
public: public:
InsertElement( TQWidget *tqparent, const char *name ); InsertElement( TQWidget *parent, const char *name );
~InsertElement(); ~InsertElement();
TQString showDialog( TQStringList &completions ); TQString showDialog( TQStringList &completions );
private slots: private slots:

@ -192,7 +192,7 @@ bool PseudoDTD::parseElements( TQDomDocument *doc, TQProgressDialog *progress )
} }
/** /**
* Check which elements are allowed inside a tqparent element. This returns * Check which elements are allowed inside a parent element. This returns
* a list of allowed elements, but it doesn't care about order or if only a certain * a list of allowed elements, but it doesn't care about order or if only a certain
* number of occurences is allowed. * number of occurences is allowed.
*/ */

@ -62,7 +62,7 @@ it should be inserted, including the trailing semicolon.
<a href="foo"> blah <em>X -- <a> inside <a> is not allowed, but this limitation is not <a href="foo"> blah <em>X -- <a> inside <a> is not allowed, but this limitation is not
part of the DTD, so the plugin will incorrectly claim that <a> is allowed at "X". part of the DTD, so the plugin will incorrectly claim that <a> is allowed at "X".
<head><title> foobar</title> X -- <title> is only allowed once, but the plugin <head><title> foobar</title> X -- <title> is only allowed once, but the plugin
only looks for the tqparent element (<head> in this case) and ignores the existing <title>. only looks for the parent element (<head> in this case) and ignores the existing <title>.
<a href="foo" X > -- an attribute may only appear once, but "href" is listed by the plugin <a href="foo" X > -- an attribute may only appear once, but "href" is listed by the plugin
although it's used already. although it's used already.
<td align = "X"> -- whitespace around '=' is not recognized although it's legal. <td align = "X"> -- whitespace around '=' is not recognized although it's legal.

@ -39,8 +39,8 @@ typedef KGenericFactory<CertPlugin> CertFactory;
K_EXPORT_COMPONENT_FACTORY(kfile_cert, CertFactory("kfile-cert")) K_EXPORT_COMPONENT_FACTORY(kfile_cert, CertFactory("kfile-cert"))
CertPlugin::CertPlugin(TQObject *tqparent, const char *name, const TQStringList &args) CertPlugin::CertPlugin(TQObject *parent, const char *name, const TQStringList &args)
: KFilePlugin(tqparent, name, args) : KFilePlugin(parent, name, args)
{ {
//add the mimetype here - example: //add the mimetype here - example:
//KFileMimeTypeInfo* info = addMimeTypeInfo( "text/html" ); //KFileMimeTypeInfo* info = addMimeTypeInfo( "text/html" );

@ -35,7 +35,7 @@ class CertPlugin: public KFilePlugin {
private: private:
void appendDNItems(KFileMetaInfoGroup &group, const TQString &DN); void appendDNItems(KFileMetaInfoGroup &group, const TQString &DN);
public: public:
CertPlugin(TQObject *tqparent, const char *name, const TQStringList& args); CertPlugin(TQObject *parent, const char *name, const TQStringList& args);
virtual bool readInfo(KFileMetaInfo& info, uint what); virtual bool readInfo(KFileMetaInfo& info, uint what);
}; };

@ -30,9 +30,9 @@ typedef KGenericFactory<KDotDesktopPlugin> DotDesktopFactory;
K_EXPORT_COMPONENT_FACTORY(kfile_desktop, DotDesktopFactory("kfile_desktop")) K_EXPORT_COMPONENT_FACTORY(kfile_desktop, DotDesktopFactory("kfile_desktop"))
KDotDesktopPlugin::KDotDesktopPlugin(TQObject *tqparent, const char *name, KDotDesktopPlugin::KDotDesktopPlugin(TQObject *parent, const char *name,
const TQStringList &preferredItems) const TQStringList &preferredItems)
: KFilePlugin(tqparent, name, preferredItems) : KFilePlugin(parent, name, preferredItems)
{ {
kdDebug(7034) << ".desktop plugin\n"; kdDebug(7034) << ".desktop plugin\n";

@ -31,7 +31,7 @@ class KDotDesktopPlugin: public KFilePlugin
TQ_OBJECT TQ_OBJECT
public: public:
KDotDesktopPlugin( TQObject *tqparent, const char *name, KDotDesktopPlugin( TQObject *parent, const char *name,
const TQStringList& args ); const TQStringList& args );
virtual bool readInfo ( KFileMetaInfo& info, uint what ); virtual bool readInfo ( KFileMetaInfo& info, uint what );

@ -30,10 +30,10 @@ typedef KGenericFactory<KFolderPlugin> KFolderFactory;
K_EXPORT_COMPONENT_FACTORY(kfile_folder, KFolderFactory( "kfile_folder" )) K_EXPORT_COMPONENT_FACTORY(kfile_folder, KFolderFactory( "kfile_folder" ))
KFolderPlugin::KFolderPlugin(TQObject *tqparent, const char *name, KFolderPlugin::KFolderPlugin(TQObject *parent, const char *name,
const TQStringList &args) const TQStringList &args)
: KFilePlugin(tqparent, name, args) : KFilePlugin(parent, name, args)
{ {
KFileMimeTypeInfo* info = addMimeTypeInfo( "inode/directory" ); KFileMimeTypeInfo* info = addMimeTypeInfo( "inode/directory" );

@ -30,7 +30,7 @@ class KFolderPlugin: public KFilePlugin
TQ_OBJECT TQ_OBJECT
public: public:
KFolderPlugin( TQObject *tqparent, const char *name, const TQStringList& args ); KFolderPlugin( TQObject *parent, const char *name, const TQStringList& args );
virtual bool readInfo( KFileMetaInfo& info, uint what); virtual bool readInfo( KFileMetaInfo& info, uint what);
}; };

@ -34,9 +34,9 @@ typedef KGenericFactory<KHtmlPlugin> HtmlFactory;
K_EXPORT_COMPONENT_FACTORY( kfile_html, HtmlFactory( "kfile_html" ) ) K_EXPORT_COMPONENT_FACTORY( kfile_html, HtmlFactory( "kfile_html" ) )
KHtmlPlugin::KHtmlPlugin( TQObject *tqparent, const char *name, KHtmlPlugin::KHtmlPlugin( TQObject *parent, const char *name,
const TQStringList &args ) const TQStringList &args )
: KFilePlugin( tqparent, name, args ) : KFilePlugin( parent, name, args )
{ {
kdDebug(7034) << "html plugin\n"; kdDebug(7034) << "html plugin\n";

@ -32,7 +32,7 @@ class KHtmlPlugin: public KFilePlugin
TQ_OBJECT TQ_OBJECT
public: public:
KHtmlPlugin( TQObject *tqparent, const char *name, const TQStringList& args ); KHtmlPlugin( TQObject *parent, const char *name, const TQStringList& args );
virtual bool readInfo( KFileMetaInfo& info, uint what ); virtual bool readInfo( KFileMetaInfo& info, uint what );
}; };

@ -35,9 +35,9 @@ K_EXPORT_COMPONENT_FACTORY(kfile_lnk, lnkFactory( "kfile_lnk" ))
//-------------------------------------------------------------------------------- //--------------------------------------------------------------------------------
lnkPlugin::lnkPlugin(TQObject *tqparent, const char *name, lnkPlugin::lnkPlugin(TQObject *parent, const char *name,
const TQStringList &args) const TQStringList &args)
: KFilePlugin(tqparent, name, args) : KFilePlugin(parent, name, args)
{ {
KFileMimeTypeInfo* info = addMimeTypeInfo( "application/x-win-lnk" ); KFileMimeTypeInfo* info = addMimeTypeInfo( "application/x-win-lnk" );

@ -38,7 +38,7 @@ class lnkPlugin: public KFilePlugin
TQ_OBJECT TQ_OBJECT
public: public:
lnkPlugin( TQObject *tqparent, const char *name, const TQStringList& args ); lnkPlugin( TQObject *parent, const char *name, const TQStringList& args );
virtual bool readInfo( KFileMetaInfo& info, uint what); virtual bool readInfo( KFileMetaInfo& info, uint what);
}; };

@ -34,9 +34,9 @@ typedef KGenericFactory<mhtmlPlugin> mhtmlFactory;
K_EXPORT_COMPONENT_FACTORY(kfile_mhtml, mhtmlFactory( "kfile_mhtml" )) K_EXPORT_COMPONENT_FACTORY(kfile_mhtml, mhtmlFactory( "kfile_mhtml" ))
mhtmlPlugin::mhtmlPlugin(TQObject *tqparent, const char *name, mhtmlPlugin::mhtmlPlugin(TQObject *parent, const char *name,
const TQStringList &args) const TQStringList &args)
: KFilePlugin(tqparent, name, args) : KFilePlugin(parent, name, args)
{ {
KFileMimeTypeInfo* info = addMimeTypeInfo( "application/x-mimearchive" ); KFileMimeTypeInfo* info = addMimeTypeInfo( "application/x-mimearchive" );
KFileMimeTypeInfo::GroupInfo* group = 0L; KFileMimeTypeInfo::GroupInfo* group = 0L;

@ -35,7 +35,7 @@ class mhtmlPlugin: public KFilePlugin
TQ_OBJECT TQ_OBJECT
public: public:
mhtmlPlugin( TQObject *tqparent, const char *name, const TQStringList& args ); mhtmlPlugin( TQObject *parent, const char *name, const TQStringList& args );
virtual bool readInfo( KFileMetaInfo& info, uint what); virtual bool readInfo( KFileMetaInfo& info, uint what);
private: private:
TQString decodeRFC2047Phrase(const TQString &msg, bool removeLessGreater=TRUE); TQString decodeRFC2047Phrase(const TQString &msg, bool removeLessGreater=TRUE);

@ -30,8 +30,8 @@ typedef KGenericFactory<KTxtPlugin> TxtFactory;
K_EXPORT_COMPONENT_FACTORY(kfile_txt, TxtFactory("kfile_txt")) K_EXPORT_COMPONENT_FACTORY(kfile_txt, TxtFactory("kfile_txt"))
KTxtPlugin::KTxtPlugin(TQObject *tqparent, const char *name, KTxtPlugin::KTxtPlugin(TQObject *parent, const char *name,
const TQStringList &args) : KFilePlugin(tqparent, name, args) const TQStringList &args) : KFilePlugin(parent, name, args)
{ {
kdDebug(7034) << "Text file meta info plugin\n"; kdDebug(7034) << "Text file meta info plugin\n";
makeMimeTypeInfo( "text/plain" ); makeMimeTypeInfo( "text/plain" );

@ -30,7 +30,7 @@ class KTxtPlugin: public KFilePlugin
TQ_OBJECT TQ_OBJECT
public: public:
KTxtPlugin(TQObject *tqparent, const char *name, const TQStringList& args); KTxtPlugin(TQObject *parent, const char *name, const TQStringList& args);
virtual bool readInfo(KFileMetaInfo& info, uint what); virtual bool readInfo(KFileMetaInfo& info, uint what);
private: private:

@ -29,8 +29,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <klocale.h> #include <klocale.h>
#include <kwin.h> #include <kwin.h>
DatePicker::DatePicker(TQWidget *tqparent, const TQDate& date) DatePicker::DatePicker(TQWidget *parent, const TQDate& date)
: TQVBox( tqparent, 0, WType_TopLevel | WDestructiveClose | : TQVBox( parent, 0, WType_TopLevel | WDestructiveClose |
WStyle_Customize | WStyle_StaysOnTop | WStyle_NoBorder ) WStyle_Customize | WStyle_StaysOnTop | WStyle_NoBorder )
{ {
setFrameStyle( TQFrame::PopupPanel | TQFrame::Raised ); setFrameStyle( TQFrame::PopupPanel | TQFrame::Raised );

@ -41,15 +41,15 @@
extern "C" extern "C"
{ {
KDE_EXPORT KPanelApplet* init( TQWidget *tqparent, const TQString& configFile ) { KDE_EXPORT KPanelApplet* init( TQWidget *parent, const TQString& configFile ) {
KGlobal::locale()->insertCatalogue( "kbinaryclock"); KGlobal::locale()->insertCatalogue( "kbinaryclock");
return new KBinaryClock( configFile, KPanelApplet::Normal, return new KBinaryClock( configFile, KPanelApplet::Normal,
KPanelApplet::Preferences, tqparent, "kbinaryclock"); KPanelApplet::Preferences, parent, "kbinaryclock");
} }
} }
KConfigDialogImp::KConfigDialogImp( TQWidget *tqparent, const char *name, KConfigSkeleton *prefs, KDialogBase::DialogType dialogType, KDialogBase::ButtonCode defaultButton, bool modal) : KConfigDialogImp::KConfigDialogImp( TQWidget *parent, const char *name, KConfigSkeleton *prefs, KDialogBase::DialogType dialogType, KDialogBase::ButtonCode defaultButton, bool modal) :
KConfigDialog(tqparent, name, prefs, dialogType,(KDialogBase::ButtonCode) (KDialogBase::Default | KDialogBase::Ok | KDialogBase::Apply | KDialogBase::Cancel ), defaultButton, modal) KConfigDialog(parent, name, prefs, dialogType,(KDialogBase::ButtonCode) (KDialogBase::Default | KDialogBase::Ok | KDialogBase::Apply | KDialogBase::Cancel ), defaultButton, modal)
{ {
// As a temporary mesure until the kicker applet's app name is set to the // As a temporary mesure until the kicker applet's app name is set to the
// applets name so KDialogBase gets the right info. // applets name so KDialogBase gets the right info.
@ -61,7 +61,7 @@ KConfigDialogImp::KConfigDialogImp( TQWidget *tqparent, const char *name, KConfi
connect(this, TQT_SIGNAL(widgetModified()), settings, TQT_SLOT(updatePreview())); connect(this, TQT_SIGNAL(widgetModified()), settings, TQT_SLOT(updatePreview()));
} }
SettingsImp::SettingsImp(TQWidget* tqparent, const char* name, WFlags fl): Settings(tqparent, name, fl){ SettingsImp::SettingsImp(TQWidget* parent, const char* name, WFlags fl): Settings(parent, name, fl){
} }
/** /**
@ -116,8 +116,8 @@ void SettingsImp::updatePreview(){
/** /**
* Constructor, create LED's * Constructor, create LED's
*/ */
KBinaryClock::KBinaryClock(const TQString& configFile, Type type, int actions, TQWidget *tqparent, const char *name) KBinaryClock::KBinaryClock(const TQString& configFile, Type type, int actions, TQWidget *parent, const char *name)
: KPanelApplet(configFile, type, actions, tqparent, name), ledWidth(6), : KPanelApplet(configFile, type, actions, parent, name), ledWidth(6),
_calendar(NULL), _disableCalendar(false), _calendar(NULL), _disableCalendar(false),
prefs( new Prefs(sharedConfig())), m_tooltip(this) prefs( new Prefs(sharedConfig())), m_tooltip(this)
{ {

@ -40,7 +40,7 @@ class SettingsImp : public Settings {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
SettingsImp(TQWidget* tqparent=0, SettingsImp(TQWidget* parent=0,
const char* name=0, const char* name=0,
WFlags fl=0); WFlags fl=0);
public slots: public slots:
@ -50,7 +50,7 @@ public slots:
class KConfigDialogImp : public KConfigDialog { class KConfigDialogImp : public KConfigDialog {
public: public:
KConfigDialogImp(TQWidget *tqparent, const char *name, KConfigDialogImp(TQWidget *parent, const char *name,
KConfigSkeleton *prefs, KConfigSkeleton *prefs,
KDialogBase::DialogType dialogType = KDialogBase::IconList, KDialogBase::DialogType dialogType = KDialogBase::IconList,
KDialogBase::ButtonCode defaultButton = Ok, KDialogBase::ButtonCode defaultButton = Ok,
@ -74,7 +74,7 @@ class KBinaryClock : public KPanelApplet {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
KBinaryClock(const TQString& configFile, Type t = Normal, int actions = 0, TQWidget *tqparent = 0, const char *name = 0); KBinaryClock(const TQString& configFile, Type t = Normal, int actions = 0, TQWidget *parent = 0, const char *name = 0);
~KBinaryClock(); ~KBinaryClock();
virtual int widthForHeight (int height) const; virtual int widthForHeight (int height) const;

@ -48,18 +48,18 @@ $Id$
// Applet initialization function // Applet initialization function
extern "C" extern "C"
{ {
KDE_EXPORT KPanelApplet* init(TQWidget *tqparent, const TQString& configFile) KDE_EXPORT KPanelApplet* init(TQWidget *parent, const TQString& configFile)
{ {
KGlobal::locale()->insertCatalogue("kolourpicker"); KGlobal::locale()->insertCatalogue("kolourpicker");
return new KolourPicker(configFile, KPanelApplet::Normal, return new KolourPicker(configFile, KPanelApplet::Normal,
KPanelApplet::About, KPanelApplet::About,
tqparent, "kolourpicker"); parent, "kolourpicker");
} }
} }
KolourPicker::KolourPicker(const TQString& configFile, Type type, KolourPicker::KolourPicker(const TQString& configFile, Type type,
int actions, TQWidget *tqparent, const char *name) int actions, TQWidget *parent, const char *name)
: KPanelApplet(configFile, type, actions, tqparent, name), : KPanelApplet(configFile, type, actions, parent, name),
m_picking(0) m_picking(0)
{ {
KAboutData *about = new KAboutData("kolourpicker", KAboutData *about = new KAboutData("kolourpicker",
@ -339,16 +339,16 @@ TQPixmap KolourPicker::colorPixmap(const TQColor &c) const
img.setPixel(x, y, tqRgba(128, 128, 128, 255)); img.setPixel(x, y, tqRgba(128, 128, 128, 255));
} }
TQBitmap tqmask(16, 16); TQBitmap mask(16, 16);
tqmask.fill(TQt::color0); mask.fill(TQt::color0);
TQPainter p(&tqmask); TQPainter p(&mask);
p.setPen(TQt::NoPen); p.setPen(TQt::NoPen);
p.setBrush(TQt::color1); p.setBrush(TQt::color1);
p.drawEllipse(0, 0, 15, 15); p.drawEllipse(0, 0, 15, 15);
p.end(); p.end();
TQPixmap pm = TQPixmap(img.smoothScale(16, 16)); TQPixmap pm = TQPixmap(img.smoothScale(16, 16));
pm.setMask(tqmask); pm.setMask(mask);
return pm; return pm;
} }

@ -37,7 +37,7 @@ class KolourPicker : public KPanelApplet
TQ_OBJECT TQ_OBJECT
public: public:
KolourPicker(const TQString& configFile, Type t = Normal, int actions = 0, KolourPicker(const TQString& configFile, Type t = Normal, int actions = 0,
TQWidget *tqparent = 0, const char *name = 0); TQWidget *parent = 0, const char *name = 0);
~KolourPicker(); ~KolourPicker();
virtual int heightForWidth(int) const; virtual int heightForWidth(int) const;
virtual int widthForHeight(int) const; virtual int widthForHeight(int) const;

@ -32,8 +32,8 @@
#include <kipc.h> #include <kipc.h>
#include <kstandarddirs.h> #include <kstandarddirs.h>
SimpleButton::SimpleButton(TQWidget *tqparent, const char *name) SimpleButton::SimpleButton(TQWidget *parent, const char *name)
: TQButton(tqparent, name), : TQButton(parent, name),
m_highlight(false), m_highlight(false),
m_orientation(Qt::Horizontal) m_orientation(Qt::Horizontal)
{ {
@ -192,8 +192,8 @@ void SimpleButton::resizeEvent( TQResizeEvent * )
} }
SimpleArrowButton::SimpleArrowButton(TQWidget *tqparent, TQt::ArrowType arrow, const char *name) SimpleArrowButton::SimpleArrowButton(TQWidget *parent, TQt::ArrowType arrow, const char *name)
: SimpleButton(tqparent, name) : SimpleButton(parent, name)
{ {
setBackgroundOrigin(AncestorOrigin); setBackgroundOrigin(AncestorOrigin);
_arrow = arrow; _arrow = arrow;

@ -32,7 +32,7 @@ class KDE_EXPORT SimpleButton : public TQButton
TQ_OBJECT TQ_OBJECT
public: public:
SimpleButton(TQWidget *tqparent, const char *name = 0); SimpleButton(TQWidget *parent, const char *name = 0);
void setPixmap(const TQPixmap &pix); void setPixmap(const TQPixmap &pix);
void setOrientation(Qt::Orientation orientaton); void setOrientation(Qt::Orientation orientaton);
TQSize tqsizeHint() const; TQSize tqsizeHint() const;
@ -67,7 +67,7 @@ class KDE_EXPORT SimpleArrowButton: public SimpleButton
TQ_OBJECT TQ_OBJECT
public: public:
SimpleArrowButton(TQWidget *tqparent = 0, TQt::ArrowType arrow = TQt::UpArrow, const char *name = 0); SimpleArrowButton(TQWidget *parent = 0, TQt::ArrowType arrow = TQt::UpArrow, const char *name = 0);
virtual ~SimpleArrowButton() {}; virtual ~SimpleArrowButton() {};
TQSize tqsizeHint() const; TQSize tqsizeHint() const;

@ -35,11 +35,11 @@
extern "C" extern "C"
{ {
KDE_EXPORT KPanelApplet* init(TQWidget *tqparent, const TQString& configFile) KDE_EXPORT KPanelApplet* init(TQWidget *parent, const TQString& configFile)
{ {
KGlobal::locale()->insertCatalogue("ktimemon"); KGlobal::locale()->insertCatalogue("ktimemon");
KTimeMon *mon = new KTimeMon(configFile, KPanelApplet::Normal, KTimeMon *mon = new KTimeMon(configFile, KPanelApplet::Normal,
KPanelApplet::Preferences, tqparent, "ktimemon"); KPanelApplet::Preferences, parent, "ktimemon");
return mon; return mon;
} }
} }
@ -185,8 +185,8 @@ void KTimeMon::maybeTip(const TQPoint& p)
// Initialise the member variables, read the configuration data base, // Initialise the member variables, read the configuration data base,
// set up the widget, and start the timer. // set up the widget, and start the timer.
KTimeMon::KTimeMon(const TQString& configFile, Type type, int actions, KTimeMon::KTimeMon(const TQString& configFile, Type type, int actions,
TQWidget *tqparent, const char *name) TQWidget *parent, const char *name)
: KPanelApplet(configFile, type, actions, tqparent, name, WRepaintNoErase), TQToolTip(this), : KPanelApplet(configFile, type, actions, parent, name, WRepaintNoErase), TQToolTip(this),
configDialog(0), bgProcess(0), configDialog(0), bgProcess(0),
kernelColour("red1"), userColour("blue"), kernelColour("red1"), userColour("blue"),
niceColour("yellow"), iowaitColour("darkgreen"), niceColour("yellow"), iowaitColour("darkgreen"),

@ -51,7 +51,7 @@ public:
enum MouseAction { NOTHING, SWITCH, MENU, COMMAND }; enum MouseAction { NOTHING, SWITCH, MENU, COMMAND };
KTimeMon(const TQString& configFile, Type t = Normal, int actions = 0, KTimeMon(const TQString& configFile, Type t = Normal, int actions = 0,
TQWidget *tqparent = 0, const char *name = 0); TQWidget *parent = 0, const char *name = 0);
virtual ~KTimeMon(); virtual ~KTimeMon();
void writeConfiguration(); // write back the configuration data void writeConfiguration(); // write back the configuration data

@ -49,16 +49,16 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
extern "C" extern "C"
{ {
KDE_EXPORT KPanelApplet* init(TQWidget *tqparent, const TQString& configFile) KDE_EXPORT KPanelApplet* init(TQWidget *parent, const TQString& configFile)
{ {
KGlobal::locale()->insertCatalogue("kmathapplet"); KGlobal::locale()->insertCatalogue("kmathapplet");
return new MathApplet(configFile, KPanelApplet::Stretch, 0, tqparent, "kmathapplet"); return new MathApplet(configFile, KPanelApplet::Stretch, 0, parent, "kmathapplet");
} }
} }
MathApplet::MathApplet(const TQString& configFile, Type type, int actions, MathApplet::MathApplet(const TQString& configFile, Type type, int actions,
TQWidget *tqparent, const char *name) TQWidget *parent, const char *name)
: KPanelApplet(configFile, type, actions, tqparent, name), : KPanelApplet(configFile, type, actions, parent, name),
m_hasFocus(false) m_hasFocus(false)
{ {
// setBackgroundMode(X11ParentRelative); // setBackgroundMode(X11ParentRelative);

@ -42,7 +42,7 @@ class MathApplet : public KPanelApplet
public: public:
MathApplet(const TQString& configFile, Type t = Stretch, int actions = 0, MathApplet(const TQString& configFile, Type t = Stretch, int actions = 0,
TQWidget *tqparent = 0, const char *name = 0); TQWidget *parent = 0, const char *name = 0);
virtual ~MathApplet(); virtual ~MathApplet();
int widthForHeight(int height) const; int widthForHeight(int height) const;

@ -19,8 +19,8 @@
#include "mcslider.h" #include "mcslider.h"
MCSlider::MCSlider( Qt::Orientation orientation, TQWidget *tqparent, const char *name ) MCSlider::MCSlider( Qt::Orientation orientation, TQWidget *parent, const char *name )
: TQSlider( orientation, tqparent, name ) : TQSlider( orientation, parent, name )
{ {
setBackgroundOrigin(WidgetOrigin); setBackgroundOrigin(WidgetOrigin);
setBackground(); setBackground();

@ -26,7 +26,7 @@ class MCSlider : public TQSlider
TQ_OBJECT TQ_OBJECT
public: public:
MCSlider( Qt::Orientation orientation, TQWidget *tqparent, const char *name = 0 ); MCSlider( Qt::Orientation orientation, TQWidget *parent, const char *name = 0 );
~MCSlider(); ~MCSlider();
void setBackground(); void setBackground();
private: private:

@ -57,12 +57,12 @@ const int NO_BUTTONS = 4;
extern "C" extern "C"
{ {
KDE_EXPORT KPanelApplet *init( TQWidget *tqparent, const TQString &configFile) KDE_EXPORT KPanelApplet *init( TQWidget *parent, const TQString &configFile)
{ {
KGlobal::locale()->insertCatalogue("mediacontrol"); KGlobal::locale()->insertCatalogue("mediacontrol");
return new MediaControl(configFile, KPanelApplet::Normal, return new MediaControl(configFile, KPanelApplet::Normal,
KPanelApplet::About | KPanelApplet::Preferences | KPanelApplet::About | KPanelApplet::Preferences |
KPanelApplet::ReportBug, tqparent, "mediacontrol"); KPanelApplet::ReportBug, parent, "mediacontrol");
} }
} }
@ -91,9 +91,9 @@ class MediaControlToolTip : public TQToolTip
// ============================================================================= // =============================================================================
MediaControl::MediaControl(const TQString &configFile, Type t, int actions, MediaControl::MediaControl(const TQString &configFile, Type t, int actions,
TQWidget *tqparent, const char *name) TQWidget *parent, const char *name)
: DCOPObject("MediaControl"), : DCOPObject("MediaControl"),
KPanelApplet(configFile, t, actions, tqparent, name), KPanelApplet(configFile, t, actions, parent, name),
mInstance(new KInstance("mediacontrol")), mInstance(new KInstance("mediacontrol")),
mAboutData(new KAboutData("mediacontrol", mAboutData(new KAboutData("mediacontrol",
I18N_NOOP("MediaControl"), I18N_NOOP("MediaControl"),
@ -600,8 +600,8 @@ void MediaControl::resizeEvent( TQResizeEvent* )
// Our Button ======================================================================== // Our Button ========================================================================
TrayButton::TrayButton(TQWidget* tqparent, const char* name) TrayButton::TrayButton(TQWidget* parent, const char* name)
: SimpleButton (tqparent, name) : SimpleButton (parent, name)
{ {
setBackgroundMode(PaletteBackground); setBackgroundMode(PaletteBackground);
setBackgroundOrigin(AncestorOrigin); setBackgroundOrigin(AncestorOrigin);

@ -56,7 +56,7 @@ class TrayButton : public SimpleButton
TQ_OBJECT TQ_OBJECT
public: public:
TrayButton(TQWidget* tqparent, const char* name); TrayButton(TQWidget* parent, const char* name);
virtual ~TrayButton() {} virtual ~TrayButton() {}
void setIconSet(const TQIconSet &iconSet); void setIconSet(const TQIconSet &iconSet);
}; };

@ -42,8 +42,8 @@
#include <knuminput.h> #include <knuminput.h>
#include <kstandarddirs.h> #include <kstandarddirs.h>
MediaControlConfig::MediaControlConfig( ConfigFrontend *cfg, TQWidget *tqparent, const char* name) MediaControlConfig::MediaControlConfig( ConfigFrontend *cfg, TQWidget *parent, const char* name)
: KDialogBase( tqparent, name, false, i18n("MediaControl"), Ok | Apply | Cancel, Ok, false ) : KDialogBase( parent, name, false, i18n("MediaControl"), Ok | Apply | Cancel, Ok, false )
{ {
_configFrontend = cfg; _configFrontend = cfg;
if (!_configFrontend) // emergency!!! if (!_configFrontend) // emergency!!!

@ -30,7 +30,7 @@ class MediaControlConfig: public KDialogBase
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
MediaControlConfig(ConfigFrontend *cfg, TQWidget *tqparent = 0, const char* name = "MediaControlConfig"); MediaControlConfig(ConfigFrontend *cfg, TQWidget *parent = 0, const char* name = "MediaControlConfig");
void readSkinDir(const TQString &dir); void readSkinDir(const TQString &dir);
void load(); void load();

@ -32,8 +32,8 @@
#include <kipc.h> #include <kipc.h>
#include <kstandarddirs.h> #include <kstandarddirs.h>
SimpleButton::SimpleButton(TQWidget *tqparent, const char *name) SimpleButton::SimpleButton(TQWidget *parent, const char *name)
: TQButton(tqparent, name), : TQButton(parent, name),
m_highlight(false), m_highlight(false),
m_orientation(Qt::Horizontal) m_orientation(Qt::Horizontal)
{ {
@ -192,8 +192,8 @@ void SimpleButton::resizeEvent( TQResizeEvent * )
} }
SimpleArrowButton::SimpleArrowButton(TQWidget *tqparent, TQt::ArrowType arrow, const char *name) SimpleArrowButton::SimpleArrowButton(TQWidget *parent, TQt::ArrowType arrow, const char *name)
: SimpleButton(tqparent, name) : SimpleButton(parent, name)
{ {
setBackgroundOrigin(AncestorOrigin); setBackgroundOrigin(AncestorOrigin);
_arrow = arrow; _arrow = arrow;

@ -32,7 +32,7 @@ class KDE_EXPORT SimpleButton : public TQButton
TQ_OBJECT TQ_OBJECT
public: public:
SimpleButton(TQWidget *tqparent, const char *name = 0); SimpleButton(TQWidget *parent, const char *name = 0);
void setPixmap(const TQPixmap &pix); void setPixmap(const TQPixmap &pix);
void setOrientation(Qt::Orientation orientaton); void setOrientation(Qt::Orientation orientaton);
TQSize tqsizeHint() const; TQSize tqsizeHint() const;
@ -67,7 +67,7 @@ class KDE_EXPORT SimpleArrowButton: public SimpleButton
TQ_OBJECT TQ_OBJECT
public: public:
SimpleArrowButton(TQWidget *tqparent = 0, TQt::ArrowType arrow = TQt::UpArrow, const char *name = 0); SimpleArrowButton(TQWidget *parent = 0, TQt::ArrowType arrow = TQt::UpArrow, const char *name = 0);
virtual ~SimpleArrowButton() {}; virtual ~SimpleArrowButton() {};
TQSize tqsizeHint() const; TQSize tqsizeHint() const;

@ -56,11 +56,11 @@ using namespace DOM;
typedef KGenericFactory<AdBlock> AdBlockFactory; typedef KGenericFactory<AdBlock> AdBlockFactory;
K_EXPORT_COMPONENT_FACTORY( libadblock, AdBlockFactory( "adblock" ) ) K_EXPORT_COMPONENT_FACTORY( libadblock, AdBlockFactory( "adblock" ) )
AdBlock::AdBlock(TQObject *tqparent, const char *name, const TQStringList &) : AdBlock::AdBlock(TQObject *parent, const char *name, const TQStringList &) :
KParts::Plugin(tqparent, name), KParts::Plugin(parent, name),
m_label(0), m_menu(0) m_label(0), m_menu(0)
{ {
m_part = dynamic_cast<KHTMLPart *>(tqparent); m_part = dynamic_cast<KHTMLPart *>(parent);
if(!m_part) { kdDebug() << "couldn't get KHTMLPart" << endl; return; } if(!m_part) { kdDebug() << "couldn't get KHTMLPart" << endl; return; }
m_menu = new KPopupMenu(m_part->widget()); m_menu = new KPopupMenu(m_part->widget());

@ -49,7 +49,7 @@ class AdBlock : public KParts::Plugin
TQ_OBJECT TQ_OBJECT
public: public:
AdBlock(TQObject *tqparent, const char *name, const TQStringList &); AdBlock(TQObject *parent, const char *name, const TQStringList &);
~AdBlock(); ~AdBlock();
private: private:

@ -32,8 +32,8 @@
#include <tqfont.h> #include <tqfont.h>
#include <tqpainter.h> #include <tqpainter.h>
AdBlockDlg::AdBlockDlg(TQWidget *tqparent, AdElementList &elements) : AdBlockDlg::AdBlockDlg(TQWidget *parent, AdElementList &elements) :
KDialogBase( tqparent, "Adblock dialogue", true, "Adblock - able Items", Ok|Cancel, Ok, true ) KDialogBase( parent, "Adblock dialogue", true, "Adblock - able Items", Ok|Cancel, Ok, true )
{ {
TQVBox *page = makeVBoxMainWidget(); TQVBox *page = makeVBoxMainWidget();
m_label1 = new TQLabel( i18n("All blockable items in this page:"), page, "label1" ); m_label1 = new TQLabel( i18n("All blockable items in this page:"), page, "label1" );

@ -40,7 +40,7 @@ private:
KPopupMenu *m_menu; KPopupMenu *m_menu;
public: public:
AdBlockDlg(TQWidget *tqparent, AdElementList &elements); AdBlockDlg(TQWidget *parent, AdElementList &elements);
~AdBlockDlg(); ~AdBlockDlg();
private slots: private slots:

@ -65,8 +65,8 @@ AkregatorMenu::AkregatorMenu( KonqPopupMenu * popupmenu, const char *name, const
KHTMLView* view = 0L; KHTMLView* view = 0L;
if (popupmenu && popupmenu->tqparent() && popupmenu->tqparent()->inherits("KHTMLView")) if (popupmenu && popupmenu->parent() && popupmenu->parent()->inherits("KHTMLView"))
view = static_cast<KHTMLView*>(TQT_TQWIDGET(popupmenu->tqparent())); view = static_cast<KHTMLView*>(TQT_TQWIDGET(popupmenu->parent()));
if (view) if (view)
m_part = view->part(); m_part = view->part();

@ -55,12 +55,12 @@ typedef KGenericFactory<KonqFeedIcon> KonqFeedIconFactory;
K_EXPORT_COMPONENT_FACTORY(libakregatorkonqfeedicon, K_EXPORT_COMPONENT_FACTORY(libakregatorkonqfeedicon,
KonqFeedIconFactory("akregatorkonqfeedicon")) KonqFeedIconFactory("akregatorkonqfeedicon"))
KonqFeedIcon::KonqFeedIcon(TQObject *tqparent, const char *name, const TQStringList &) KonqFeedIcon::KonqFeedIcon(TQObject *parent, const char *name, const TQStringList &)
: KParts::Plugin(tqparent, name), PluginBase(), m_part(0), m_feedIcon(0), m_statusBarEx(0), m_menu(0) : KParts::Plugin(parent, name), PluginBase(), m_part(0), m_feedIcon(0), m_statusBarEx(0), m_menu(0)
{ {
KGlobal::locale()->insertCatalogue("akregator_konqplugin"); KGlobal::locale()->insertCatalogue("akregator_konqplugin");
m_part = dynamic_cast<KHTMLPart*>(tqparent); m_part = dynamic_cast<KHTMLPart*>(parent);
if(!m_part) { kdDebug() << "couldn't get part" << endl; return; } if(!m_part) { kdDebug() << "couldn't get part" << endl; return; }
// FIXME: need to do this because of a bug in khtmlpart, it's fixed now for 3.4 (and prolly backported for 3.3.3?) // FIXME: need to do this because of a bug in khtmlpart, it's fixed now for 3.4 (and prolly backported for 3.3.3?)
//connect(m_part->view(), TQT_SIGNAL(finishedLayout()), this, TQT_SLOT(addFeedIcon())); //connect(m_part->view(), TQT_SIGNAL(finishedLayout()), this, TQT_SLOT(addFeedIcon()));

@ -48,7 +48,7 @@ class KonqFeedIcon : public KParts::Plugin, PluginBase
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
KonqFeedIcon(TQObject *tqparent, const char *name, const TQStringList &); KonqFeedIcon(TQObject *parent, const char *name, const TQStringList &);
~KonqFeedIcon(); ~KonqFeedIcon();

@ -16,8 +16,8 @@
#include <tqtimer.h> #include <tqtimer.h>
#include <kgenericfactory.h> #include <kgenericfactory.h>
AutoRefresh::AutoRefresh( TQObject* tqparent, const char* name, const TQStringList & /*args*/ ) AutoRefresh::AutoRefresh( TQObject* parent, const char* name, const TQStringList & /*args*/ )
: Plugin( tqparent, name ) : Plugin( parent, name )
{ {
timer = new TQTimer( this ); timer = new TQTimer( this );
connect( timer, TQT_SIGNAL( timeout() ), this, TQT_SLOT( slotRefresh() ) ); connect( timer, TQT_SIGNAL( timeout() ), this, TQT_SLOT( slotRefresh() ) );
@ -85,7 +85,7 @@ void AutoRefresh::slotIntervalChanged()
void AutoRefresh::slotRefresh() void AutoRefresh::slotRefresh()
{ {
if ( !tqparent()->inherits("KParts::ReadOnlyPart") ) { if ( !parent()->inherits("KParts::ReadOnlyPart") ) {
TQString title = i18n( "Cannot Refresh Source" ); TQString title = i18n( "Cannot Refresh Source" );
TQString text = i18n( "<qt>This plugin cannot auto-refresh the current part.</qt>" ); TQString text = i18n( "<qt>This plugin cannot auto-refresh the current part.</qt>" );
@ -93,7 +93,7 @@ void AutoRefresh::slotRefresh()
} }
else else
{ {
KParts::ReadOnlyPart *part = (KParts::ReadOnlyPart *) tqparent(); KParts::ReadOnlyPart *part = (KParts::ReadOnlyPart *) parent();
// Get URL // Get URL
KURL url = part->url(); KURL url = part->url();

@ -37,7 +37,7 @@ public:
/** /**
* Construct a new KParts plugin. * Construct a new KParts plugin.
*/ */
AutoRefresh( TQObject* tqparent = 0, const char* name = 0, const TQStringList &args = TQStringList() ); AutoRefresh( TQObject* parent = 0, const char* name = 0, const TQStringList &args = TQStringList() );
/** /**
* Destructor. * Destructor.

@ -34,9 +34,9 @@ typedef KGenericFactory<PluginBabelFish> BabelFishFactory;
static const KAboutData aboutdata("babelfish", I18N_NOOP("Translate Web Page") , "1.0" ); static const KAboutData aboutdata("babelfish", I18N_NOOP("Translate Web Page") , "1.0" );
K_EXPORT_COMPONENT_FACTORY( libbabelfishplugin, BabelFishFactory( &aboutdata ) ) K_EXPORT_COMPONENT_FACTORY( libbabelfishplugin, BabelFishFactory( &aboutdata ) )
PluginBabelFish::PluginBabelFish( TQObject* tqparent, const char* name, PluginBabelFish::PluginBabelFish( TQObject* parent, const char* name,
const TQStringList & ) const TQStringList & )
: Plugin( tqparent, name ) : Plugin( parent, name )
{ {
setInstance(BabelFishFactory::instance()); setInstance(BabelFishFactory::instance());
@ -178,9 +178,9 @@ PluginBabelFish::PluginBabelFish( TQObject* tqparent, const char* name,
m_menu->setEnabled( true ); m_menu->setEnabled( true );
// TODO: we could also support plain text viewers... // TODO: we could also support plain text viewers...
if ( tqparent && tqparent->inherits( "KHTMLPart" ) ) if ( parent && parent->inherits( "KHTMLPart" ) )
{ {
KParts::ReadOnlyPart* part = static_cast<KParts::ReadOnlyPart *>(tqparent); KParts::ReadOnlyPart* part = static_cast<KParts::ReadOnlyPart *>(parent);
connect( part, TQT_SIGNAL(started(KIO::Job*)), this, connect( part, TQT_SIGNAL(started(KIO::Job*)), this,
TQT_SLOT(slotStarted(KIO::Job*)) ); TQT_SLOT(slotStarted(KIO::Job*)) );
} }
@ -193,9 +193,9 @@ PluginBabelFish::~PluginBabelFish()
void PluginBabelFish::slotStarted( KIO::Job* ) void PluginBabelFish::slotStarted( KIO::Job* )
{ {
if ( tqparent()->inherits("KHTMLPart") && if ( parent()->inherits("KHTMLPart") &&
// Babelfish wants http URLs only. No https. // Babelfish wants http URLs only. No https.
static_cast<KParts::ReadOnlyPart *>(tqparent())->url().protocol().lower() == "http" ) static_cast<KParts::ReadOnlyPart *>(parent())->url().protocol().lower() == "http" )
{ {
m_menu->setEnabled( true ); m_menu->setEnabled( true );
} }
@ -211,8 +211,8 @@ void PluginBabelFish::translateURL()
if ( !sender() ) if ( !sender() )
return; return;
// The tqparent is assumed to be a KHTMLPart // The parent is assumed to be a KHTMLPart
if ( !tqparent()->inherits("KHTMLPart") ) if ( !parent()->inherits("KHTMLPart") )
{ {
TQString title = i18n( "Cannot Translate Source" ); TQString title = i18n( "Cannot Translate Source" );
TQString text = i18n( "Only web pages can be translated using " TQString text = i18n( "Only web pages can be translated using "
@ -227,7 +227,7 @@ void PluginBabelFish::translateURL()
TQString engine = cfg.readEntry( TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name(), "babelfish" ); TQString engine = cfg.readEntry( TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name(), "babelfish" );
// Get URL // Get URL
KHTMLPart *part = dynamic_cast<KHTMLPart *>(tqparent()); KHTMLPart *part = dynamic_cast<KHTMLPart *>(parent());
if ( !part ) if ( !part )
return; return;

@ -30,7 +30,7 @@ class PluginBabelFish : public KParts::Plugin
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
PluginBabelFish( TQObject* tqparent, const char* name, PluginBabelFish( TQObject* parent, const char* name,
const TQStringList & ); const TQStringList & );
virtual ~PluginBabelFish(); virtual ~PluginBabelFish();

@ -37,10 +37,10 @@
typedef KGenericFactory<CrashesPlugin> CrashesPluginFactory; typedef KGenericFactory<CrashesPlugin> CrashesPluginFactory;
K_EXPORT_COMPONENT_FACTORY( libcrashesplugin, CrashesPluginFactory( "crashesplugin" ) ) K_EXPORT_COMPONENT_FACTORY( libcrashesplugin, CrashesPluginFactory( "crashesplugin" ) )
CrashesPlugin::CrashesPlugin( TQObject* tqparent, const char* name, const TQStringList & ) CrashesPlugin::CrashesPlugin( TQObject* parent, const char* name, const TQStringList & )
: KParts::Plugin( tqparent, name ) : KParts::Plugin( parent, name )
{ {
m_part = (tqparent && tqparent->inherits( "KHTMLPart" )) ? static_cast<KHTMLPart*>(tqparent) : 0L; m_part = (parent && parent->inherits( "KHTMLPart" )) ? static_cast<KHTMLPart*>(parent) : 0L;
m_pCrashesMenu = new KActionMenu( i18n("&Crashes"), "core", m_pCrashesMenu = new KActionMenu( i18n("&Crashes"), "core",
actionCollection(), "crashes" ); actionCollection(), "crashes" );

@ -38,7 +38,7 @@ class CrashesPlugin : public KParts::Plugin
TQ_OBJECT TQ_OBJECT
public: public:
CrashesPlugin( TQObject* tqparent, const char* name, CrashesPlugin( TQObject* parent, const char* name,
const TQStringList & ); const TQStringList & );
~CrashesPlugin(); ~CrashesPlugin();

@ -141,14 +141,14 @@ void SessionManager::loadSettings()
DirFilterPlugin::DirFilterPlugin (TQObject* tqparent, const char* name, DirFilterPlugin::DirFilterPlugin (TQObject* parent, const char* name,
const TQStringList&) const TQStringList&)
:KParts::Plugin (tqparent, name), :KParts::Plugin (parent, name),
m_pFilterMenu(0), m_pFilterMenu(0),
m_searchWidget(0), m_searchWidget(0),
m_oldFilterString("") m_oldFilterString("")
{ {
m_part = ::tqqt_cast<KonqDirPart*>(tqparent); m_part = ::tqqt_cast<KonqDirPart*>(parent);
if ( !m_part || !m_part->scrollWidget() ) if ( !m_part || !m_part->scrollWidget() )
return; return;

@ -85,7 +85,7 @@ class DirFilterPlugin : public KParts::Plugin
public: public:
DirFilterPlugin (TQObject* tqparent, const char* name, const TQStringList &); DirFilterPlugin (TQObject* parent, const char* name, const TQStringList &);
~DirFilterPlugin (); ~DirFilterPlugin ();
protected: protected:

@ -23,26 +23,26 @@
#include <kglobalsettings.h> #include <kglobalsettings.h>
DOMListViewItem::DOMListViewItem( const DOM::Node &node, TQListView *tqparent ) DOMListViewItem::DOMListViewItem( const DOM::Node &node, TQListView *parent )
: TQListViewItem( tqparent ), m_node(node) : TQListViewItem( parent ), m_node(node)
{ {
init(); init();
} }
DOMListViewItem::DOMListViewItem( const DOM::Node &node, TQListView *tqparent, TQListViewItem *after) DOMListViewItem::DOMListViewItem( const DOM::Node &node, TQListView *parent, TQListViewItem *after)
: TQListViewItem( tqparent, after ), m_node(node) : TQListViewItem( parent, after ), m_node(node)
{ {
init(); init();
} }
DOMListViewItem::DOMListViewItem( const DOM::Node &node, TQListViewItem *tqparent ) DOMListViewItem::DOMListViewItem( const DOM::Node &node, TQListViewItem *parent )
: TQListViewItem( tqparent ), m_node(node) : TQListViewItem( parent ), m_node(node)
{ {
init(); init();
} }
DOMListViewItem::DOMListViewItem( const DOM::Node &node, TQListViewItem *tqparent, TQListViewItem *after) DOMListViewItem::DOMListViewItem( const DOM::Node &node, TQListViewItem *parent, TQListViewItem *after)
: TQListViewItem( tqparent, after ), m_node(node) : TQListViewItem( parent, after ), m_node(node)
{ {
init(); init();
} }

@ -26,10 +26,10 @@ class DOMListViewItem : public TQListViewItem
{ {
public: public:
DOMListViewItem( const DOM::Node &, TQListView *tqparent ); DOMListViewItem( const DOM::Node &, TQListView *parent );
DOMListViewItem( const DOM::Node &, TQListView *tqparent, TQListViewItem *after ); DOMListViewItem( const DOM::Node &, TQListView *parent, TQListViewItem *after );
DOMListViewItem( const DOM::Node &, TQListViewItem *tqparent ); DOMListViewItem( const DOM::Node &, TQListViewItem *parent );
DOMListViewItem( const DOM::Node &, TQListViewItem *tqparent, TQListViewItem *after ); DOMListViewItem( const DOM::Node &, TQListViewItem *parent, TQListViewItem *after );
virtual ~DOMListViewItem(); virtual ~DOMListViewItem();
virtual void paintCell( TQPainter *p, const TQColorGroup &cg, virtual void paintCell( TQPainter *p, const TQColorGroup &cg,

@ -423,8 +423,8 @@ TQString ChangeCDataCommand::name() const
// == ManipulateNodeCommand =========================================== // == ManipulateNodeCommand ===========================================
ManipulateNodeCommand::ManipulateNodeCommand(const DOM::Node &node, const DOM::Node &tqparent, const DOM::Node &after) ManipulateNodeCommand::ManipulateNodeCommand(const DOM::Node &node, const DOM::Node &parent, const DOM::Node &after)
: _node(node), _parent(tqparent), _after(after) : _node(node), _parent(parent), _after(after)
{ {
} }
@ -457,8 +457,8 @@ void ManipulateNodeCommand::remove()
// == InsertNodeCommand =========================================== // == InsertNodeCommand ===========================================
InsertNodeCommand::InsertNodeCommand(const DOM::Node &node, const DOM::Node &tqparent, const DOM::Node &after) InsertNodeCommand::InsertNodeCommand(const DOM::Node &node, const DOM::Node &parent, const DOM::Node &after)
: ManipulateNodeCommand(node, tqparent, after) : ManipulateNodeCommand(node, parent, after)
{ {
} }
@ -485,8 +485,8 @@ TQString InsertNodeCommand::name() const
// == RemoveNodeCommand =========================================== // == RemoveNodeCommand ===========================================
RemoveNodeCommand::RemoveNodeCommand(const DOM::Node &node, const DOM::Node &tqparent, const DOM::Node &after) RemoveNodeCommand::RemoveNodeCommand(const DOM::Node &node, const DOM::Node &parent, const DOM::Node &after)
: ManipulateNodeCommand(node, tqparent, after) : ManipulateNodeCommand(node, parent, after)
{ {
} }
@ -513,8 +513,8 @@ TQString RemoveNodeCommand::name() const
// == MoveNodeCommand =========================================== // == MoveNodeCommand ===========================================
MoveNodeCommand::MoveNodeCommand(const DOM::Node &node, const DOM::Node &tqparent, const DOM::Node &after) MoveNodeCommand::MoveNodeCommand(const DOM::Node &node, const DOM::Node &parent, const DOM::Node &after)
: _node(node), new_parent(tqparent), new_after(after) : _node(node), new_parent(parent), new_after(after)
{ {
old_parent = node.parentNode(); old_parent = node.parentNode();
old_after = node.nextSibling(); old_after = node.nextSibling();

@ -277,10 +277,10 @@ class ManipulateNodeCommand : public ManipulationCommand
{ {
public: public:
/** /**
* Prepare command, where \c node is to be contained in \c tqparent, just * Prepare command, where \c node is to be contained in \c parent, just
* before \c after. If \c after is 0, it is appended at the end. * before \c after. If \c after is 0, it is appended at the end.
*/ */
ManipulateNodeCommand(const DOM::Node &node, const DOM::Node &tqparent, const DOM::Node &after); ManipulateNodeCommand(const DOM::Node &node, const DOM::Node &parent, const DOM::Node &after);
virtual ~ManipulateNodeCommand(); virtual ~ManipulateNodeCommand();
protected: protected:
@ -304,10 +304,10 @@ class InsertNodeCommand : public ManipulateNodeCommand
{ {
public: public:
/** /**
* Prepare insertion command, inserting \c node into \c tqparent, just * Prepare insertion command, inserting \c node into \c parent, just
* before \c after. If \c after is 0, append it to the list of tqchildren. * before \c after. If \c after is 0, append it to the list of tqchildren.
*/ */
InsertNodeCommand(const DOM::Node &node, const DOM::Node &tqparent, const DOM::Node &after); InsertNodeCommand(const DOM::Node &node, const DOM::Node &parent, const DOM::Node &after);
virtual ~InsertNodeCommand(); virtual ~InsertNodeCommand();
virtual TQString name() const; virtual TQString name() const;
@ -330,10 +330,10 @@ class RemoveNodeCommand : public ManipulateNodeCommand
{ {
public: public:
/** /**
* Prepare insertion command, inserting \c node into \c tqparent, just * Prepare insertion command, inserting \c node into \c parent, just
* before \c after. If \c after is 0, append it to the list of tqchildren. * before \c after. If \c after is 0, append it to the list of tqchildren.
*/ */
RemoveNodeCommand(const DOM::Node &node, const DOM::Node &tqparent, const DOM::Node &after); RemoveNodeCommand(const DOM::Node &node, const DOM::Node &parent, const DOM::Node &after);
virtual ~RemoveNodeCommand(); virtual ~RemoveNodeCommand();
virtual TQString name() const; virtual TQString name() const;
@ -353,10 +353,10 @@ class MoveNodeCommand : public ManipulationCommand
{ {
public: public:
/** /**
* Move \c node from current position into \c tqparent, just before \c after. * Move \c node from current position into \c parent, just before \c after.
* Appends if \c after is 0. * Appends if \c after is 0.
*/ */
MoveNodeCommand(const DOM::Node &node, const DOM::Node &tqparent, const DOM::Node &after); MoveNodeCommand(const DOM::Node &node, const DOM::Node &parent, const DOM::Node &after);
virtual ~MoveNodeCommand(); virtual ~MoveNodeCommand();
virtual TQString name() const; virtual TQString name() const;

@ -64,8 +64,8 @@
using namespace domtreeviewer; using namespace domtreeviewer;
DOMTreeView::DOMTreeView(TQWidget *tqparent, const char* name, bool /*allowSaving*/) DOMTreeView::DOMTreeView(TQWidget *parent, const char* name, bool /*allowSaving*/)
: DOMTreeViewBase(tqparent, name), m_expansionDepth(5), m_maxDepth(0), : DOMTreeViewBase(parent, name), m_expansionDepth(5), m_maxDepth(0),
m_bPure(true), m_bShowAttributes(true), m_bHighlightHTML(true), m_bPure(true), m_bShowAttributes(true), m_bHighlightHTML(true),
m_findDialog(0), focused_child(0) m_findDialog(0), focused_child(0)
{ {
@ -318,13 +318,13 @@ void DOMTreeView::addElement ( const DOM::Node &node, DOMListViewItem *cur_item
m_itemdict.insert(node.handle(), cur_item); m_itemdict.insert(node.handle(), cur_item);
} }
DOMListViewItem *tqparent; DOMListViewItem *parent;
if (cur_item->tqparent()) { if (cur_item->parent()) {
tqparent = static_cast<DOMListViewItem *>(cur_item->tqparent()); parent = static_cast<DOMListViewItem *>(cur_item->parent());
} else { } else {
tqparent = cur_item; parent = cur_item;
} }
cur_item = new DOMListViewItem(node, tqparent, cur_item); cur_item = new DOMListViewItem(node, parent, cur_item);
} }
// This is one is too much // This is one is too much
DOMListViewItem *notLastItem = static_cast<DOMListViewItem *>(cur_item->itemAbove()); DOMListViewItem *notLastItem = static_cast<DOMListViewItem *>(cur_item->itemAbove());
@ -469,13 +469,13 @@ void DOMTreeView::slotMovedItems(TQPtrList<TQListViewItem> &items, TQPtrList<TQL
for (; it != items.end(); ++it, ++anit) { for (; it != items.end(); ++it, ++anit) {
DOMListViewItem *item = static_cast<DOMListViewItem *>(*it); DOMListViewItem *item = static_cast<DOMListViewItem *>(*it);
DOMListViewItem *anitem = static_cast<DOMListViewItem *>(*anit); DOMListViewItem *anitem = static_cast<DOMListViewItem *>(*anit);
DOM::Node tqparent = static_cast<DOMListViewItem *>(item->tqparent())->node(); DOM::Node parent = static_cast<DOMListViewItem *>(item->parent())->node();
Q_ASSERT(!tqparent.isNull()); Q_ASSERT(!parent.isNull());
// kdDebug(90180) << " afternow " << anitem << " node " << (anitem ? anitem->node().nodeName().string() : TQString()) << "=" << (anitem ? anitem->node().nodeValue().string() : TQString()) << endl; // kdDebug(90180) << " afternow " << anitem << " node " << (anitem ? anitem->node().nodeName().string() : TQString()) << "=" << (anitem ? anitem->node().nodeValue().string() : TQString()) << endl;
cmd->addCommand(new MoveNodeCommand(item->node(), tqparent, cmd->addCommand(new MoveNodeCommand(item->node(), parent,
anitem ? anitem->node().nextSibling() : tqparent.firstChild()) anitem ? anitem->node().nextSibling() : parent.firstChild())
); );
} }
@ -720,8 +720,8 @@ void DOMTreeView::hideMessageLine()
void DOMTreeView::moveToParent() void DOMTreeView::moveToParent()
{ {
// This is a hypersmart algorithm. // This is a hypersmart algorithm.
// If infoNode is defined, go to the tqparent of infoNode, otherwise, go // If infoNode is defined, go to the parent of infoNode, otherwise, go
// to the tqparent of the tree view's current item. // to the parent of the tree view's current item.
// Hope this isn't too smart. // Hope this isn't too smart.
DOM::Node cur = infoNode; DOM::Node cur = infoNode;
@ -773,15 +773,15 @@ void DOMTreeView::deleteNodes()
// don't regard node more than once // don't regard node more than once
if (item->node() == last) continue; if (item->node() == last) continue;
// check for selected tqparent // check for selected parent
bool has_selected_parent = false; bool has_selected_parent = false;
for (TQListViewItem *p = item->tqparent(); p; p = p->tqparent()) { for (TQListViewItem *p = item->parent(); p; p = p->parent()) {
if (p->isSelected()) { has_selected_parent = true; break; } if (p->isSelected()) { has_selected_parent = true; break; }
} }
if (has_selected_parent) continue; if (has_selected_parent) continue;
// kdDebug(90180) << " item->node " << item->node().nodeName().string() << ": schedule for removal" << endl; // kdDebug(90180) << " item->node " << item->node().nodeName().string() << ": schedule for removal" << endl;
// remove this node if it isn't already recursively removed by its tqparent // remove this node if it isn't already recursively removed by its parent
cmd->addCommand(new RemoveNodeCommand(item->node(), item->node().parentNode(), item->node().nextSibling())); cmd->addCommand(new RemoveNodeCommand(item->node(), item->node().parentNode(), item->node().nextSibling()));
last = item->node(); last = item->node();
} }
@ -885,13 +885,13 @@ void DOMTreeView::slotAddElementDlg()
DOM::Node curNode = item->node(); DOM::Node curNode = item->node();
try { try {
DOM::Node tqparent = addBefore() ? curNode.parentNode() : curNode; DOM::Node parent = addBefore() ? curNode.parentNode() : curNode;
DOM::Node after = addBefore() ? curNode : 0; DOM::Node after = addBefore() ? curNode : 0;
// ### take namespace into account // ### take namespace into account
DOM::Node newNode = curNode.ownerDocument().createElement(qname); DOM::Node newNode = curNode.ownerDocument().createElement(qname);
ManipulationCommand *cmd = new InsertNodeCommand(newNode, tqparent, after); ManipulationCommand *cmd = new InsertNodeCommand(newNode, parent, after);
mainWindow()->executeAndAddCommand(cmd); mainWindow()->executeAndAddCommand(cmd);
if (cmd->isValid()) activateNode(newNode); if (cmd->isValid()) activateNode(newNode);
@ -921,12 +921,12 @@ void DOMTreeView::slotAddTextDlg()
DOM::Node curNode = item->node(); DOM::Node curNode = item->node();
try { try {
DOM::Node tqparent = addBefore() ? curNode.parentNode() : curNode; DOM::Node parent = addBefore() ? curNode.parentNode() : curNode;
DOM::Node after = addBefore() ? curNode : 0; DOM::Node after = addBefore() ? curNode : 0;
DOM::Node newNode = curNode.ownerDocument().createTextNode(text); DOM::Node newNode = curNode.ownerDocument().createTextNode(text);
ManipulationCommand *cmd = new InsertNodeCommand(newNode, tqparent, after); ManipulationCommand *cmd = new InsertNodeCommand(newNode, parent, after);
mainWindow()->executeAndAddCommand(cmd); mainWindow()->executeAndAddCommand(cmd);
if (cmd->isValid()) activateNode(newNode); if (cmd->isValid()) activateNode(newNode);
@ -950,14 +950,14 @@ class AttributeListItem : public TQListViewItem
bool _new; bool _new;
public: public:
AttributeListItem(TQListView *tqparent, TQListViewItem *prev) AttributeListItem(TQListView *parent, TQListViewItem *prev)
: super(tqparent, prev), _new(true) : super(parent, prev), _new(true)
{ {
} }
AttributeListItem(const TQString &attrName, const TQString &attrValue, AttributeListItem(const TQString &attrName, const TQString &attrValue,
TQListView *tqparent, TQListViewItem *prev) TQListView *parent, TQListViewItem *prev)
: super(tqparent, prev), _new(false) : super(parent, prev), _new(false)
{ {
setText(0, attrName); setText(0, attrName);
setText(1, attrValue); setText(1, attrValue);

@ -50,7 +50,7 @@ class DOMTreeView : public DOMTreeViewBase
TQ_OBJECT TQ_OBJECT
public: public:
DOMTreeView(TQWidget *tqparent, const char* name, bool allowSaving = true); DOMTreeView(TQWidget *parent, const char* name, bool allowSaving = true);
~DOMTreeView(); ~DOMTreeView();
KHTMLPart *htmlPart() const { return part; } KHTMLPart *htmlPart() const { return part; }

@ -15,9 +15,9 @@
typedef KGenericFactory<PluginDomtreeviewer> DomtreeviewerFactory; typedef KGenericFactory<PluginDomtreeviewer> DomtreeviewerFactory;
K_EXPORT_COMPONENT_FACTORY( libdomtreeviewerplugin, DomtreeviewerFactory( "domtreeviewer" ) ) K_EXPORT_COMPONENT_FACTORY( libdomtreeviewerplugin, DomtreeviewerFactory( "domtreeviewer" ) )
PluginDomtreeviewer::PluginDomtreeviewer( TQObject* tqparent, const char* name, PluginDomtreeviewer::PluginDomtreeviewer( TQObject* parent, const char* name,
const TQStringList & ) const TQStringList & )
: Plugin( tqparent, name ), m_dialog( 0 ) : Plugin( parent, name ), m_dialog( 0 )
{ {
(void) new KAction( i18n("Show &DOM Tree"), (void) new KAction( i18n("Show &DOM Tree"),
"domtreeviewer", 0, "domtreeviewer", 0,
@ -38,7 +38,7 @@ void PluginDomtreeviewer::slotShowDOMTree()
delete m_dialog; delete m_dialog;
Q_ASSERT((DOMTreeWindow *)m_dialog == (DOMTreeWindow *)0); Q_ASSERT((DOMTreeWindow *)m_dialog == (DOMTreeWindow *)0);
} }
if (KHTMLPart *part = ::tqqt_cast<KHTMLPart *>(tqparent())) if (KHTMLPart *part = ::tqqt_cast<KHTMLPart *>(parent()))
{ {
m_dialog = new DOMTreeWindow(this); m_dialog = new DOMTreeWindow(this);
connect( m_dialog, TQT_SIGNAL( destroyed() ), this, TQT_SLOT( slotDestroyed() ) ); connect( m_dialog, TQT_SIGNAL( destroyed() ), this, TQT_SLOT( slotDestroyed() ) );

@ -14,7 +14,7 @@ class PluginDomtreeviewer : public KParts::Plugin
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
PluginDomtreeviewer( TQObject* tqparent, const char* name, PluginDomtreeviewer( TQObject* parent, const char* name,
const TQStringList & ); const TQStringList & );
virtual ~PluginDomtreeviewer(); virtual ~PluginDomtreeviewer();

@ -20,8 +20,8 @@
#include "signalreceiver.h" #include "signalreceiver.h"
SignalReceiver::SignalReceiver(TQObject *tqparent, const char *name) SignalReceiver::SignalReceiver(TQObject *parent, const char *name)
: TQObject(tqparent, name), rcvd(false) : TQObject(parent, name), rcvd(false)
{ {
} }

@ -48,7 +48,7 @@ class SignalReceiver : public TQObject
TQ_OBJECT TQ_OBJECT
public: public:
SignalReceiver(TQObject *tqparent = 0, const char *name = 0); SignalReceiver(TQObject *parent = 0, const char *name = 0);
virtual ~SignalReceiver(); virtual ~SignalReceiver();
/** returns true if any signal has been received */ /** returns true if any signal has been received */

@ -43,8 +43,8 @@
TQMap<TQString, MetricEntry> FSView::_dirMetric; TQMap<TQString, MetricEntry> FSView::_dirMetric;
FSView::FSView(Inode* base, TQWidget* tqparent, const char* name) FSView::FSView(Inode* base, TQWidget* parent, const char* name)
: TreeMapWidget(base, tqparent, name) : TreeMapWidget(base, parent, name)
{ {
setFieldType(0, i18n("Name")); setFieldType(0, i18n("Name"));
setFieldType(1, i18n("Size")); setFieldType(1, i18n("Size"));

@ -63,7 +63,7 @@ class FSView : public TreeMapWidget, public ScanListener
public: public:
enum ColorMode { None = 0, Depth, Name, Owner, Group, Mime }; enum ColorMode { None = 0, Depth, Name, Owner, Group, Mime };
FSView(Inode*, TQWidget* tqparent=0, const char* name=0); FSView(Inode*, TQWidget* parent=0, const char* name=0);
~FSView(); ~FSView();
KConfig* config() { return _config; } KConfig* config() { return _config; }

@ -94,9 +94,9 @@ KAboutData* FSViewPart::createAboutData()
} }
FSViewPart::FSViewPart(TQWidget *parentWidget, const char *widgetName, FSViewPart::FSViewPart(TQWidget *parentWidget, const char *widgetName,
TQObject *tqparent, const char *name, TQObject *parent, const char *name,
const TQStringList& /* args */) const TQStringList& /* args */)
: KParts::ReadOnlyPart(tqparent, name) : KParts::ReadOnlyPart(parent, name)
{ {
// we need an instance // we need an instance
setInstance( FSViewPartFactory::instance() ); setInstance( FSViewPartFactory::instance() );
@ -365,9 +365,9 @@ void FSViewBrowserExtension::refresh()
while( (i=s.next()) ) while( (i=s.next()) )
commonParent = commonParent->commonParent(i); commonParent = commonParent->commonParent(i);
/* if commonParent is a file, update tqparent directory */ /* if commonParent is a file, update parent directory */
if ( !((Inode*)commonParent)->isDir() ) { if ( !((Inode*)commonParent)->isDir() ) {
commonParent = commonParent->tqparent(); commonParent = commonParent->parent();
if (!commonParent) return; if (!commonParent) return;
} }

@ -87,7 +87,7 @@ class FSViewPart : public KParts::ReadOnlyPart
TQ_PROPERTY( bool supportsUndo READ supportsUndo ) TQ_PROPERTY( bool supportsUndo READ supportsUndo )
public: public:
FSViewPart(TQWidget *parentWidget, const char *widgetName, FSViewPart(TQWidget *parentWidget, const char *widgetName,
TQObject *tqparent, const char *name, const TQStringList &args); TQObject *parent, const char *name, const TQStringList &args);
virtual ~FSViewPart(); virtual ~FSViewPart();

@ -40,12 +40,12 @@ Inode::Inode()
init(""); init("");
} }
Inode::Inode(ScanDir* d, Inode* tqparent) Inode::Inode(ScanDir* d, Inode* parent)
: TreeMapItem(tqparent) : TreeMapItem(parent)
{ {
TQString absPath; TQString absPath;
if (tqparent) { if (parent) {
absPath = tqparent->path(); absPath = parent->path();
if (!absPath.endsWith("/")) absPath += "/"; if (!absPath.endsWith("/")) absPath += "/";
} }
absPath += d->name(); absPath += d->name();
@ -56,12 +56,12 @@ Inode::Inode(ScanDir* d, Inode* tqparent)
init(absPath); init(absPath);
} }
Inode::Inode(ScanFile* f, Inode* tqparent) Inode::Inode(ScanFile* f, Inode* parent)
: TreeMapItem(tqparent) : TreeMapItem(parent)
{ {
TQString absPath; TQString absPath;
if (tqparent) if (parent)
absPath = tqparent->path() + "/"; absPath = parent->path() + "/";
absPath += f->name(); absPath += f->name();
_dirPeer = 0; _dirPeer = 0;

@ -80,8 +80,8 @@ void ScanManager::startScan(ScanDir* from)
if (scanRunning()) stopScan(); if (scanRunning()) stopScan();
from->clear(); from->clear();
if (from->tqparent()) if (from->parent())
from->tqparent()->setupChildRescan(); from->parent()->setupChildRescan();
_list.append(new ScanItem(from->path(),from)); _list.append(new ScanItem(from->path(),from));
} }

@ -179,7 +179,7 @@ class ScanDir
*/ */
void setupChildRescan(); void setupChildRescan();
/* Absolute path. Warning: Slow, loops to top tqparent. */ /* Absolute path. Warning: Slow, loops to top parent. */
TQString path(); TQString path();
/* get integer data attribute */ /* get integer data attribute */
@ -192,7 +192,7 @@ class ScanDir
KIO::fileoffset_t size() { update(); return _size; } KIO::fileoffset_t size() { update(); return _size; }
unsigned int fileCount() { update(); return _fileCount; } unsigned int fileCount() { update(); return _fileCount; }
unsigned int dirCount() { update(); return _dirCount; } unsigned int dirCount() { update(); return _dirCount; }
ScanDir* tqparent() { return _parent; } ScanDir* parent() { return _parent; }
bool scanStarted() { return (_dirsFinished >= 0); } bool scanStarted() { return (_dirsFinished >= 0); }
bool scanFinished() { return (_dirsFinished == (int)_dirs.count()); } bool scanFinished() { return (_dirsFinished == (int)_dirs.count()); }
bool scanRunning() { return scanStarted() && !scanFinished(); } bool scanRunning() { return scanStarted() && !scanFinished(); }

@ -717,11 +717,11 @@ int TreeMapItemList::compareItems ( Item item1, Item item2 )
bool ascending; bool ascending;
int result; int result;
TreeMapItem* tqparent = ((TreeMapItem*)item1)->tqparent(); TreeMapItem* parent = ((TreeMapItem*)item1)->parent();
// shouldn't happen // shouldn't happen
if (!tqparent) return 0; if (!parent) return 0;
int textNo = tqparent->sorting(&ascending); int textNo = parent->sorting(&ascending);
if (textNo < 0) { if (textNo < 0) {
double diff = ((TreeMapItem*)item1)->value() - double diff = ((TreeMapItem*)item1)->value() -
@ -738,22 +738,22 @@ int TreeMapItemList::compareItems ( Item item1, Item item2 )
TreeMapItem* TreeMapItemList::commonParent() TreeMapItem* TreeMapItemList::commonParent()
{ {
TreeMapItem* tqparent, *item; TreeMapItem* parent, *item;
tqparent = first(); parent = first();
if (tqparent) if (parent)
while( (item = next()) != 0) while( (item = next()) != 0)
tqparent = tqparent->commonParent(item); parent = parent->commonParent(item);
return tqparent; return parent;
} }
// TreeMapItem // TreeMapItem
TreeMapItem::TreeMapItem(TreeMapItem* tqparent, double value) TreeMapItem::TreeMapItem(TreeMapItem* parent, double value)
{ {
_value = value; _value = value;
_parent = tqparent; _parent = parent;
_sum = 0; _sum = 0;
_tqchildren = 0; _tqchildren = 0;
@ -764,7 +764,7 @@ TreeMapItem::TreeMapItem(TreeMapItem* tqparent, double value)
_freeRects = 0; _freeRects = 0;
if (_parent) { if (_parent) {
// take sorting from tqparent // take sorting from parent
_sortTextNo = _parent->sorting(&_sortAscending); _sortTextNo = _parent->sorting(&_sortAscending);
_parent->addItem(this); _parent->addItem(this);
} }
@ -775,12 +775,12 @@ TreeMapItem::TreeMapItem(TreeMapItem* tqparent, double value)
} }
TreeMapItem::TreeMapItem(TreeMapItem* tqparent, double value, TreeMapItem::TreeMapItem(TreeMapItem* parent, double value,
TQString text1, TQString text2, TQString text1, TQString text2,
TQString text3, TQString text4) TQString text3, TQString text4)
{ {
_value = value; _value = value;
_parent = tqparent; _parent = parent;
// this resizes the text vector only if needed // this resizes the text vector only if needed
if (!text4.isEmpty()) setText(3, text4); if (!text4.isEmpty()) setText(3, text4);
@ -829,7 +829,7 @@ bool TreeMapItem::isChildOf(TreeMapItem* item)
TreeMapItem* TreeMapItem::commonParent(TreeMapItem* item) TreeMapItem* TreeMapItem::commonParent(TreeMapItem* item)
{ {
while (item && !isChildOf(item)) { while (item && !isChildOf(item)) {
item = item->tqparent(); item = item->parent();
} }
return item; return item;
} }
@ -1103,8 +1103,8 @@ void TreeMapTip::maybeTip( const TQPoint& pos )
// TreeMapWidget // TreeMapWidget
TreeMapWidget::TreeMapWidget(TreeMapItem* base, TreeMapWidget::TreeMapWidget(TreeMapItem* base,
TQWidget* tqparent, const char* name) TQWidget* parent, const char* name)
: TQWidget(tqparent, name) : TQWidget(parent, name)
{ {
_base = base; _base = base;
_base->setWidget(this); _base->setWidget(this);
@ -1446,9 +1446,9 @@ void TreeMapWidget::deletingItem(TreeMapItem* i)
// don't redraw a deleted item // don't redraw a deleted item
if (_needsRefresh == i) { if (_needsRefresh == i) {
// we can savely redraw the tqparent, as deleting order is // we can savely redraw the parent, as deleting order is
// from child to tqparent; i.e. i->tqparent() is existing. // from child to parent; i.e. i->parent() is existing.
_needsRefresh = i->tqparent(); _needsRefresh = i->parent();
} }
} }
@ -1468,7 +1468,7 @@ TQString TreeMapWidget::tipString(TreeMapItem* i) const
tip += itemTip; tip += itemTip;
} }
i = i->tqparent(); i = i->parent();
} }
return tip; return tip;
} }
@ -1530,7 +1530,7 @@ TreeMapItem* TreeMapWidget::possibleSelection(TreeMapItem* i) const
if (_maxSelectDepth>=0) { if (_maxSelectDepth>=0) {
int depth = i->depth(); int depth = i->depth();
while(i && depth > _maxSelectDepth) { while(i && depth > _maxSelectDepth) {
i = i->tqparent(); i = i->parent();
depth--; depth--;
} }
} }
@ -1544,7 +1544,7 @@ TreeMapItem* TreeMapWidget::visibleItem(TreeMapItem* i) const
/* Must have a visible area */ /* Must have a visible area */
while(i && ((i->tqitemRect().width() <1) || while(i && ((i->tqitemRect().width() <1) ||
(i->tqitemRect().height() <1))) { (i->tqitemRect().height() <1))) {
TreeMapItem* p = i->tqparent(); TreeMapItem* p = i->parent();
if (!p) break; if (!p) break;
int idx = p->tqchildren()->findRef(i); int idx = p->tqchildren()->findRef(i);
idx--; idx--;
@ -1644,13 +1644,13 @@ TreeMapItem* TreeMapWidget::setTmpSelected(TreeMapItem* item, bool selected)
} }
bool TreeMapWidget::clearSelection(TreeMapItem* tqparent) bool TreeMapWidget::clearSelection(TreeMapItem* parent)
{ {
TreeMapItemList old = _selection; TreeMapItemList old = _selection;
TreeMapItem* i=_selection.first(); TreeMapItem* i=_selection.first();
while (i) { while (i) {
if (i->isChildOf(tqparent)) { if (i->isChildOf(parent)) {
_selection.remove(); _selection.remove();
i = _selection.current(); i = _selection.current();
} }
@ -1738,11 +1738,11 @@ TreeMapItem* TreeMapWidget::setTmpRangeSelection(TreeMapItem* i1,
TreeMapItem* commonParent = i1; TreeMapItem* commonParent = i1;
while (commonParent && !i2->isChildOf(commonParent)) { while (commonParent && !i2->isChildOf(commonParent)) {
i1 = commonParent; i1 = commonParent;
commonParent = commonParent->tqparent(); commonParent = commonParent->parent();
} }
if (!commonParent) return changed; if (!commonParent) return changed;
while (i2 && i2->tqparent() != commonParent) while (i2 && i2->parent() != commonParent)
i2 = i2->tqparent(); i2 = i2->parent();
if (!i2) return changed; if (!i2) return changed;
TreeMapItemList* list = commonParent->tqchildren(); TreeMapItemList* list = commonParent->tqchildren();
@ -1935,7 +1935,7 @@ void TreeMapWidget::mouseDoubleClickEvent( TQMouseEvent* e )
/* returns -1 if nothing visible found */ /* returns -1 if nothing visible found */
int nextVisible(TreeMapItem* i) int nextVisible(TreeMapItem* i)
{ {
TreeMapItem* p = i->tqparent(); TreeMapItem* p = i->parent();
if (!p || p->tqitemRect().isEmpty()) return -1; if (!p || p->tqitemRect().isEmpty()) return -1;
int idx = p->tqchildren()->findRef(i); int idx = p->tqchildren()->findRef(i);
@ -1953,7 +1953,7 @@ int nextVisible(TreeMapItem* i)
/* returns -1 if nothing visible found */ /* returns -1 if nothing visible found */
int prevVisible(TreeMapItem* i) int prevVisible(TreeMapItem* i)
{ {
TreeMapItem* p = i->tqparent(); TreeMapItem* p = i->parent();
if (!p || p->tqitemRect().isEmpty()) return -1; if (!p || p->tqitemRect().isEmpty()) return -1;
int idx = p->tqchildren()->findRef(i); int idx = p->tqchildren()->findRef(i);
@ -2024,7 +2024,7 @@ void TreeMapWidget::keyPressEvent( TQKeyEvent* e )
} }
TreeMapItem* old = _current, *newItem; TreeMapItem* old = _current, *newItem;
TreeMapItem* p = _current->tqparent(); TreeMapItem* p = _current->parent();
bool goBack; bool goBack;
if (_current->sorting(&goBack) == -1) { if (_current->sorting(&goBack) == -1) {
@ -2184,7 +2184,7 @@ void TreeMapWidget::drawItem(TQPainter* p,
TreeMapItem* i; TreeMapItem* i;
if (_markNo>0) { if (_markNo>0) {
for(i = item;i;i=i->tqparent()) for(i = item;i;i=i->parent())
if (i->isMarked(_markNo)) break; if (i->isMarked(_markNo)) break;
isSelected = (i!=0); isSelected = (i!=0);
@ -2906,7 +2906,7 @@ void TreeMapWidget::selectionActivated(int id)
TreeMapItem* i = _menuItem; TreeMapItem* i = _menuItem;
id -= _selectionID; id -= _selectionID;
while (id>0 && i) { while (id>0 && i) {
i=i->tqparent(); i=i->parent();
id--; id--;
} }
if (i) if (i)
@ -2928,7 +2928,7 @@ void TreeMapWidget::addSelectionItems(TQPopupMenu* popup,
TQString name = i->text(0); TQString name = i->text(0);
if (name.isEmpty()) break; if (name.isEmpty()) break;
popup->insertItem(i->text(0), id++); popup->insertItem(i->text(0), id++);
i = i->tqparent(); i = i->parent();
} }
} }
@ -2939,7 +2939,7 @@ void TreeMapWidget::fieldStopActivated(int id)
TreeMapItem* i = _menuItem; TreeMapItem* i = _menuItem;
id -= _fieldStopID+1; id -= _fieldStopID+1;
while (id>0 && i) { while (id>0 && i) {
i=i->tqparent(); i=i->parent();
id--; id--;
} }
if (i) if (i)
@ -2971,7 +2971,7 @@ void TreeMapWidget::addFieldStopItems(TQPopupMenu* popup,
popup->setItemChecked(id, true); popup->setItemChecked(id, true);
foundFieldStop = true; foundFieldStop = true;
} }
i = i->tqparent(); i = i->parent();
} }
} }

@ -237,8 +237,8 @@ public:
HAlternate, VAlternate, HAlternate, VAlternate,
Horizontal, Vertical }; Horizontal, Vertical };
TreeMapItem(TreeMapItem* tqparent = 0, double value = 1.0 ); TreeMapItem(TreeMapItem* parent = 0, double value = 1.0 );
TreeMapItem(TreeMapItem* tqparent, double value, TreeMapItem(TreeMapItem* parent, double value,
TQString text1, TQString text2 = TQString(), TQString text1, TQString text2 = TQString(),
TQString text3 = TQString(), TQString text4 = TQString()); TQString text3 = TQString(), TQString text4 = TQString());
virtual ~TreeMapItem(); virtual ~TreeMapItem();
@ -261,9 +261,9 @@ public:
bool initialized(); bool initialized();
/** /**
* Adds an item to a tqparent. * Adds an item to a parent.
* When no sorting is used, the item is appended (drawn at bottom). * When no sorting is used, the item is appended (drawn at bottom).
* This is only needed if the tqparent was not already specified in the * This is only needed if the parent was not already specified in the
* construction of the item. * construction of the item.
*/ */
void addItem(TreeMapItem*); void addItem(TreeMapItem*);
@ -282,7 +282,7 @@ public:
/** /**
* Parent Item * Parent Item
*/ */
TreeMapItem* tqparent() const { return _parent; } TreeMapItem* parent() const { return _parent; }
/** /**
* Temporary rectangle used for drawing this item the last time. * Temporary rectangle used for drawing this item the last time.
@ -401,7 +401,7 @@ public:
*/ */
enum SelectionMode { Single, Multi, Extended, NoSelection }; enum SelectionMode { Single, Multi, Extended, NoSelection };
TreeMapWidget(TreeMapItem* base, TQWidget* tqparent=0, const char* name=0); TreeMapWidget(TreeMapItem* base, TQWidget* parent=0, const char* name=0);
~TreeMapWidget(); ~TreeMapWidget();
/** /**
@ -428,7 +428,7 @@ public:
/** /**
* Returns the item possible for selection. this returns the * Returns the item possible for selection. this returns the
* given item itself or a tqparent thereof, * given item itself or a parent thereof,
* depending on setting of maxSelectDepth(). * depending on setting of maxSelectDepth().
*/ */
TreeMapItem* possibleSelection(TreeMapItem*) const; TreeMapItem* possibleSelection(TreeMapItem*) const;
@ -453,17 +453,17 @@ public:
/** /**
* Clear selection of all selected items which are tqchildren of * Clear selection of all selected items which are tqchildren of
* tqparent. When tqparent == 0, clears whole selection * parent. When parent == 0, clears whole selection
* Returns true if selection changed. * Returns true if selection changed.
*/ */
bool clearSelection(TreeMapItem* tqparent = 0); bool clearSelection(TreeMapItem* parent = 0);
/** /**
* Selects or unselects items in a range. * Selects or unselects items in a range.
* This is needed internally for Shift-Click in Extented mode. * This is needed internally for Shift-Click in Extented mode.
* Range means for a hierarchical widget: * Range means for a hierarchical widget:
* - select/unselect i1 and i2 according selected * - select/unselect i1 and i2 according selected
* - search common tqparent of i1 and i2, and select/unselect the * - search common parent of i1 and i2, and select/unselect the
* range of direct tqchildren between but excluding the child * range of direct tqchildren between but excluding the child
* leading to i1 and the child leading to i2. * leading to i1 and the child leading to i2.
*/ */
@ -520,12 +520,12 @@ public:
* If a tqchildren value() is almost the parents sum(), * If a tqchildren value() is almost the parents sum(),
* it can happen that the border to be drawn for visibilty of * it can happen that the border to be drawn for visibilty of
* nesting relations takes to much space, and the * nesting relations takes to much space, and the
* tqparent/child size relation can not be mapped to a correct * parent/child size relation can not be mapped to a correct
* area size relation. * area size relation.
* *
* Either * Either
* (1) Ignore the incorrect drawing, or * (1) Ignore the incorrect drawing, or
* (2) Skip drawing of the tqparent level alltogether. * (2) Skip drawing of the parent level alltogether.
*/ */
void setSkipIncorrectBorder(bool enable = true); void setSkipIncorrectBorder(bool enable = true);
bool skipIncorrectBorder() const { return _skipIncorrectBorder; } bool skipIncorrectBorder() const { return _skipIncorrectBorder; }

@ -39,9 +39,9 @@ static const KAboutData aboutdata("khtmlsettingsplugin", I18N_NOOP("HTML Setting
K_EXPORT_COMPONENT_FACTORY( libkhtmlsettingsplugin, K_EXPORT_COMPONENT_FACTORY( libkhtmlsettingsplugin,
SettingsPluginFactory( &aboutdata ) ) SettingsPluginFactory( &aboutdata ) )
SettingsPlugin::SettingsPlugin( TQObject* tqparent, const char* name, SettingsPlugin::SettingsPlugin( TQObject* parent, const char* name,
const TQStringList & ) const TQStringList & )
: KParts::Plugin( tqparent, name ), mConfig(0) : KParts::Plugin( parent, name ), mConfig(0)
{ {
setInstance(SettingsPluginFactory::instance()); setInstance(SettingsPluginFactory::instance());
@ -118,13 +118,13 @@ SettingsPlugin::~SettingsPlugin()
void SettingsPlugin::showPopup() void SettingsPlugin::showPopup()
{ {
if( !tqparent() || !tqparent()->inherits("KHTMLPart")) if( !parent() || !parent()->inherits("KHTMLPart"))
return; return;
if (!mConfig) if (!mConfig)
mConfig = new KConfig("settingspluginrc", false, false); mConfig = new KConfig("settingspluginrc", false, false);
KHTMLPart *part = static_cast<KHTMLPart *>( tqparent() ); KHTMLPart *part = static_cast<KHTMLPart *>( parent() );
KProtocolManager::reparseConfiguration(); KProtocolManager::reparseConfiguration();
bool cookies = cookiesEnabled( part->url().url() ); bool cookies = cookiesEnabled( part->url().url() );
@ -159,28 +159,28 @@ void SettingsPlugin::showPopup()
void SettingsPlugin::toggleJava() void SettingsPlugin::toggleJava()
{ {
if( tqparent() && tqparent()->inherits("KHTMLPart")) if( parent() && parent()->inherits("KHTMLPart"))
{ {
KHTMLPart *part = static_cast<KHTMLPart *>(tqparent()); KHTMLPart *part = static_cast<KHTMLPart *>(parent());
part->setJavaEnabled( ((KToggleAction*)actionCollection()->action("java"))->isChecked() ); part->setJavaEnabled( ((KToggleAction*)actionCollection()->action("java"))->isChecked() );
} }
} }
void SettingsPlugin::toggleJavascript() void SettingsPlugin::toggleJavascript()
{ {
if( tqparent() && tqparent()->inherits("KHTMLPart")) if( parent() && parent()->inherits("KHTMLPart"))
{ {
KHTMLPart *part = static_cast<KHTMLPart *>(tqparent()); KHTMLPart *part = static_cast<KHTMLPart *>(parent());
part->setJScriptEnabled( ((KToggleAction*)actionCollection()->action("javascript"))->isChecked() ); part->setJScriptEnabled( ((KToggleAction*)actionCollection()->action("javascript"))->isChecked() );
} }
} }
void SettingsPlugin::toggleCookies() void SettingsPlugin::toggleCookies()
{ {
if( !tqparent() || !tqparent()->inherits("KHTMLPart")) if( !parent() || !parent()->inherits("KHTMLPart"))
return; return;
KHTMLPart *part = static_cast<KHTMLPart *>( tqparent() ); KHTMLPart *part = static_cast<KHTMLPart *>( parent() );
TQString advice; TQString advice;
bool enable = ((KToggleAction*)actionCollection()->action("cookies"))->isChecked(); bool enable = ((KToggleAction*)actionCollection()->action("cookies"))->isChecked();
@ -203,18 +203,18 @@ void SettingsPlugin::toggleCookies()
void SettingsPlugin::togglePlugins() void SettingsPlugin::togglePlugins()
{ {
if( tqparent() && tqparent()->inherits("KHTMLPart")) if( parent() && parent()->inherits("KHTMLPart"))
{ {
KHTMLPart *part = static_cast<KHTMLPart *>(tqparent()); KHTMLPart *part = static_cast<KHTMLPart *>(parent());
part->setPluginsEnabled( ((KToggleAction*)actionCollection()->action("plugins"))->isChecked() ); part->setPluginsEnabled( ((KToggleAction*)actionCollection()->action("plugins"))->isChecked() );
} }
} }
void SettingsPlugin::toggleImageLoading() void SettingsPlugin::toggleImageLoading()
{ {
if( tqparent() && tqparent()->inherits("KHTMLPart")) if( parent() && parent()->inherits("KHTMLPart"))
{ {
KHTMLPart *part = static_cast<KHTMLPart *>(tqparent()); KHTMLPart *part = static_cast<KHTMLPart *>(parent());
part->setAutoloadImages( ((KToggleAction*)actionCollection()->action("imageloading"))->isChecked() ); part->setAutoloadImages( ((KToggleAction*)actionCollection()->action("imageloading"))->isChecked() );
} }
} }

@ -30,7 +30,7 @@ class SettingsPlugin : public KParts::Plugin
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
SettingsPlugin( TQObject* tqparent, const char* name, SettingsPlugin( TQObject* parent, const char* name,
const TQStringList & ); const TQStringList & );
virtual ~SettingsPlugin(); virtual ~SettingsPlugin();

@ -44,9 +44,9 @@ Boston, MA 02110-1301, USA.
#include "imgallerydialog.h" #include "imgallerydialog.h"
#include "imgallerydialog.moc" #include "imgallerydialog.moc"
KIGPDialog::KIGPDialog(TQWidget *tqparent, const TQString& path, const char *name ) KIGPDialog::KIGPDialog(TQWidget *parent, const TQString& path, const char *name )
: KDialogBase( IconList, i18n("Configure"), Default|Ok|Cancel, : KDialogBase( IconList, i18n("Configure"), Default|Ok|Cancel,
Ok, tqparent, name, true, true ), Ok, parent, name, true, true ),
m_dialogOk( false ) m_dialogOk( false )
{ {
m_path = path; m_path = path;

@ -42,7 +42,7 @@ class KIGPDialog : public KDialogBase
TQ_OBJECT TQ_OBJECT
public: public:
KIGPDialog(TQWidget *tqparent=0, const TQString& path=0, const char *name=0 ); KIGPDialog(TQWidget *parent=0, const TQString& path=0, const char *name=0 );
~KIGPDialog(); ~KIGPDialog();
bool isDialogOk() const; bool isDialogOk() const;

@ -48,8 +48,8 @@ Boston, MA 02110-1301, USA.
typedef KGenericFactory<KImGalleryPlugin> KImGalleryPluginFactory; typedef KGenericFactory<KImGalleryPlugin> KImGalleryPluginFactory;
K_EXPORT_COMPONENT_FACTORY( libkimgallery, KImGalleryPluginFactory( "imgalleryplugin" ) ) K_EXPORT_COMPONENT_FACTORY( libkimgallery, KImGalleryPluginFactory( "imgalleryplugin" ) )
KImGalleryPlugin::KImGalleryPlugin( TQObject* tqparent, const char* name, const TQStringList & ) KImGalleryPlugin::KImGalleryPlugin( TQObject* parent, const char* name, const TQStringList & )
: KParts::Plugin( tqparent, name ), m_commentMap(0) : KParts::Plugin( parent, name ), m_commentMap(0)
{ {
new KAction( i18n( "&Create Image Gallery..." ), "imagegallery", CTRL+Key_I, this, new KAction( i18n( "&Create Image Gallery..." ), "imagegallery", CTRL+Key_I, this,
TQT_SLOT( slotExecute() ), actionCollection(), "create_img_gallery" ); TQT_SLOT( slotExecute() ), actionCollection(), "create_img_gallery" );
@ -58,12 +58,12 @@ KImGalleryPlugin::KImGalleryPlugin( TQObject* tqparent, const char* name, const
void KImGalleryPlugin::slotExecute() void KImGalleryPlugin::slotExecute()
{ {
m_progressDlg=0L; m_progressDlg=0L;
if ( !tqparent() || !tqparent()->inherits("KonqDirPart")) if ( !parent() || !parent()->inherits("KonqDirPart"))
{ {
KMessageBox::sorry( 0L, i18n("Could not create the plugin, please report a bug.")); KMessageBox::sorry( 0L, i18n("Could not create the plugin, please report a bug."));
return; return;
} }
m_part = static_cast<KonqDirPart *>(tqparent()); m_part = static_cast<KonqDirPart *>(parent());
if (!m_part->url().isLocalFile()) { //TODO support remote URLs too? if (!m_part->url().isLocalFile()) { //TODO support remote URLs too?
KMessageBox::sorry(m_part->widget(), i18n("Creating an image gallery works only on local folders.")); KMessageBox::sorry(m_part->widget(), i18n("Creating an image gallery works only on local folders."));
return; return;
@ -249,9 +249,9 @@ bool KImGalleryPlugin::createHtml(const KURL& url, const TQString& sourceDirName
if(m_cancelled) return false; if(m_cancelled) return false;
if( !tqparent() || !tqparent()->inherits("KonqDirPart")) if( !parent() || !parent()->inherits("KonqDirPart"))
return false; return false;
KonqDirPart * part = static_cast<KonqDirPart *>(tqparent()); KonqDirPart * part = static_cast<KonqDirPart *>(parent());
TQStringList subDirList; TQStringList subDirList;
if (m_recurseSubDirectories && (recursionLevel >= 0)) { //recursionLevel == 0 means endless if (m_recurseSubDirectories && (recursionLevel >= 0)) { //recursionLevel == 0 means endless
@ -431,7 +431,7 @@ bool KImGalleryPlugin::createThumb( const TQString& imgName, const TQString& sou
//kdDebug(90170) << "srcURL: " << srcURL << endl; //kdDebug(90170) << "srcURL: " << srcURL << endl;
KURL destURL = KURL::fromPathOrURL(imgGalleryDir + TQString::tqfromLatin1("/images/") + imgName); KURL destURL = KURL::fromPathOrURL(imgGalleryDir + TQString::tqfromLatin1("/images/") + imgName);
//kdDebug(90170) << "destURL: " << destURL << endl; //kdDebug(90170) << "destURL: " << destURL << endl;
KIO::NetAccess::copy(srcURL, destURL, static_cast<KParts::Part *>(tqparent())->widget()); KIO::NetAccess::copy(srcURL, destURL, static_cast<KParts::Part *>(parent())->widget());
} }
const TQString imgNameFormat = imgName + extension(imageFormat); const TQString imgNameFormat = imgName + extension(imageFormat);

@ -37,7 +37,7 @@ class KImGalleryPlugin : public KParts::Plugin
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
KImGalleryPlugin( TQObject* tqparent, const char* name, KImGalleryPlugin( TQObject* parent, const char* name,
const TQStringList & ); const TQStringList & );
~KImGalleryPlugin() {} ~KImGalleryPlugin() {}

@ -33,8 +33,8 @@
typedef KGenericFactory<KCMKuick, TQWidget> KuickFactory; typedef KGenericFactory<KCMKuick, TQWidget> KuickFactory;
K_EXPORT_COMPONENT_FACTORY ( kcm_kuick, KuickFactory( "kcmkuick" ) ) K_EXPORT_COMPONENT_FACTORY ( kcm_kuick, KuickFactory( "kcmkuick" ) )
KCMKuick::KCMKuick(TQWidget *tqparent, const char *name, const TQStringList &) KCMKuick::KCMKuick(TQWidget *parent, const char *name, const TQStringList &)
:KCModule(tqparent, name) :KCModule(parent, name)
{ {
KAboutData *ab=new KAboutData( "kcmkuick", I18N_NOOP("KCM Kuick"), KAboutData *ab=new KAboutData( "kcmkuick", I18N_NOOP("KCM Kuick"),
"0.2",I18N_NOOP("KControl module for Kuick's configuration"), KAboutData::License_GPL, "0.2",I18N_NOOP("KControl module for Kuick's configuration"), KAboutData::License_GPL,

@ -27,7 +27,7 @@ class KCMKuick
TQ_OBJECT TQ_OBJECT
public: public:
KCMKuick (TQWidget *tqparent, const char *name, const TQStringList &); KCMKuick (TQWidget *parent, const char *name, const TQStringList &);
~KCMKuick(); ~KCMKuick();
void load(); void load();
void load(const TQString &); void load(const TQString &);

@ -34,9 +34,9 @@
TQMap<TQString, TQPixmap> *KDirMenu::_icons = 0; TQMap<TQString, TQPixmap> *KDirMenu::_icons = 0;
KDirMenu::KDirMenu ( TQWidget *tqparent, const KURL &_src, KDirMenu::KDirMenu ( TQWidget *parent, const KURL &_src,
const TQString &_path, const TQString &_name, bool /*showfile*/ ) const TQString &_path, const TQString &_name, bool /*showfile*/ )
: TQPopupMenu(tqparent), : TQPopupMenu(parent),
path(_path), path(_path),
name(_name), name(_name),
src( _src ), src( _src ),

@ -32,7 +32,7 @@ class KDirMenu : public TQPopupMenu {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
KDirMenu( TQWidget *tqparent, const KURL &src, const TQString &_path, KDirMenu( TQWidget *parent, const KURL &src, const TQString &_path,
const TQString &name, bool showfiles = false ); const TQString &name, bool showfiles = false );
~KDirMenu( ); ~KDirMenu( );
void setPath( const TQString &_path); void setPath( const TQString &_path);

@ -34,8 +34,8 @@
#include "kimcontactmenu.h" #include "kimcontactmenu.h"
KIMContactMenu::KIMContactMenu( TQWidget *tqparent, KIMProxy *proxy ) KIMContactMenu::KIMContactMenu( TQWidget *parent, KIMProxy *proxy )
: TQPopupMenu( tqparent), mProxy( proxy ) : TQPopupMenu( parent), mProxy( proxy )
{ {
#ifdef KIMCONTACTS_USE_KABC #ifdef KIMCONTACTS_USE_KABC
m_addressBook = KABC::StdAddressBook::self( false ); m_addressBook = KABC::StdAddressBook::self( false );

@ -36,7 +36,7 @@ class KIMContactMenu : public TQPopupMenu
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
KIMContactMenu( TQWidget *tqparent, KIMProxy *proxy ); KIMContactMenu( TQWidget *parent, KIMProxy *proxy );
~KIMContactMenu(); ~KIMContactMenu();
protected slots: protected slots:
// populate menus if not already populated // populate menus if not already populated

@ -36,9 +36,9 @@
#include "kimcontactmenu.h" #include "kimcontactmenu.h"
#include "kmetamenu.moc" #include "kmetamenu.moc"
KMetaMenu::KMetaMenu( TQWidget *tqparent, const KURL &url, KMetaMenu::KMetaMenu( TQWidget *parent, const KURL &url,
const TQString &text, const TQString &key, KIMProxy *imProxy ) const TQString &text, const TQString &key, KIMProxy *imProxy )
: TQPopupMenu( tqparent), : TQPopupMenu( parent),
m_root( 0 ), m_home( 0 ), m_etc( 0 ), m_current( 0 ), m_browse( 0 ) { m_root( 0 ), m_home( 0 ), m_etc( 0 ), m_current( 0 ), m_browse( 0 ) {
int recent_no; int recent_no;
group = key; group = key;
@ -51,7 +51,7 @@ KMetaMenu::KMetaMenu( TQWidget *tqparent, const KURL &url,
u.setPath(TQDir::homeDirPath()); u.setPath(TQDir::homeDirPath());
if ( kapp->authorizeURLAction("list", u, u) ) if ( kapp->authorizeURLAction("list", u, u) )
{ {
m_home = new KDirMenu( tqparent, url, u.path() , text ); m_home = new KDirMenu( parent, url, u.path() , text );
insertItem( SmallIcon( "kfm_home" ), i18n("&Home Folder"), m_home); insertItem( SmallIcon( "kfm_home" ), i18n("&Home Folder"), m_home);
dirList << u.path(); dirList << u.path();
@ -62,7 +62,7 @@ KMetaMenu::KMetaMenu( TQWidget *tqparent, const KURL &url,
u.setPath(TQDir::rootDirPath()); u.setPath(TQDir::rootDirPath());
if ( kapp->authorizeURLAction("list", u, u) ) if ( kapp->authorizeURLAction("list", u, u) )
{ {
m_root = new KDirMenu( tqparent, url, u.path() , text ); m_root = new KDirMenu( parent, url, u.path() , text );
insertItem( SmallIcon( "folder_red" ), i18n("&Root Folder"), m_root); insertItem( SmallIcon( "folder_red" ), i18n("&Root Folder"), m_root);
dirList << u.path(); dirList << u.path();
@ -75,7 +75,7 @@ KMetaMenu::KMetaMenu( TQWidget *tqparent, const KURL &url,
if ( TQFileInfo( confDir ).isWritable() && if ( TQFileInfo( confDir ).isWritable() &&
kapp->authorizeURLAction("list", u, u) ) kapp->authorizeURLAction("list", u, u) )
{ {
m_etc = new KDirMenu( tqparent, url, confDir, text ); m_etc = new KDirMenu( parent, url, confDir, text );
insertItem( SmallIcon( "folder_yellow" ) , insertItem( SmallIcon( "folder_yellow" ) ,
i18n("&System Configuration"), m_etc); i18n("&System Configuration"), m_etc);
dirList << confDir; dirList << confDir;
@ -93,7 +93,7 @@ KMetaMenu::KMetaMenu( TQWidget *tqparent, const KURL &url,
//(#60192) //(#60192)
{ {
// Also add current working directory // Also add current working directory
m_current = new KDirMenu( tqparent, url, url.path(), text ); m_current = new KDirMenu( parent, url, url.path(), text );
insertItem( SmallIcon( "folder" ), i18n( "&Current Folder" ), insertItem( SmallIcon( "folder" ), i18n( "&Current Folder" ),
m_current ); m_current );
@ -103,7 +103,7 @@ KMetaMenu::KMetaMenu( TQWidget *tqparent, const KURL &url,
if ( imProxy ) if ( imProxy )
{ {
m_contacts = new KIMContactMenu( tqparent, imProxy ); m_contacts = new KIMContactMenu( parent, imProxy );
int item = insertItem( SmallIconSet( "personal" ), i18n( "C&ontact" ), m_contacts ); int item = insertItem( SmallIconSet( "personal" ), i18n( "C&ontact" ), m_contacts );
connect ( m_contacts, TQT_SIGNAL( contactChosen( const TQString &) ), TQT_SIGNAL( contactChosen( const TQString & ) ) ); connect ( m_contacts, TQT_SIGNAL( contactChosen( const TQString &) ), TQT_SIGNAL( contactChosen( const TQString & ) ) );
if ( !imProxy->initialize() || imProxy->fileTransferContacts().isEmpty() ) if ( !imProxy->initialize() || imProxy->fileTransferContacts().isEmpty() )

@ -38,7 +38,7 @@ class KMetaMenu : public TQPopupMenu {
TQ_OBJECT TQ_OBJECT
public: public:
KMetaMenu( TQWidget *tqparent, const KURL &url, const TQString &text, KMetaMenu( TQWidget *parent, const KURL &url, const TQString &text,
const TQString &key, KIMProxy * imProxy = 0L ); const TQString &key, KIMProxy * imProxy = 0L );
KMetaMenu(); KMetaMenu();
~KMetaMenu(); ~KMetaMenu();

@ -41,11 +41,11 @@ typedef KGenericFactory<KonqMFIcon> KonqMFIconFactory;
K_EXPORT_COMPONENT_FACTORY(libmfkonqmficon, K_EXPORT_COMPONENT_FACTORY(libmfkonqmficon,
KonqMFIconFactory("mfkonqmficon")) KonqMFIconFactory("mfkonqmficon"))
KonqMFIcon::KonqMFIcon(TQObject *tqparent, const char *name, const TQStringList &) KonqMFIcon::KonqMFIcon(TQObject *parent, const char *name, const TQStringList &)
: KParts::Plugin(tqparent, name), PluginBase(), m_part(0), m_mfIcon(0), m_statusBarEx(0), m_menu(0) { : KParts::Plugin(parent, name), PluginBase(), m_part(0), m_mfIcon(0), m_statusBarEx(0), m_menu(0) {
KGlobal::locale()->insertCatalogue("mf_konqplugin"); KGlobal::locale()->insertCatalogue("mf_konqplugin");
m_part = dynamic_cast<KHTMLPart*>(tqparent); m_part = dynamic_cast<KHTMLPart*>(parent);
if (!m_part) { if (!m_part) {
kdDebug() << "couldn't get part" << endl; kdDebug() << "couldn't get part" << endl;
return; return;

@ -43,7 +43,7 @@ class KonqMFIcon : public KParts::Plugin, PluginBase {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
KonqMFIcon(TQObject *tqparent, const char *name, const TQStringList &); KonqMFIcon(TQObject *parent, const char *name, const TQStringList &);
~KonqMFIcon(); ~KonqMFIcon();

@ -42,9 +42,9 @@
typedef KGenericFactory<MinitoolsPlugin> MinitoolsPluginFactory; typedef KGenericFactory<MinitoolsPlugin> MinitoolsPluginFactory;
K_EXPORT_COMPONENT_FACTORY( libminitoolsplugin, MinitoolsPluginFactory("minitoolsplugin") ) K_EXPORT_COMPONENT_FACTORY( libminitoolsplugin, MinitoolsPluginFactory("minitoolsplugin") )
MinitoolsPlugin::MinitoolsPlugin(TQObject* tqparent, const char* name, const TQStringList &) MinitoolsPlugin::MinitoolsPlugin(TQObject* parent, const char* name, const TQStringList &)
: KParts::Plugin(tqparent, name) { : KParts::Plugin(parent, name) {
m_part = (tqparent && tqparent->inherits( "KHTMLPart" )) ? static_cast<KHTMLPart*>(tqparent) : 0L; m_part = (parent && parent->inherits( "KHTMLPart" )) ? static_cast<KHTMLPart*>(parent) : 0L;
m_pMinitoolsMenu = new KActionMenu(i18n("&Minitools"), "minitools", actionCollection(), "minitools"); m_pMinitoolsMenu = new KActionMenu(i18n("&Minitools"), "minitools", actionCollection(), "minitools");

@ -37,7 +37,7 @@ class MinitoolsPlugin : public KParts::Plugin {
TQ_OBJECT TQ_OBJECT
public: public:
MinitoolsPlugin( TQObject* tqparent, const char* name, const TQStringList & ); MinitoolsPlugin( TQObject* parent, const char* name, const TQStringList & );
~MinitoolsPlugin(); ~MinitoolsPlugin();
protected slots: protected slots:

@ -61,8 +61,8 @@ K_EXPORT_COMPONENT_FACTORY( librellinksplugin, RelLinksFactory("rellinks") )
#endif #endif
/** Constructor of the plugin. */ /** Constructor of the plugin. */
RelLinksPlugin::RelLinksPlugin(TQObject *tqparent, const char *name, const TQStringList &) RelLinksPlugin::RelLinksPlugin(TQObject *parent, const char *name, const TQStringList &)
: KParts::Plugin( tqparent, name ), : KParts::Plugin( parent, name ),
m_part(0), m_part(0),
m_viewVisible(false) m_viewVisible(false)
{ {
@ -74,7 +74,7 @@ RelLinksPlugin::RelLinksPlugin(TQObject *tqparent, const char *name, const TQStr
kaction_map["home"]->setWhatsThis( i18n("<p>This link references a home page or the top of some hierarchy.</p>") ); kaction_map["home"]->setWhatsThis( i18n("<p>This link references a home page or the top of some hierarchy.</p>") );
kaction_map["up"] = new KAction( i18n("&Up"), "1uparrow", KShortcut("Ctrl+Alt+U"), this, TQT_SLOT(goUp()), actionCollection(), "rellinks_up" ); kaction_map["up"] = new KAction( i18n("&Up"), "1uparrow", KShortcut("Ctrl+Alt+U"), this, TQT_SLOT(goUp()), actionCollection(), "rellinks_up" );
kaction_map["up"]->setWhatsThis( i18n("<p>This link references the immediate tqparent of the current document.</p>") ); kaction_map["up"]->setWhatsThis( i18n("<p>This link references the immediate parent of the current document.</p>") );
bool isRTL = TQApplication::reverseLayout(); bool isRTL = TQApplication::reverseLayout();
@ -175,7 +175,7 @@ RelLinksPlugin::RelLinksPlugin(TQObject *tqparent, const char *name, const TQStr
disableAll(); disableAll();
// When the rendering of the HTML is done, we update the site navigation bar // When the rendering of the HTML is done, we update the site navigation bar
m_part = dynamic_cast<KHTMLPart *>(tqparent); m_part = dynamic_cast<KHTMLPart *>(parent);
if (!m_part) if (!m_part)
return; return;
@ -364,7 +364,7 @@ void RelLinksPlugin::updateToolbar() {
void RelLinksPlugin::guessRelations() void RelLinksPlugin::guessRelations()
{ {
m_part = dynamic_cast<KHTMLPart *>(tqparent()); m_part = dynamic_cast<KHTMLPart *>(parent());
if (!m_part || m_part->document().isNull() ) if (!m_part || m_part->document().isNull() )
return; return;
@ -422,7 +422,7 @@ void RelLinksPlugin::guessRelations()
/** Menu links */ /** Menu links */
void RelLinksPlugin::goToLink(const TQString & rel, int id) { void RelLinksPlugin::goToLink(const TQString & rel, int id) {
// have the KHTML part open it // have the KHTML part open it
KHTMLPart *part = dynamic_cast<KHTMLPart *>(tqparent()); KHTMLPart *part = dynamic_cast<KHTMLPart *>(parent());
if (!part) if (!part)
return; return;
@ -571,7 +571,7 @@ TQString RelLinksPlugin::getLinkType(const TQString &lrel) {
// ...known relations... // ...known relations...
if (lrel == "top" || lrel == "origin" || lrel == "start") if (lrel == "top" || lrel == "origin" || lrel == "start")
return "home"; return "home";
if (lrel == "tqparent") if (lrel == "parent")
return "up"; return "up";
if (lrel == "first") if (lrel == "first")
return "begin"; return "begin";

@ -60,7 +60,7 @@ class RelLinksPlugin : public KParts::Plugin {
TQ_OBJECT TQ_OBJECT
public: public:
/** Constructor */ /** Constructor */
RelLinksPlugin( TQObject *tqparent, const char *name, const TQStringList & ); RelLinksPlugin( TQObject *parent, const char *name, const TQStringList & );
/** Destructor */ /** Destructor */
virtual ~RelLinksPlugin(); virtual ~RelLinksPlugin();

@ -100,12 +100,12 @@
/* /*
* RsyncConfigDialog implementation * RsyncConfigDialog implementation
*/ */
RsyncConfigDialog::RsyncConfigDialog(TQWidget* tqparent, const char* name, RsyncConfigDialog::RsyncConfigDialog(TQWidget* parent, const char* name,
const TQString& caption, const TQString& text, const TQString& caption, const TQString& text,
const TQString& localfolder, const TQString& remotefolder, const TQString& localfolder, const TQString& remotefolder,
int syncmode, bool modal) int syncmode, bool modal)
: KDialogBase(KDialogBase::Plain, caption, KDialogBase::Cancel | KDialogBase::Ok, : KDialogBase(KDialogBase::Plain, caption, KDialogBase::Cancel | KDialogBase::Ok,
KDialogBase::Ok, tqparent, name, modal), KDialogBase::Ok, parent, name, modal),
mAutoClose(true), mAutoClose(true),
mAutoReset(false), mAutoReset(false),
mCancelled(false), mCancelled(false),

@ -40,7 +40,7 @@ class RsyncConfigDialog : public KDialogBase
TQ_OBJECT TQ_OBJECT
public: public:
RsyncConfigDialog(TQWidget* tqparent = 0, const char* name = 0, RsyncConfigDialog(TQWidget* parent = 0, const char* name = 0,
const TQString& caption = TQString(), const TQString& caption = TQString(),
const TQString& text = TQString(), const TQString& text = TQString(),
const TQString& localfolder = TQString(), const TQString& localfolder = TQString(),

@ -106,13 +106,13 @@ typedef KGenericFactory<RsyncPlugin> RsyncPluginFactory;
K_EXPORT_COMPONENT_FACTORY(librsyncplugin, K_EXPORT_COMPONENT_FACTORY(librsyncplugin,
RsyncPluginFactory("rsyncplugin")) RsyncPluginFactory("rsyncplugin"))
RsyncPlugin::RsyncPlugin (TQObject* tqparent, const char* name, RsyncPlugin::RsyncPlugin (TQObject* parent, const char* name,
const TQStringList&) const TQStringList&)
:KParts::Plugin (tqparent, name), :KParts::Plugin (parent, name),
m_pSyncNow(0), m_pSyncNow(0),
m_pSyncSetup(0) m_pSyncSetup(0)
{ {
m_part = ::tqqt_cast<KonqDirPart*>(tqparent); m_part = ::tqqt_cast<KonqDirPart*>(parent);
if ( !m_part || !m_part->scrollWidget() ) if ( !m_part || !m_part->scrollWidget() )
return; return;

@ -52,7 +52,7 @@ class RsyncPlugin : public KParts::Plugin
public: public:
RsyncPlugin (TQObject* tqparent, const char* name, const TQStringList &); RsyncPlugin (TQObject* parent, const char* name, const TQStringList &);
virtual ~RsyncPlugin(); virtual ~RsyncPlugin();
protected: protected:

@ -57,9 +57,9 @@ K_EXPORT_COMPONENT_FACTORY(libsearchbarplugin,
SearchBarPluginFactory("searchbarplugin")) SearchBarPluginFactory("searchbarplugin"))
SearchBarPlugin::SearchBarPlugin(TQObject *tqparent, const char *name, SearchBarPlugin::SearchBarPlugin(TQObject *parent, const char *name,
const TQStringList &) : const TQStringList &) :
KParts::Plugin(tqparent, name), KParts::Plugin(parent, name),
m_searchCombo(0), m_searchCombo(0),
m_searchMode(UseSearchProvider), m_searchMode(UseSearchProvider),
m_urlEnterLock(false), m_urlEnterLock(false),
@ -94,7 +94,7 @@ SearchBarPlugin::SearchBarPlugin(TQObject *tqparent, const char *name,
configurationChanged(); configurationChanged();
KParts::MainWindow *mainWin = static_cast<KParts::MainWindow*>(TQT_TQWIDGET(tqparent)); KParts::MainWindow *mainWin = static_cast<KParts::MainWindow*>(TQT_TQWIDGET(parent));
//Grab the part manager. Don't know of any other way, and neither does Tronical, so.. //Grab the part manager. Don't know of any other way, and neither does Tronical, so..
KParts::PartManager *partMan = static_cast<KParts::PartManager*>(mainWin->child(0, "KParts::PartManager")); KParts::PartManager *partMan = static_cast<KParts::PartManager*>(mainWin->child(0, "KParts::PartManager"));
@ -546,8 +546,8 @@ void SearchBarPlugin::focusSearchbar()
#endif // USE_QT4 #endif // USE_QT4
} }
SearchBarCombo::SearchBarCombo(TQWidget *tqparent, const char *name) : SearchBarCombo::SearchBarCombo(TQWidget *parent, const char *name) :
KHistoryCombo(tqparent, name), KHistoryCombo(parent, name),
m_pluginActive(true) m_pluginActive(true)
{ {
connect(this, TQT_SIGNAL(cleared()), TQT_SLOT(historyCleared())); connect(this, TQT_SIGNAL(cleared()), TQT_SLOT(historyCleared()));

@ -48,7 +48,7 @@ class SearchBarCombo : public KHistoryCombo
/** /**
* Constructor. * Constructor.
*/ */
SearchBarCombo(TQWidget *tqparent, const char *name); SearchBarCombo(TQWidget *parent, const char *name);
/** /**
* Returns the icon currently displayed in the combo box. * Returns the icon currently displayed in the combo box.
@ -113,7 +113,7 @@ class SearchBarPlugin : public KParts::Plugin
/** Possible search modes */ /** Possible search modes */
enum SearchModes { FindInThisPage = 0, UseSearchProvider }; enum SearchModes { FindInThisPage = 0, UseSearchProvider };
SearchBarPlugin(TQObject *tqparent, const char *name, SearchBarPlugin(TQObject *parent, const char *name,
const TQStringList &); const TQStringList &);
virtual ~SearchBarPlugin(); virtual ~SearchBarPlugin();

@ -24,8 +24,8 @@
#include <kglobal.h> #include <kglobal.h>
#include <klocale.h> #include <klocale.h>
BookmarkListItem::BookmarkListItem( TQListView *tqparent, const TQString & url, const TQString & desc, time_t time ) BookmarkListItem::BookmarkListItem( TQListView *parent, const TQString & url, const TQString & desc, time_t time )
: KListViewItem( tqparent ), m_desc( desc ) : KListViewItem( parent ), m_desc( desc )
{ {
m_url = KURL::fromPathOrURL( url ); m_url = KURL::fromPathOrURL( url );
m_dateTime.setTime_t( time ); m_dateTime.setTime_t( time );

@ -34,7 +34,7 @@ class TQString;
class BookmarkListItem: public KListViewItem class BookmarkListItem: public KListViewItem
{ {
public: public:
BookmarkListItem( TQListView *tqparent, const TQString & url, const TQString & desc, time_t time ); BookmarkListItem( TQListView *parent, const TQString & url, const TQString & desc, time_t time );
KURL url() const; KURL url() const;
TQDateTime date() const; TQDateTime date() const;
TQString desc() const; TQString desc() const;

@ -42,8 +42,8 @@
#include <kconfig.h> #include <kconfig.h>
#include <kinputdialog.h> #include <kinputdialog.h>
MainWidget::MainWidget( KConfig * config, TQWidget * tqparent ) MainWidget::MainWidget( KConfig * config, TQWidget * parent )
: MainWidget_base( tqparent ), m_config( config ) : MainWidget_base( parent ), m_config( config )
{ {
loadTags(); loadTags();

@ -40,7 +40,7 @@ class MainWidget: public MainWidget_base
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
MainWidget( KConfig * config, TQWidget * tqparent ); MainWidget( KConfig * config, TQWidget * parent );
~MainWidget(); ~MainWidget();
/** /**

@ -27,10 +27,10 @@
#include <klocale.h> #include <klocale.h>
#include <kglobal.h> #include <kglobal.h>
KonqSidebarDelicious::KonqSidebarDelicious( KInstance *instance, TQObject *tqparent, KonqSidebarDelicious::KonqSidebarDelicious( KInstance *instance, TQObject *parent,
TQWidget *widgetParent, TQString &desktopName_, TQWidget *widgetParent, TQString &desktopName_,
const char* name ) const char* name )
: KonqSidebarPlugin( instance, tqparent, widgetParent, desktopName_, name ), : KonqSidebarPlugin( instance, parent, widgetParent, desktopName_, name ),
DCOPObject( "sidebar-delicious" ) DCOPObject( "sidebar-delicious" )
{ {

@ -43,7 +43,7 @@ class KonqSidebarDelicious: public KonqSidebarPlugin, DCOPObject
// TQ_OBJECT // TQ_OBJECT
K_DCOP K_DCOP
public: public:
KonqSidebarDelicious( KInstance * instance, TQObject * tqparent, TQWidget * widgetParent, KonqSidebarDelicious( KInstance * instance, TQObject * parent, TQWidget * widgetParent,
TQString & desktopName_, const char * name = 0 ); TQString & desktopName_, const char * name = 0 );
~KonqSidebarDelicious(); ~KonqSidebarDelicious();
virtual void * provides( const TQString & ); virtual void * provides( const TQString & );

@ -21,8 +21,8 @@
#include "tagListItem.h" #include "tagListItem.h"
TagListItem::TagListItem( TQListView * tqparent, const TQString & tagName, int count ) TagListItem::TagListItem( TQListView * parent, const TQString & tagName, int count )
: TQCheckListItem( tqparent, tagName, TQCheckListItem::CheckBox ), m_name( tagName ), m_count( count ) : TQCheckListItem( parent, tagName, TQCheckListItem::CheckBox ), m_name( tagName ), m_count( count )
{ {
} }

@ -30,7 +30,7 @@ class TagListItem: public TQObject, public TQCheckListItem
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
TagListItem( TQListView * tqparent, const TQString & tagName, int count = 1 ); TagListItem( TQListView * parent, const TQString & tagName, int count = 1 );
int count() const; int count() const;
TQString name() const; TQString name() const;
void setName( const TQString & name ); void setName( const TQString & name );

@ -23,15 +23,15 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "controls.h" #include "controls.h"
L33tSlider::L33tSlider(TQWidget * tqparent, const char * name) : L33tSlider::L33tSlider(TQWidget * parent, const char * name) :
TQSlider(tqparent,name), pressed(false) TQSlider(parent,name), pressed(false)
{} {}
L33tSlider::L33tSlider(Qt::Orientation o, TQWidget * tqparent, const char * name) : L33tSlider::L33tSlider(Qt::Orientation o, TQWidget * parent, const char * name) :
TQSlider(o,tqparent,name), pressed(false) TQSlider(o,parent,name), pressed(false)
{} {}
L33tSlider::L33tSlider(int minValue, int maxValue, int pageStep, int value, L33tSlider::L33tSlider(int minValue, int maxValue, int pageStep, int value,
Qt::Orientation o, TQWidget * tqparent, const char * name) : Qt::Orientation o, TQWidget * parent, const char * name) :
TQSlider(minValue, maxValue, pageStep, value, o, tqparent,name), pressed(false) TQSlider(minValue, maxValue, pageStep, value, o, parent,name), pressed(false)
{} {}
bool L33tSlider::currentlyPressed() const bool L33tSlider::currentlyPressed() const
@ -76,8 +76,8 @@ void L33tSlider::wheelEvent(TQWheelEvent *e)
} }
SliderAction::SliderAction(const TQString& text, int accel, const TQObject *receiver, SliderAction::SliderAction(const TQString& text, int accel, const TQObject *receiver,
const char *member, TQObject* tqparent, const char* name ) const char *member, TQObject* parent, const char* name )
: KAction( text, accel, tqparent, name ) : KAction( text, accel, parent, name )
{ {
m_receiver = receiver; m_receiver = receiver;
m_member = member; m_member = member;

@ -43,10 +43,10 @@ class L33tSlider : public TQSlider
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
L33tSlider(TQWidget * tqparent, const char * name=0); L33tSlider(TQWidget * parent, const char * name=0);
L33tSlider(Qt::Orientation, TQWidget * tqparent, const char * name=0); L33tSlider(Qt::Orientation, TQWidget * parent, const char * name=0);
L33tSlider(int minValue, int maxValue, int pageStep, int value, L33tSlider(int minValue, int maxValue, int pageStep, int value,
Qt::Orientation, TQWidget * tqparent, const char * name=0); Qt::Orientation, TQWidget * parent, const char * name=0);
bool currentlyPressed() const; bool currentlyPressed() const;
signals: signals:
@ -75,7 +75,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
SliderAction(const TQString& text, int accel, const TQObject *receiver, SliderAction(const TQString& text, int accel, const TQObject *receiver,
const char *member, TQObject* tqparent, const char* name ); const char *member, TQObject* parent, const char* name );
virtual int plug( TQWidget *w, int index = -1 ); virtual int plug( TQWidget *w, int index = -1 );
virtual void unplug( TQWidget *w ); virtual void unplug( TQWidget *w );
TQSlider* slider() const { return m_slider; } TQSlider* slider() const { return m_slider; }

@ -71,8 +71,8 @@ public:
KURL file; KURL file;
}; };
Engine::Engine(TQObject *tqparent) Engine::Engine(TQObject *parent)
: TQObject(tqparent) : TQObject(parent)
, d(new EnginePrivate) , d(new EnginePrivate)
{ {
} }

@ -46,7 +46,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
Engine(TQObject *tqparent=0); Engine(TQObject *parent=0);
~Engine(); ~Engine();
Arts::PlayObject playObject() const; Arts::PlayObject playObject() const;

@ -27,8 +27,8 @@
#include <kdemacros.h> #include <kdemacros.h>
#include "mediawidget.h" #include "mediawidget.h"
KonqSidebar_MediaPlayer::KonqSidebar_MediaPlayer(KInstance *instance,TQObject *tqparent,TQWidget *widgetParent, TQString &desktopName_, const char* name): KonqSidebar_MediaPlayer::KonqSidebar_MediaPlayer(KInstance *instance,TQObject *parent,TQWidget *widgetParent, TQString &desktopName_, const char* name):
KonqSidebarPlugin(instance,tqparent,widgetParent,desktopName_,name) KonqSidebarPlugin(instance,parent,widgetParent,desktopName_,name)
{ {
widget=new KSB_MediaWidget(widgetParent); widget=new KSB_MediaWidget(widgetParent);
} }

@ -29,7 +29,7 @@ class KonqSidebar_MediaPlayer: public KonqSidebarPlugin
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
KonqSidebar_MediaPlayer(KInstance *instance,TQObject *tqparent,TQWidget *widgetParent, TQString &desktopName_, const char* name=0); KonqSidebar_MediaPlayer(KInstance *instance,TQObject *parent,TQWidget *widgetParent, TQString &desktopName_, const char* name=0);
~KonqSidebar_MediaPlayer(); ~KonqSidebar_MediaPlayer();
virtual void *provides(const TQString &); virtual void *provides(const TQString &);
void emitStatusBarText (const TQString &); void emitStatusBarText (const TQString &);

@ -32,7 +32,7 @@
#include <tqslider.h> #include <tqslider.h>
#include <tqtooltip.h> #include <tqtooltip.h>
KSB_MediaWidget::KSB_MediaWidget(TQWidget *tqparent):KSB_MediaWidget_skel(tqparent) KSB_MediaWidget::KSB_MediaWidget(TQWidget *parent):KSB_MediaWidget_skel(parent)
{ {
player = new Player(TQT_TQOBJECT(this)); player = new Player(TQT_TQOBJECT(this));
empty(); empty();

@ -26,7 +26,7 @@ class KSB_MediaWidget: public KSB_MediaWidget_skel
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
KSB_MediaWidget(TQWidget *tqparent); KSB_MediaWidget(TQWidget *parent);
~KSB_MediaWidget(){;} ~KSB_MediaWidget(){;}
private: private:

@ -29,8 +29,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "engine.h" #include "engine.h"
#include "player.h" #include "player.h"
Player::Player(TQObject *tqparent) Player::Player(TQObject *parent)
: TQObject(tqparent) : TQObject(parent)
, position(0) , position(0)
, unfinished(false) , unfinished(false)
{ {

@ -40,7 +40,7 @@ Q_OBJECT
friend class KaboodlePart; friend class KaboodlePart;
public: public:
Player(TQObject *tqparent = 0); Player(TQObject *parent = 0);
~Player(); ~Player();
/** /**

@ -56,9 +56,9 @@ ActionListItem::ActionListItem(TQListBox *listbox, const TQString &action, const
setText(text); setText(text);
} }
ConfigDialog::ConfigDialog(TQWidget *tqparent, const char *name) : TQDialog(tqparent, name) ConfigDialog::ConfigDialog(TQWidget *parent, const char *name) : TQDialog(parent, name)
{ {
topWidgetName = tqparent->tqtopLevelWidget()->name(); topWidgetName = parent->tqtopLevelWidget()->name();
config = new KConfig("metabarrc"); config = new KConfig("metabarrc");
iconConfig = new KConfig(locate("data", "metabar/iconsrc")); iconConfig = new KConfig(locate("data", "metabar/iconsrc"));

@ -48,7 +48,7 @@ class ConfigDialog : public TQDialog
TQ_OBJECT TQ_OBJECT
public: public:
ConfigDialog(TQWidget *tqparent = 0, const char *name = 0); ConfigDialog(TQWidget *parent = 0, const char *name = 0);
~ConfigDialog(); ~ConfigDialog();
protected: protected:

@ -7,8 +7,8 @@
#include "metabar.h" #include "metabar.h"
#include "metabar.moc" #include "metabar.moc"
Metabar::Metabar(KInstance *inst,TQObject *tqparent,TQWidget *widgetParent, TQString &desktopName, const char* name): Metabar::Metabar(KInstance *inst,TQObject *parent,TQWidget *widgetParent, TQString &desktopName, const char* name):
KonqSidebarPlugin(inst,tqparent,widgetParent,desktopName,name) KonqSidebarPlugin(inst,parent,widgetParent,desktopName,name)
{ {
KImageIO::registerFormats(); KImageIO::registerFormats();
KGlobal::locale()->insertCatalogue( "konqsidebar_metabar" ); KGlobal::locale()->insertCatalogue( "konqsidebar_metabar" );

@ -16,7 +16,7 @@ class Metabar : public KonqSidebarPlugin
TQ_OBJECT TQ_OBJECT
public: public:
Metabar(KInstance *inst,TQObject *tqparent,TQWidget *widgetParent, TQString &desktopName, const char* name=0); Metabar(KInstance *inst,TQObject *parent,TQWidget *widgetParent, TQString &desktopName, const char* name=0);
~Metabar(); ~Metabar();
virtual TQWidget *getWidget(){ return widget; } virtual TQWidget *getWidget(){ return widget; }

@ -32,7 +32,7 @@
#define RESIZE_SPEED 5 #define RESIZE_SPEED 5
#define RESIZE_STEP 2 #define RESIZE_STEP 2
MetabarFunctions::MetabarFunctions(KHTMLPart *html, TQObject *tqparent, const char* name) : TQObject(tqparent, name), m_html(html) MetabarFunctions::MetabarFunctions(KHTMLPart *html, TQObject *parent, const char* name) : TQObject(parent, name), m_html(html)
{ {
timer = new TQTimer(this); timer = new TQTimer(this);
connect(timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(animate())); connect(timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(animate()));
@ -187,9 +187,9 @@ void MetabarFunctions::show(DOM::DOMString item)
DOM::HTMLDocument doc = m_html->htmlDocument(); DOM::HTMLDocument doc = m_html->htmlDocument();
DOM::HTMLElement node = static_cast<DOM::HTMLElement>(doc.getElementById(item)); DOM::HTMLElement node = static_cast<DOM::HTMLElement>(doc.getElementById(item));
if(!node.isNull()){ if(!node.isNull()){
DOM::HTMLElement tqparent = static_cast<DOM::HTMLElement>(node.parentNode()); DOM::HTMLElement parent = static_cast<DOM::HTMLElement>(node.parentNode());
DOM::CSSStyleDeclaration style = tqparent.style(); DOM::CSSStyleDeclaration style = parent.style();
style.setProperty("display", "block", CSS_PRIORITY); style.setProperty("display", "block", CSS_PRIORITY);
} }
} }
@ -199,9 +199,9 @@ void MetabarFunctions::hide(DOM::DOMString item)
DOM::HTMLDocument doc = m_html->htmlDocument(); DOM::HTMLDocument doc = m_html->htmlDocument();
DOM::HTMLElement node = static_cast<DOM::HTMLElement>(doc.getElementById(item)); DOM::HTMLElement node = static_cast<DOM::HTMLElement>(doc.getElementById(item));
if(!node.isNull()){ if(!node.isNull()){
DOM::HTMLElement tqparent = static_cast<DOM::HTMLElement>(node.parentNode()); DOM::HTMLElement parent = static_cast<DOM::HTMLElement>(node.parentNode());
DOM::CSSStyleDeclaration style = tqparent.style(); DOM::CSSStyleDeclaration style = parent.style();
style.setProperty("display", "none", CSS_PRIORITY); style.setProperty("display", "none", CSS_PRIORITY);
} }
} }

@ -35,7 +35,7 @@ class MetabarFunctions : public TQObject
TQ_OBJECT TQ_OBJECT
public: public:
MetabarFunctions(KHTMLPart *html, TQObject *tqparent = 0, const char* name=0); MetabarFunctions(KHTMLPart *html, TQObject *parent = 0, const char* name=0);
~MetabarFunctions(); ~MetabarFunctions();
void toggle(DOM::DOMString item); void toggle(DOM::DOMString item);

@ -73,7 +73,7 @@
#define EVENT_TYPE DOM::DOMString("click") #define EVENT_TYPE DOM::DOMString("click")
#define ACTIVATION 1 #define ACTIVATION 1
MetabarWidget::MetabarWidget(TQWidget *tqparent, const char *name) : TQWidget(tqparent, name) MetabarWidget::MetabarWidget(TQWidget *parent, const char *name) : TQWidget(parent, name)
{ {
skip = false; skip = false;
loadComplete = false; loadComplete = false;
@ -419,8 +419,8 @@ void MetabarWidget::handleURLRequest(const KURL &url, const KParts::URLArgs &arg
for(uint i = 0; i < list.length(); i++){ for(uint i = 0; i < list.length(); i++){
DOM::HTMLElement node = static_cast<DOM::HTMLElement>(list.item(i)); DOM::HTMLElement node = static_cast<DOM::HTMLElement>(list.item(i));
if(!node.isNull()){ if(!node.isNull()){
DOM::HTMLElement tqparent = static_cast<DOM::HTMLElement>(node.parentNode()); DOM::HTMLElement parent = static_cast<DOM::HTMLElement>(node.parentNode());
DOM::CSSStyleDeclaration style = tqparent.style(); DOM::CSSStyleDeclaration style = parent.style();
DOM::DOMString display = style.getPropertyValue("display"); DOM::DOMString display = style.getPropertyValue("display");
DOM::DOMString newDisplay = display == "none" ? "block" : "none"; DOM::DOMString newDisplay = display == "none" ? "block" : "none";
@ -436,8 +436,8 @@ void MetabarWidget::handleURLRequest(const KURL &url, const KParts::URLArgs &arg
element.setAttribute("style", style); element.setAttribute("style", style);
} }
DOM::HTMLElement tqparent = static_cast<DOM::HTMLElement>(element.parentNode().parentNode()); DOM::HTMLElement parent = static_cast<DOM::HTMLElement>(element.parentNode().parentNode());
functions->adjustSize(tqparent.id()); functions->adjustSize(parent.id());
} }
else if(protocol == "function"){ else if(protocol == "function"){

@ -41,7 +41,7 @@ class MetabarWidget : public TQWidget
TQ_OBJECT TQ_OBJECT
public: public:
MetabarWidget(TQWidget *tqparent = 0, const char* name=0); MetabarWidget(TQWidget *parent = 0, const char* name=0);
~MetabarWidget(); ~MetabarWidget();
void setFileItems(const KFileItemList &items, bool check = true); void setFileItems(const KFileItemList &items, bool check = true);

@ -37,7 +37,7 @@
#include <kstandarddirs.h> #include <kstandarddirs.h>
ServiceLoader::ServiceLoader(TQWidget *tqparent, const char *name) : TQObject(tqparent, name) ServiceLoader::ServiceLoader(TQWidget *parent, const char *name) : TQObject(parent, name)
{ {
popups.setAutoDelete(true); popups.setAutoDelete(true);
} }

@ -41,7 +41,7 @@ class ServiceLoader : public TQObject
TQ_OBJECT TQ_OBJECT
public: public:
ServiceLoader(TQWidget *tqparent, const char *name = 0); ServiceLoader(TQWidget *parent, const char *name = 0);
~ServiceLoader(); ~ServiceLoader();
void loadServices(const KFileItem item, DOM::DOMString &html, int &count); void loadServices(const KFileItem item, DOM::DOMString &html, int &count);

@ -29,7 +29,7 @@
namespace KSB_News { namespace KSB_News {
ConfigFeeds::ConfigFeeds(TQWidget* tqparent, const char* name) : ConfigFeedsBase(tqparent, name) ConfigFeeds::ConfigFeeds(TQWidget* parent, const char* name) : ConfigFeedsBase(parent, name)
{ {
} }

@ -44,7 +44,7 @@ namespace KSB_News {
TQ_OBJECT TQ_OBJECT
public: public:
ConfigFeeds(TQWidget* tqparent, const char* name = 0); ConfigFeeds(TQWidget* parent, const char* name = 0);
}; };

@ -37,8 +37,8 @@
namespace KSB_News { namespace KSB_News {
NoRSSWidget::NoRSSWidget(TQWidget *tqparent, const char *name) NoRSSWidget::NoRSSWidget(TQWidget *parent, const char *name)
: TQWidget(tqparent, name) { : TQWidget(parent, name) {
TQVBoxLayout *topLayout = new TQVBoxLayout(this); TQVBoxLayout *topLayout = new TQVBoxLayout(this);

@ -36,7 +36,7 @@ namespace KSB_News {
TQ_OBJECT TQ_OBJECT
public: public:
NoRSSWidget(TQWidget *tqparent = 0, const char *name = 0); NoRSSWidget(TQWidget *parent = 0, const char *name = 0);
private slots: private slots:
void slotBtnClicked(); void slotBtnClicked();

@ -35,8 +35,8 @@ namespace KSB_News {
//////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////
// ListBox including ToolTip for item // ListBox including ToolTip for item
//////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////
TTListBox::TTListBox(TQWidget *tqparent, const char *name, WFlags f) TTListBox::TTListBox(TQWidget *parent, const char *name, WFlags f)
: KListBox(tqparent, name, f), : KListBox(parent, name, f),
TQToolTip(this) { TQToolTip(this) {
} }
@ -61,9 +61,9 @@ namespace KSB_News {
NSPanel::NSPanel(TQObject *tqparent, const char *name, const TQString &key, NSPanel::NSPanel(TQObject *parent, const char *name, const TQString &key,
DCOPRef *rssservice) DCOPRef *rssservice)
:TQObject(tqparent, name) :TQObject(parent, name)
,DCOPObject(TQString(TQString("sidebar-newsticker-")+key).latin1()) ,DCOPObject(TQString(TQString("sidebar-newsticker-")+key).latin1())
,m_listbox() ,m_listbox()
,m_pixmap() ,m_pixmap()

@ -44,7 +44,7 @@ namespace KSB_News {
//////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////
class TTListBox : public KListBox, TQToolTip { class TTListBox : public KListBox, TQToolTip {
public: public:
TTListBox (TQWidget *tqparent = 0, const char *name = 0, WFlags f = 0); TTListBox (TQWidget *parent = 0, const char *name = 0, WFlags f = 0);
void clear(); void clear();
protected: protected:
@ -59,7 +59,7 @@ namespace KSB_News {
K_DCOP K_DCOP
public: public:
NSPanel(TQObject *tqparent, const char *name, const TQString &key, NSPanel(TQObject *parent, const char *name, const TQString &key,
DCOPRef *rssservice); DCOPRef *rssservice);
~NSPanel(); ~NSPanel();

@ -50,8 +50,8 @@
namespace KSB_News { namespace KSB_News {
NSStackTabWidget::NSStackTabWidget(TQWidget *tqparent, const char *name, NSStackTabWidget::NSStackTabWidget(TQWidget *parent, const char *name,
TQPixmap appIcon) : TQWidget(tqparent, name) { TQPixmap appIcon) : TQWidget(parent, name) {
currentPage = 0; currentPage = 0;
tqlayout = new TQVBoxLayout(this); tqlayout = new TQVBoxLayout(this);

@ -50,7 +50,7 @@ namespace KSB_News {
TQ_OBJECT TQ_OBJECT
public: public:
NSStackTabWidget(TQWidget *tqparent = 0, const char *name = 0, NSStackTabWidget(TQWidget *parent = 0, const char *name = 0,
TQPixmap appIcon = TQPixmap()); TQPixmap appIcon = TQPixmap());
void addStackTab(NSPanel *nsp, TQWidget *page); void addStackTab(NSPanel *nsp, TQWidget *page);
void delStackTab(NSPanel *nsp); void delStackTab(NSPanel *nsp);

@ -46,10 +46,10 @@
namespace KSB_News { namespace KSB_News {
KonqSidebar_News::KonqSidebar_News(KInstance *inst, TQObject *tqparent, KonqSidebar_News::KonqSidebar_News(KInstance *inst, TQObject *parent,
TQWidget *widgetParent, TQWidget *widgetParent,
TQString &desktopName, const char* name) TQString &desktopName, const char* name)
: KonqSidebarPlugin(inst, tqparent, widgetParent, desktopName, name), : KonqSidebarPlugin(inst, parent, widgetParent, desktopName, name),
DCOPObject("sidebar-newsticker") DCOPObject("sidebar-newsticker")
{ {
// get the application icon // get the application icon

@ -48,7 +48,7 @@ namespace KSB_News {
K_DCOP K_DCOP
public: public:
KonqSidebar_News(KInstance *instance, TQObject *tqparent, KonqSidebar_News(KInstance *instance, TQObject *parent,
TQWidget *widgetParent, TQString &desktopName_, TQWidget *widgetParent, TQString &desktopName_,
const char* name=0); const char* name=0);
~KonqSidebar_News(); ~KonqSidebar_News();

@ -50,9 +50,9 @@ K_EXPORT_COMPONENT_FACTORY (libuachangerplugin, UAChangerPluginFactory (&aboutda
#define TQFL1(x) TQString::tqfromLatin1(x) #define TQFL1(x) TQString::tqfromLatin1(x)
UAChangerPlugin::UAChangerPlugin( TQObject* tqparent, const char* name, UAChangerPlugin::UAChangerPlugin( TQObject* parent, const char* name,
const TQStringList & ) const TQStringList & )
:KParts::Plugin( tqparent, name ), :KParts::Plugin( parent, name ),
m_bSettingsLoaded(false), m_part(0L), m_config(0L) m_bSettingsLoaded(false), m_part(0L), m_config(0L)
{ {
setInstance(UAChangerPlugin::instance()); setInstance(UAChangerPlugin::instance());
@ -65,9 +65,9 @@ UAChangerPlugin::UAChangerPlugin( TQObject* tqparent, const char* name,
m_pUAMenu->setEnabled ( false ); m_pUAMenu->setEnabled ( false );
if ( tqparent && tqparent->inherits( "KHTMLPart" ) ) if ( parent && parent->inherits( "KHTMLPart" ) )
{ {
m_part = static_cast<KHTMLPart*>(tqparent); m_part = static_cast<KHTMLPart*>(parent);
connect( m_part, TQT_SIGNAL(started(KIO::Job*)), this, connect( m_part, TQT_SIGNAL(started(KIO::Job*)), this,
TQT_SLOT(slotStarted(KIO::Job*)) ); TQT_SLOT(slotStarted(KIO::Job*)) );
} }

@ -44,7 +44,7 @@ class UAChangerPlugin : public KParts::Plugin
TQ_OBJECT TQ_OBJECT
public: public:
UAChangerPlugin( TQObject* tqparent, const char* name, UAChangerPlugin( TQObject* parent, const char* name,
const TQStringList & ); const TQStringList & );
~UAChangerPlugin(); ~UAChangerPlugin();

@ -44,9 +44,9 @@ static const KAboutData aboutdata("validatorsplugin", I18N_NOOP("Validate Web Pa
K_EXPORT_COMPONENT_FACTORY( libvalidatorsplugin, K_EXPORT_COMPONENT_FACTORY( libvalidatorsplugin,
PluginValidatorsFactory( &aboutdata ) ) PluginValidatorsFactory( &aboutdata ) )
PluginValidators::PluginValidators( TQObject* tqparent, const char* name, PluginValidators::PluginValidators( TQObject* parent, const char* name,
const TQStringList & ) const TQStringList & )
: Plugin( tqparent, name ), m_configDialog(0), m_part(0) : Plugin( parent, name ), m_configDialog(0), m_part(0)
{ {
setInstance(PluginValidatorsFactory::instance()); setInstance(PluginValidatorsFactory::instance());
@ -71,14 +71,14 @@ PluginValidators::PluginValidators( TQObject* tqparent, const char* name,
m_menu->setEnabled( false ); m_menu->setEnabled( false );
if ( tqparent && tqparent->inherits( "KHTMLPart" )) if ( parent && parent->inherits( "KHTMLPart" ))
{ {
m_menu->insert( new KAction( i18n( "C&onfigure Validator..." ), m_menu->insert( new KAction( i18n( "C&onfigure Validator..." ),
"configure", 0, "configure", 0,
this, TQT_SLOT(slotConfigure()), this, TQT_SLOT(slotConfigure()),
actionCollection(), "configure") ); actionCollection(), "configure") );
m_part = static_cast<KHTMLPart *>( tqparent ); m_part = static_cast<KHTMLPart *>( parent );
m_configDialog = new ValidatorsDialog( m_part->widget() ); m_configDialog = new ValidatorsDialog( m_part->widget() );
setURLs(); setURLs();
@ -90,7 +90,7 @@ PluginValidators::PluginValidators( TQObject* tqparent, const char* name,
PluginValidators::~PluginValidators() PluginValidators::~PluginValidators()
{ {
delete m_configDialog; delete m_configDialog;
// Dont' delete the action. KActionCollection as tqparent does the job already // Dont' delete the action. KActionCollection as parent does the job already
// and not deleting it at this point also ensures that in case we are not unplugged // and not deleting it at this point also ensures that in case we are not unplugged
// from the GUI yet and the ~KXMLGUIClient destructor will do so it won't hit a // from the GUI yet and the ~KXMLGUIClient destructor will do so it won't hit a
// dead pointer. The kxmlgui factory keeps references to the actions, but it does not // dead pointer. The kxmlgui factory keeps references to the actions, but it does not
@ -140,8 +140,8 @@ void PluginValidators::slotConfigure()
void PluginValidators::validateURL(const KURL &url, const KURL &uploadUrl) void PluginValidators::validateURL(const KURL &url, const KURL &uploadUrl)
{ {
// The tqparent is assumed to be a KHTMLPart // The parent is assumed to be a KHTMLPart
if ( !tqparent()->inherits("KHTMLPart") ) if ( !parent()->inherits("KHTMLPart") )
{ {
TQString title = i18n( "Cannot Validate Source" ); TQString title = i18n( "Cannot Validate Source" );
TQString text = i18n( "You cannot validate anything except web pages with " TQString text = i18n( "You cannot validate anything except web pages with "

@ -43,7 +43,7 @@ class PluginValidators : public KParts::Plugin
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
PluginValidators( TQObject* tqparent, const char* name, PluginValidators( TQObject* parent, const char* name,
const TQStringList & ); const TQStringList & );
virtual ~PluginValidators(); virtual ~PluginValidators();

@ -29,8 +29,8 @@
#include "validatorsdialog.h" #include "validatorsdialog.h"
#include "validatorsdialog.moc" #include "validatorsdialog.moc"
ValidatorsDialog::ValidatorsDialog(TQWidget *tqparent, const char *name ) ValidatorsDialog::ValidatorsDialog(TQWidget *parent, const char *name )
: KDialogBase( tqparent, name, false, i18n("Configure"), Ok|Cancel, Ok, true ) : KDialogBase( parent, name, false, i18n("Configure"), Ok|Cancel, Ok, true )
{ {
setCaption(i18n("Configure Validating Servers")); setCaption(i18n("Configure Validating Servers"));
setMinimumWidth(300); setMinimumWidth(300);

@ -31,7 +31,7 @@ class ValidatorsDialog : public KDialogBase
TQ_OBJECT TQ_OBJECT
public: public:
ValidatorsDialog(TQWidget *tqparent=0, const char *name=0 ); ValidatorsDialog(TQWidget *parent=0, const char *name=0 );
~ValidatorsDialog(); ~ValidatorsDialog();
const TQString getWWWValidatorUrl() const {return m_WWWValidatorCB->currentText();} const TQString getWWWValidatorUrl() const {return m_WWWValidatorCB->currentText();}

@ -49,9 +49,9 @@
#define CONTENT_TYPE "<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\">" #define CONTENT_TYPE "<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\">"
ArchiveDialog::ArchiveDialog(TQWidget *tqparent, const TQString &filename, ArchiveDialog::ArchiveDialog(TQWidget *parent, const TQString &filename,
KHTMLPart *part) : KHTMLPart *part) :
KDialogBase(tqparent, "WebArchiveDialog", false, i18n("Web Archiver"), KDialogBase(parent, "WebArchiveDialog", false, i18n("Web Archiver"),
KDialogBase::Ok | KDialogBase::Cancel | KDialogBase::User1 ), KDialogBase::Ok | KDialogBase::Cancel | KDialogBase::User1 ),
m_bPreserveWS(false), m_tmpFile(0), m_url(part->url()) m_bPreserveWS(false), m_tmpFile(0), m_url(part->url())
{ {

@ -44,7 +44,7 @@ class ArchiveDialog : public KDialogBase
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
ArchiveDialog(TQWidget *tqparent, const TQString &targetFilename, KHTMLPart *part); ArchiveDialog(TQWidget *parent, const TQString &targetFilename, KHTMLPart *part);
~ArchiveDialog(); ~ArchiveDialog();
void archive(); void archive();

@ -50,9 +50,9 @@ typedef KGenericFactory<PluginWebArchiver> PluginWebArchiverFactory;
K_EXPORT_COMPONENT_FACTORY( libwebarchiverplugin, K_EXPORT_COMPONENT_FACTORY( libwebarchiverplugin,
PluginWebArchiverFactory( "webarchiver" ) ) PluginWebArchiverFactory( "webarchiver" ) )
PluginWebArchiver::PluginWebArchiver( TQObject* tqparent, const char* name, PluginWebArchiver::PluginWebArchiver( TQObject* parent, const char* name,
const TQStringList & ) const TQStringList & )
: Plugin( tqparent, name ) : Plugin( parent, name )
{ {
(void) new KAction( i18n("Archive &Web Page..."), (void) new KAction( i18n("Archive &Web Page..."),
"webarchiver", 0, "webarchiver", 0,
@ -67,9 +67,9 @@ PluginWebArchiver::~PluginWebArchiver()
void PluginWebArchiver::slotSaveToArchive() void PluginWebArchiver::slotSaveToArchive()
{ {
// ## Unicode ok? // ## Unicode ok?
if( !tqparent() || !tqparent()->inherits("KHTMLPart")) if( !parent() || !parent()->inherits("KHTMLPart"))
return; return;
KHTMLPart *part = static_cast<KHTMLPart *>( tqparent() ); KHTMLPart *part = static_cast<KHTMLPart *>( parent() );
TQString archiveName = TQString::fromUtf8(part->htmlDocument().title().string().utf8()); TQString archiveName = TQString::fromUtf8(part->htmlDocument().title().string().utf8());

@ -31,7 +31,7 @@ class PluginWebArchiver : public KParts::Plugin
TQ_OBJECT TQ_OBJECT
public: public:
PluginWebArchiver( TQObject* tqparent, const char* name, PluginWebArchiver( TQObject* parent, const char* name,
const TQStringList & ); const TQStringList & );
virtual ~PluginWebArchiver(); virtual ~PluginWebArchiver();

@ -36,7 +36,7 @@
// public methods // public methods
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
KSig::KSig(TQWidget *tqparent, const char *name) : KMainWindow(tqparent, name), KSig::KSig(TQWidget *parent, const char *name) : KMainWindow(parent, name),
changed(false) changed(false)
{ {
setupActions(); setupActions();

@ -31,7 +31,7 @@ class KSig : public KMainWindow
TQ_OBJECT TQ_OBJECT
public: public:
KSig(TQWidget *tqparent = 0, const char *name = 0); KSig(TQWidget *parent = 0, const char *name = 0);
virtual ~KSig(); virtual ~KSig();
private: private:

@ -29,10 +29,10 @@ SigListView *SigListView::listView = 0;
// public members // public members
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
SigListView *SigListView::instance(TQWidget *tqparent, const char *name) SigListView *SigListView::instance(TQWidget *parent, const char *name)
{ {
if(!listView) if(!listView)
listView = new SigListView(tqparent, name); listView = new SigListView(parent, name);
return(listView); return(listView);
} }
@ -108,7 +108,7 @@ const SigListViewItem *SigListView::currentItem() const
// protected members // protected members
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
SigListView::SigListView(TQWidget *tqparent, const char *name) : KListView(tqparent, name) SigListView::SigListView(TQWidget *parent, const char *name) : KListView(parent, name)
{ {
addColumn(i18n("Signatures")); addColumn(i18n("Signatures"));

@ -39,7 +39,7 @@ class SigListView : public KListView
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
static SigListView *instance(TQWidget *tqparent = 0, const char *name = 0); static SigListView *instance(TQWidget *parent = 0, const char *name = 0);
void load(); void load();
void save(); void save();
@ -58,7 +58,7 @@ public slots:
void clear() {} void clear() {}
protected: protected:
SigListView(TQWidget *tqparent = 0, const char *name = 0); SigListView(TQWidget *parent = 0, const char *name = 0);
virtual ~SigListView(); virtual ~SigListView();
private: private:

@ -74,7 +74,7 @@ void SigListViewItem::nodeToText(const TQDomNode &n, TQString &s)
// private members // private members
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
SigListViewItem::SigListViewItem(TQListView *tqparent, TQDomDocument document, TQDomElement signatureElement) : KListViewItem(tqparent) SigListViewItem::SigListViewItem(TQListView *parent, TQDomDocument document, TQDomElement signatureElement) : KListViewItem(parent)
{ {
emptySigString = i18n("<empty signature>"); emptySigString = i18n("<empty signature>");

@ -39,7 +39,7 @@ private:
* created using SigListView::createItem(). This is accessible to * created using SigListView::createItem(). This is accessible to
* SigListView because SigListView is a friend class. * SigListView because SigListView is a friend class.
*/ */
SigListViewItem(TQListView *tqparent, TQDomDocument document, TQDomElement signatureElement); SigListViewItem(TQListView *parent, TQDomDocument document, TQDomElement signatureElement);
/** /**
* Renders the data back to the DOM element. * Renders the data back to the DOM element.

@ -20,7 +20,7 @@
#include "standardtext.h" #include "standardtext.h"
StandardText::StandardText(TQWidget *tqparent, const char *name, bool modal, WFlags fl) : StandardTextBase(tqparent, name, modal, fl) StandardText::StandardText(TQWidget *parent, const char *name, bool modal, WFlags fl) : StandardTextBase(parent, name, modal, fl)
{ {
} }

@ -24,7 +24,7 @@ class StandardText : public StandardTextBase
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
StandardText(TQWidget *tqparent = 0, const char *name = 0, bool modal = false, WFlags fl = 0); StandardText(TQWidget *parent = 0, const char *name = 0, bool modal = false, WFlags fl = 0);
virtual ~StandardText(); virtual ~StandardText();
void setLabel(const TQString &text); void setLabel(const TQString &text);

@ -165,8 +165,8 @@ void Wakeup::slotVolumeChange()
/////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////
// Prefs CModule // Prefs CModule
/////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////
WakeupPrefs::WakeupPrefs( TQObject *tqparent ) : WakeupPrefs::WakeupPrefs( TQObject *parent ) :
CModule( i18n("Wakeup"), i18n("Alarm Configuration"), "date", tqparent ) CModule( i18n("Wakeup"), i18n("Alarm Configuration"), "date", parent )
{ {
TQVBoxLayout *tqlayout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint()); TQVBoxLayout *tqlayout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
TQGridLayout *grid = new TQGridLayout (tqlayout,8,4); TQGridLayout *grid = new TQGridLayout (tqlayout,8,4);

@ -64,7 +64,7 @@ class WakeupPrefs : public CModule
TQ_OBJECT TQ_OBJECT
public: public:
WakeupPrefs( TQObject *tqparent ); WakeupPrefs( TQObject *parent );
virtual void save(); virtual void save();
virtual void load(); virtual void load();
public slots: public slots:

@ -29,14 +29,14 @@
#include "configmodule.h" #include "configmodule.h"
AlsaPlayerConfigModule::AlsaPlayerConfigModule(TQObject * tqparent) AlsaPlayerConfigModule::AlsaPlayerConfigModule(TQObject * parent)
: :
CModule CModule
( (
i18n("AlsaPlayer"), i18n("AlsaPlayer"),
i18n("AlsaPlayer Interface Settings"), i18n("AlsaPlayer Interface Settings"),
"appearance", "appearance",
tqparent parent
) )
{ {
scroll_ = new TQCheckBox(i18n("Scroll song title"), this); scroll_ = new TQCheckBox(i18n("Scroll song title"), this);

@ -26,8 +26,8 @@
#include <noatun/player.h> #include <noatun/player.h>
#include "seeker.h" #include "seeker.h"
Seeker::Seeker(TQWidget * tqparent, const char * name) Seeker::Seeker(TQWidget * parent, const char * name)
: L33tSlider(0, 1000, 10, 0,Qt::Horizontal, tqparent, name) : L33tSlider(0, 1000, 10, 0,Qt::Horizontal, parent, name)
{ {
connect(this, TQT_SIGNAL(userChanged(int)), TQT_SLOT(slotValueChanged(int))); connect(this, TQT_SIGNAL(userChanged(int)), TQT_SLOT(slotValueChanged(int)));

@ -32,7 +32,7 @@ class Seeker : public L33tSlider
public: public:
Seeker(TQWidget * tqparent, const char * name = 0); Seeker(TQWidget * parent, const char * name = 0);
virtual ~Seeker(); virtual ~Seeker();
protected slots: protected slots:

@ -29,14 +29,14 @@
#include "configmodule.h" #include "configmodule.h"
#include "configmodule.moc" #include "configmodule.moc"
CharlatanConfigModule::CharlatanConfigModule(TQObject * tqparent) CharlatanConfigModule::CharlatanConfigModule(TQObject * parent)
: :
CModule CModule
( (
i18n("Charlatan"), i18n("Charlatan"),
i18n("Charlatan Interface Settings"), i18n("Charlatan Interface Settings"),
"appearance", "appearance",
tqparent parent
) )
{ {
scroll_ = new TQCheckBox(i18n("Scroll song title"), this); scroll_ = new TQCheckBox(i18n("Scroll song title"), this);

@ -27,8 +27,8 @@
#include "seeker.h" #include "seeker.h"
#include "seeker.moc" #include "seeker.moc"
Seeker::Seeker(TQWidget * tqparent) Seeker::Seeker(TQWidget * parent)
: TQSlider(0, 60, 10, 0,Qt::Horizontal, tqparent), : TQSlider(0, 60, 10, 0,Qt::Horizontal, parent),
adjusting_(false) adjusting_(false)
{ {
delayedUpdateTimer_ = new TQTimer(this); delayedUpdateTimer_ = new TQTimer(this);

@ -34,7 +34,7 @@ class Seeker : public TQSlider
public: public:
Seeker(TQWidget * tqparent); Seeker(TQWidget * parent);
virtual ~Seeker(); virtual ~Seeker();
protected slots: protected slots:

@ -34,8 +34,8 @@
#define ID_STATUS_MSG 1 #define ID_STATUS_MSG 1
DubApp::DubApp(TQWidget* tqparent, const char* name) DubApp::DubApp(TQWidget* parent, const char* name)
: KMainWindow(tqparent, name) : KMainWindow(parent, name)
{ {
kdDebug(90010) << "cons dubapp" << endl; kdDebug(90010) << "cons dubapp" << endl;
config=kapp->config(); config=kapp->config();

@ -38,7 +38,7 @@ class DubApp : public KMainWindow
public: public:
/** construtor of DubApp, calls all init functions to create the application. /** construtor of DubApp, calls all init functions to create the application.
*/ */
DubApp(TQWidget* tqparent, const char* name="Dub Playlist"); DubApp(TQWidget* parent, const char* name="Dub Playlist");
~DubApp(); ~DubApp();
void initActions(); void initActions();

@ -25,8 +25,8 @@
#include "dubconfigmodule.h" #include "dubconfigmodule.h"
DubConfigModule::DubConfigModule(TQObject* tqparent) DubConfigModule::DubConfigModule(TQObject* parent)
: CModule(i18n("Dub"), i18n("Folder-Based Playlist"), "noatun", tqparent) : CModule(i18n("Dub"), i18n("Folder-Based Playlist"), "noatun", parent)
, playMode(oneDir) , playMode(oneDir)
, playOrder(normal) , playOrder(normal)
{ {

@ -19,7 +19,7 @@ public:
enum PlayOrder { normal, shuffle, repeat, single }; enum PlayOrder { normal, shuffle, repeat, single };
enum PlayMode { allFiles, oneDir, recursiveDir }; enum PlayMode { allFiles, oneDir, recursiveDir };
DubConfigModule(TQObject *tqparent); DubConfigModule(TQObject *parent);
~DubConfigModule(); ~DubConfigModule();

@ -26,12 +26,12 @@
#include "dub.h" #include "dub.h"
#include "fileselectorwidget.h" #include "fileselectorwidget.h"
//DubView::DubView(TQWidget *tqparent, const char *name) : TQWidget(tqparent, name) //DubView::DubView(TQWidget *parent, const char *name) : TQWidget(parent, name)
//{ //{
// setBackgroundMode(PaletteBase); // setBackgroundMode(PaletteBase);
//} //}
DubView::DubView(TQWidget *tqparent) : FileSelectorWidget(tqparent) DubView::DubView(TQWidget *parent) : FileSelectorWidget(parent)
{ {
kdDebug(90010) << "dub view cons" << endl; kdDebug(90010) << "dub view cons" << endl;
setBackgroundMode(PaletteBase); setBackgroundMode(PaletteBase);

@ -34,7 +34,7 @@ class DubView : public FileSelectorWidget
TQ_OBJECT TQ_OBJECT
public: public:
/** Constructor for the main view */ /** Constructor for the main view */
DubView(TQWidget *tqparent = 0); DubView(TQWidget *parent = 0);
/** Destructor for the main view */ /** Destructor for the main view */
~DubView(); ~DubView();

@ -36,8 +36,8 @@
#include "fileselectorwidget.h" #include "fileselectorwidget.h"
FileSelectorWidget::FileSelectorWidget(TQWidget *tqparent) FileSelectorWidget::FileSelectorWidget(TQWidget *parent)
: TQWidget(tqparent, "file selector widget") : TQWidget(parent, "file selector widget")
{ {
// widgets and tqlayout // widgets and tqlayout

@ -39,7 +39,7 @@ class FileSelectorWidget : public TQWidget
friend class DubPlayListItem; friend class DubPlayListItem;
public: public:
FileSelectorWidget(TQWidget *tqparent); FileSelectorWidget(TQWidget *parent);
~FileSelectorWidget(); ~FileSelectorWidget();
KDirOperator* dirOperator() {return dir;} KDirOperator* dirOperator() {return dir;}

@ -60,8 +60,8 @@ View::View(int width, int height, int block, int unblock, TQColor front, TQColor
} }
TQBitmap tqmask(width, height); TQBitmap mask(width, height);
TQPainter p(&tqmask); TQPainter p(&mask);
// TQt::color0 = transparent // TQt::color0 = transparent
// TQt::color1 = opaque // TQt::color1 = opaque
@ -71,7 +71,7 @@ View::View(int width, int height, int block, int unblock, TQColor front, TQColor
p.fillRect(0, height-i-block, width, block, TQt::color1); p.fillRect(0, height-i-block, width, block, TQt::color1);
i += block + unblock; i += block + unblock;
} }
setMask(tqmask); setMask(mask);
units = block+unblock; units = block+unblock;
show(); show();
@ -184,8 +184,8 @@ void FFRS::changed()
#include <tqhbox.h> #include <tqhbox.h>
#include <tqlabel.h> #include <tqlabel.h>
FFRSPrefs::FFRSPrefs( TQObject *tqparent ) FFRSPrefs::FFRSPrefs( TQObject *parent )
: CModule(i18n("Foreign Region"), i18n("French Foreign Region"),"",tqparent) : CModule(i18n("Foreign Region"), i18n("French Foreign Region"),"",parent)
{ {
TQVBoxLayout *tqlayout = new TQVBoxLayout(this); TQVBoxLayout *tqlayout = new TQVBoxLayout(this);

@ -58,7 +58,7 @@ Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
FFRSPrefs( TQObject *tqparent ); FFRSPrefs( TQObject *parent );
virtual void save(); virtual void save();
int width(); int width();

@ -4,7 +4,7 @@
*** TODO: Add more complex support (like in Konqueror) *** TODO: Add more complex support (like in Konqueror)
Maybe use Konqueror's History Manager */ Maybe use Konqueror's History Manager */
HistoryManager::HistoryManager(TQObject *tqparent) : TQObject(tqparent) { HistoryManager::HistoryManager(TQObject *parent) : TQObject(parent) {
} }
HistoryManager::~HistoryManager() { HistoryManager::~HistoryManager() {

@ -9,7 +9,7 @@ class HistoryManager : public TQObject {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
HistoryManager(TQObject *tqparent = NULL); HistoryManager(TQObject *parent = NULL);
~HistoryManager(); ~HistoryManager();
KURL back(); KURL back();
KURL forward(); KURL forward();

@ -13,20 +13,20 @@
class CreatorItem : public TQListViewItem class CreatorItem : public TQListViewItem
{ {
public: public:
CreatorItem(TQListView *tqparent, const TQString &title) CreatorItem(TQListView *parent, const TQString &title)
: TQListViewItem(tqparent, title) : TQListViewItem(parent, title)
{} {}
}; };
class TreeItem : public TQListViewItem class TreeItem : public TQListViewItem
{ {
public: public:
TreeItem(TreeItem *tqparent, TreeItem *after, CreatorItem *creator) TreeItem(TreeItem *parent, TreeItem *after, CreatorItem *creator)
: TQListViewItem(tqparent, after, creator->text(0)) : TQListViewItem(parent, after, creator->text(0))
{ {
RendererList *list; RendererList *list;
if (tqparent) if (parent)
list=static_cast<RendererList*>(tqparent->mRenderer); list=static_cast<RendererList*>(parent->mRenderer);
else else
list=nex->rendererList(); list=nex->rendererList();
@ -42,8 +42,8 @@ public:
list->unlock(); list->unlock();
} }
TreeItem(TQListView *tqparent, TreeItem *after, const TQString &title) TreeItem(TQListView *parent, TreeItem *after, const TQString &title)
: TQListViewItem(tqparent, after, title) : TQListViewItem(parent, after, title)
{ {
mRenderer=nex->rendererList(); mRenderer=nex->rendererList();
setExpandable(true); setExpandable(true);
@ -52,8 +52,8 @@ public:
~TreeItem() ~TreeItem()
{ {
RendererList *list; RendererList *list;
if (tqparent()) if (parent())
list=static_cast<RendererList*>(static_cast<TreeItem*>(tqparent())->mRenderer); list=static_cast<RendererList*>(static_cast<TreeItem*>(parent())->mRenderer);
else else
return; return;
@ -149,9 +149,9 @@ void Control::addCreator(const TQString &title)
new CreatorItem(mCreatorsList, title); new CreatorItem(mCreatorsList, title);
} }
void Control::dropEvent(TQDropEvent *e, TQListViewItem *tqparent, TQListViewItem *pafter) void Control::dropEvent(TQDropEvent *e, TQListViewItem *parent, TQListViewItem *pafter)
{ {
// if ((e->source() == mCreatorsList) && tqparent) // if ((e->source() == mCreatorsList) && parent)
{ {
CreatorItem *i=static_cast<CreatorItem*>(mCreatorsList->currentItem()); CreatorItem *i=static_cast<CreatorItem*>(mCreatorsList->currentItem());
if (!i) if (!i)
@ -159,7 +159,7 @@ void Control::dropEvent(TQDropEvent *e, TQListViewItem *tqparent, TQListViewItem
std::cerr << "no creatoritem" << std::endl; std::cerr << "no creatoritem" << std::endl;
} }
new TreeItem(static_cast<TreeItem*>(tqparent), static_cast<TreeItem*>(pafter), i); new TreeItem(static_cast<TreeItem*>(parent), static_cast<TreeItem*>(pafter), i);
} }
} }

@ -29,7 +29,7 @@ public slots:
void open(const KURL &file); void open(const KURL &file);
protected slots: protected slots:
void dropEvent(TQDropEvent *e, TQListViewItem *tqparent, TQListViewItem *pafter); void dropEvent(TQDropEvent *e, TQListViewItem *parent, TQListViewItem *pafter);
void currentChanged(TQListViewItem *item); void currentChanged(TQListViewItem *item);
private: private:

@ -56,9 +56,9 @@ int Thread::threadRun(void *v)
return t->run(); return t->run();
} }
NexCheckBox::NexCheckBox(TQWidget *tqparent, NexCheckBox::NexCheckBox(TQWidget *parent,
const TQString &name, bool *v) const TQString &name, bool *v)
: TQCheckBox(name, tqparent) : TQCheckBox(name, parent)
{ {
value=v; value=v;
setChecked(*v); setChecked(*v);
@ -71,8 +71,8 @@ void NexCheckBox::change(bool b)
NexColorButton::NexColorButton(TQWidget *tqparent, Pixel *color) NexColorButton::NexColorButton(TQWidget *parent, Pixel *color)
: KColorButton(tqparent) : KColorButton(parent)
{ {
c=color; c=color;
TQColor temp( (*c >> 16) & 0xFF, (*c >> 8) & 0xFF, *c & 0xFF); TQColor temp( (*c >> 16) & 0xFF, (*c >> 8) & 0xFF, *c & 0xFF);
@ -401,13 +401,13 @@ void RendererList::load(const TQDomElement &e)
TQWidget *RendererList::configure(TQWidget *tqparent) TQWidget *RendererList::configure(TQWidget *parent)
{ {
return new RendererListConfigurator(this, tqparent); return new RendererListConfigurator(this, parent);
} }
RendererListConfigurator::RendererListConfigurator(RendererList *l, TQWidget *tqparent) RendererListConfigurator::RendererListConfigurator(RendererList *l, TQWidget *parent)
: TQWidget(tqparent), mList(l) : TQWidget(parent), mList(l)
{ {
(new TQVBoxLayout(this))->setAutoAdd(true); (new TQVBoxLayout(this))->setAutoAdd(true);
mErase=new TQCheckBox(i18n("&Erase between frames"), this); mErase=new TQCheckBox(i18n("&Erase between frames"), this);

@ -77,7 +77,7 @@ class Spacer : public TQWidget
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
Spacer(TQWidget *tqparent) : TQWidget(tqparent) Spacer(TQWidget *parent) : TQWidget(parent)
{ {
tqsetSizePolicy(TQSizePolicy(TQSizePolicy::MinimumExpanding, tqsetSizePolicy(TQSizePolicy(TQSizePolicy::MinimumExpanding,
TQSizePolicy::MinimumExpanding)); TQSizePolicy::MinimumExpanding));
@ -226,7 +226,7 @@ class NexCheckBox : public TQCheckBox
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
NexCheckBox(TQWidget *tqparent, const TQString &, bool *v); NexCheckBox(TQWidget *parent, const TQString &, bool *v);
private slots: private slots:
void change(bool b); void change(bool b);
@ -241,7 +241,7 @@ class NexColorButton : public KColorButton
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
NexColorButton(TQWidget *tqparent, Pixel *color); NexColorButton(TQWidget *parent, Pixel *color);
private slots: private slots:
void change(const TQColor &c); void change(const TQColor &c);
@ -274,7 +274,7 @@ class RendererListConfigurator : public TQWidget
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
RendererListConfigurator(RendererList *l, TQWidget *tqparent); RendererListConfigurator(RendererList *l, TQWidget *parent);
~RendererListConfigurator(); ~RendererListConfigurator();
public slots: public slots:
@ -303,7 +303,7 @@ public:
bool clearAfter() const { return mClearAfter; } bool clearAfter() const { return mClearAfter; }
void setClearAfter(bool b) { mClearAfter=b; } void setClearAfter(bool b) { mClearAfter=b; }
virtual TQWidget *configure(TQWidget *tqparent); virtual TQWidget *configure(TQWidget *parent);
virtual void save(TQDomElement &e); virtual void save(TQDomElement &e);

@ -1,23 +1,23 @@
#include "regionwidget.h" #include "regionwidget.h"
RegionWidget::RegionWidget(TQWidget *tqparent) RegionWidget::RegionWidget(TQWidget *parent)
{ {
} }
RegionWidget::RegionWidget(const TQSize &viewsize, TQWidget *tqparent) RegionWidget::RegionWidget(const TQSize &viewsize, TQWidget *parent)
{ {
} }
RegionWidget::RegionWidget(int x, int y, int w, int h, const TQSize &viewsize, RegionWidget::RegionWidget(int x, int y, int w, int h, const TQSize &viewsize,
TQWidget *tqparent) TQWidget *parent)
{ {
} }
RegionWidget::RegionWidget(const TQRect &region, const TQSize &viewsize, RegionWidget::RegionWidget(const TQRect &region, const TQSize &viewsize,
TQWidget *tqparent) TQWidget *parent)
{ {
} }

@ -14,11 +14,11 @@ class RegionWidget : public TQFrame
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
RegionWidget(TQWidget *tqparent); RegionWidget(TQWidget *parent);
RegionWidget(const TQSize &viewsize, TQWidget *tqparent); RegionWidget(const TQSize &viewsize, TQWidget *parent);
RegionWidget(int x, int y, int w, int h, const TQSize &viewsize, RegionWidget(int x, int y, int w, int h, const TQSize &viewsize,
TQWidget *tqparent); TQWidget *parent);
RegionWidget(const TQRect &region, const TQSize &viewsize, TQWidget *tqparent); RegionWidget(const TQRect &region, const TQSize &viewsize, TQWidget *parent);
~RegionWidget(); ~RegionWidget();

@ -15,9 +15,9 @@ structQt::HorizontalPair : public Renderer
pair=true; pair=true;
} }
TQWidget *configure(TQWidget *tqparent) TQWidget *configure(TQWidget *parent)
{ {
TQWidget *config=new TQWidget(tqparent); TQWidget *config=new TQWidget(parent);
(new TQVBoxLayout(config))->setAutoAdd(true); (new TQVBoxLayout(config))->setAutoAdd(true);
new NexColorButton(config, &color); new NexColorButton(config, &color);

@ -28,8 +28,8 @@
#include <tqtabwidget.h> #include <tqtabwidget.h>
#include <tqheader.h> #include <tqheader.h>
SchemaConfig::SchemaConfig(TQWidget *tqparent, Oblique *oblique) SchemaConfig::SchemaConfig(TQWidget *parent, Oblique *oblique)
: TQWidget(tqparent) : TQWidget(parent)
{ {
mOblique = oblique; mOblique = oblique;
mIgnore = true; mIgnore = true;
@ -159,7 +159,7 @@ SchemaConfig::SchemaConfig(TQWidget *tqparent, Oblique *oblique)
connect(mOptionPlayable, TQT_SIGNAL(toggled(bool)), TQT_SLOT(updateCurrent())); connect(mOptionPlayable, TQT_SIGNAL(toggled(bool)), TQT_SLOT(updateCurrent()));
mOptionChildrenVisible = new TQCheckBox(i18n("&Children visible"), groupbox); mOptionChildrenVisible = new TQCheckBox(i18n("&Children visible"), groupbox);
TQWhatsThis::add(mOptionChildrenVisible, i18n("Don't create this node, this nodes tqchildren become direct tqchildren of this node's tqparent")); TQWhatsThis::add(mOptionChildrenVisible, i18n("Don't create this node, this nodes tqchildren become direct tqchildren of this node's parent"));
connect(mOptionChildrenVisible, TQT_SIGNAL(toggled(bool)), TQT_SLOT(updateCurrent())); connect(mOptionChildrenVisible, TQT_SIGNAL(toggled(bool)), TQT_SLOT(updateCurrent()));
mOptionAutoOpen = new TQCheckBox(i18n("Auto &open"), groupbox); mOptionAutoOpen = new TQCheckBox(i18n("Auto &open"), groupbox);
@ -176,14 +176,14 @@ class QueryGroupItem : public KListViewItem
QueryGroup *mItem; QueryGroup *mItem;
public: public:
QueryGroupItem(QueryGroupItem *tqparent, QueryGroup *group, QueryGroupItem *after=0) QueryGroupItem(QueryGroupItem *parent, QueryGroup *group, QueryGroupItem *after=0)
: KListViewItem(tqparent, after) : KListViewItem(parent, after)
{ {
init(group); init(group);
} }
QueryGroupItem(KListView *tqparent, QueryGroup *group, QueryGroupItem *after=0) QueryGroupItem(KListView *parent, QueryGroup *group, QueryGroupItem *after=0)
: KListViewItem(tqparent, after) : KListViewItem(parent, after)
{ {
init(group); init(group);
} }
@ -198,8 +198,8 @@ public:
setText(2, item()->presentation()); setText(2, item()->presentation());
} }
QueryGroupItem *tqparent() QueryGroupItem *parent()
{ return static_cast<QueryGroupItem*>(KListViewItem::tqparent()); } { return static_cast<QueryGroupItem*>(KListViewItem::parent()); }
KListView *listView() KListView *listView()
{ return static_cast<KListView*>(KListViewItem::listView()); } { return static_cast<KListView*>(KListViewItem::listView()); }
@ -218,8 +218,8 @@ private:
{ {
if (QueryGroup *after = group->nextSibling()) if (QueryGroup *after = group->nextSibling())
{ {
if (tqparent()) if (parent())
new QueryGroupItem(tqparent(), after, this); new QueryGroupItem(parent(), after, this);
else else
new QueryGroupItem(listView(), after, this); new QueryGroupItem(listView(), after, this);
} }
@ -413,7 +413,7 @@ void SchemaConfig::move(TQListViewItem *_item, TQListViewItem *, TQListViewItem
QueryGroupItem *afterNow = static_cast<QueryGroupItem*>(_afterNow); QueryGroupItem *afterNow = static_cast<QueryGroupItem*>(_afterNow);
QueryGroup *after, *under; QueryGroup *after, *under;
under = item->tqparent() ? item->tqparent()->item() : 0; under = item->parent() ? item->parent()->item() : 0;
after = afterNow ? afterNow->item() : 0; after = afterNow ? afterNow->item() : 0;
item->item()->move(&currentQuery()->query, under, after); item->item()->move(&currentQuery()->query, under, after);
@ -436,8 +436,8 @@ void SchemaConfig::addSibling()
// now match the action in the tree // now match the action in the tree
QueryGroupItem *created; QueryGroupItem *created;
if (item->tqparent()) if (item->parent())
created = new QueryGroupItem(item->tqparent(), g, item); created = new QueryGroupItem(item->parent(), g, item);
else else
created = new QueryGroupItem(item->listView(), g, item); created = new QueryGroupItem(item->listView(), g, item);
@ -500,8 +500,8 @@ SchemaConfig::QueryItem *SchemaConfig::currentQuery()
} }
SliceConfig::SliceConfig(TQWidget *tqparent, Oblique *oblique) SliceConfig::SliceConfig(TQWidget *parent, Oblique *oblique)
: TQWidget(tqparent) : TQWidget(parent)
{ {
mOblique = oblique; mOblique = oblique;
(new TQVBoxLayout(this, 11, 7))->setAutoAdd(true); (new TQVBoxLayout(this, 11, 7))->setAutoAdd(true);
@ -539,16 +539,16 @@ class SliceListItem : public KListViewItem
{ {
Slice *mSlice; Slice *mSlice;
public: public:
SliceListItem(KListView *tqparent, Slice *slice) SliceListItem(KListView *parent, Slice *slice)
: KListViewItem(tqparent, slice->name()), mSlice(slice) : KListViewItem(parent, slice->name()), mSlice(slice)
{ {
} }
/** /**
* new item * new item
**/ **/
SliceListItem(KListView *tqparent) SliceListItem(KListView *parent)
: KListViewItem(tqparent, i18n("New Slice")), mSlice(0) : KListViewItem(parent, i18n("New Slice")), mSlice(0)
{ {
} }

@ -45,7 +45,7 @@ Q_OBJECT
TQMap<TQString, QueryItem> mQueries; TQMap<TQString, QueryItem> mQueries;
public: public:
SchemaConfig(TQWidget *tqparent, Oblique *oblique); SchemaConfig(TQWidget *parent, Oblique *oblique);
Oblique *oblique() { return mOblique; } Oblique *oblique() { return mOblique; }
@ -93,7 +93,7 @@ Q_OBJECT
TQValueList<Slice*> mRemovedItems; TQValueList<Slice*> mRemovedItems;
public: public:
SliceConfig(TQWidget *tqparent, Oblique *oblique); SliceConfig(TQWidget *parent, Oblique *oblique);
Oblique *oblique() { return mOblique; } Oblique *oblique() { return mOblique; }
void reopen(); void reopen();
@ -116,7 +116,7 @@ Q_OBJECT
SliceConfig *slice; SliceConfig *slice;
public: public:
Configure(Oblique *tqparent); Configure(Oblique *parent);
virtual void reopen(); virtual void reopen();
virtual void save(); virtual void save();

@ -7,8 +7,8 @@
#include "tree.h" #include "tree.h"
FileMenu::FileMenu(TQWidget *tqparent, Oblique *oblique, File file) FileMenu::FileMenu(TQWidget *parent, Oblique *oblique, File file)
: KPopupMenu(tqparent) : KPopupMenu(parent)
{ {
if (file) if (file)
mFiles.append(file); mFiles.append(file);
@ -39,8 +39,8 @@ static void addTo(TQValueList<File> &files, TreeItem *item)
} }
} }
FileMenu::FileMenu(TQWidget *tqparent, Oblique *oblique, TreeItem *items) FileMenu::FileMenu(TQWidget *parent, Oblique *oblique, TreeItem *items)
: KPopupMenu(tqparent) : KPopupMenu(parent)
{ {
addTo(mFiles, items); addTo(mFiles, items);
@ -92,8 +92,8 @@ void FileMenu::toggleInSlice(Slice *slice)
SliceListAction::SliceListAction( SliceListAction::SliceListAction(
const TQString &text, Oblique *oblique, const TQString &text, Oblique *oblique,
TQObject *reciever, const char *slot, TQObject *reciever, const char *slot,
const TQValueList<File> &files, TQObject *tqparent, const char *name const TQValueList<File> &files, TQObject *parent, const char *name
) : KActionMenu(text, tqparent, name) ) : KActionMenu(text, parent, name)
{ {
mFiles = files; mFiles = files;
mOblique = oblique; mOblique = oblique;
@ -153,8 +153,8 @@ void SliceListAction::hit(int index)
SchemaListAction::SchemaListAction( SchemaListAction::SchemaListAction(
const TQString &text, const TQString &text,
TQObject *reciever, const char *slot, TQObject *reciever, const char *slot,
TQObject *tqparent, const char *name TQObject *parent, const char *name
) : KActionMenu(text, tqparent, name) ) : KActionMenu(text, parent, name)
{ {
mTree = 0; mTree = 0;
if (reciever) if (reciever)
@ -197,8 +197,8 @@ void SchemaListAction::hit(int index)
ObliquePropertiesDialog::ObliquePropertiesDialog(const TQValueList<File> &files, TQWidget *tqparent) ObliquePropertiesDialog::ObliquePropertiesDialog(const TQValueList<File> &files, TQWidget *parent)
: KPropertiesDialog(makeItems(files), tqparent), mFiles(files) : KPropertiesDialog(makeItems(files), parent), mFiles(files)
{ {
connect(this, TQT_SIGNAL(propertiesClosed()), TQT_SLOT(deleteLater())); connect(this, TQT_SIGNAL(propertiesClosed()), TQT_SLOT(deleteLater()));
connect(this, TQT_SIGNAL(applied()), TQT_SLOT(modified())); connect(this, TQT_SIGNAL(applied()), TQT_SLOT(modified()));

@ -21,11 +21,11 @@ Q_OBJECT
TQValueList<File> mFiles; TQValueList<File> mFiles;
public: public:
FileMenu(TQWidget *tqparent, Oblique *oblique, File file); FileMenu(TQWidget *parent, Oblique *oblique, File file);
/** /**
* @recursively uses everything under @p files * @recursively uses everything under @p files
**/ **/
FileMenu(TQWidget *tqparent, Oblique *oblique, TreeItem *files); FileMenu(TQWidget *parent, Oblique *oblique, TreeItem *files);
private slots: private slots:
void removeFromList(); void removeFromList();
@ -45,7 +45,7 @@ public:
SliceListAction( SliceListAction(
const TQString &text, Oblique *oblique, const TQString &text, Oblique *oblique,
TQObject *reciever, const char *slot, TQObject *reciever, const char *slot,
const TQValueList<File> &files = TQValueList<File>(), TQObject *tqparent=0, const char *name=0 const TQValueList<File> &files = TQValueList<File>(), TQObject *parent=0, const char *name=0
); );
signals: signals:
@ -68,7 +68,7 @@ public:
SchemaListAction( SchemaListAction(
const TQString &text, const TQString &text,
TQObject *reciever, const char *slot, TQObject *reciever, const char *slot,
TQObject *tqparent, const char *name TQObject *parent, const char *name
); );
void setTree(Tree *tree) { mTree = tree; } void setTree(Tree *tree) { mTree = tree; }
@ -89,7 +89,7 @@ Q_OBJECT
TQValueList<File> mFiles; TQValueList<File> mFiles;
public: public:
ObliquePropertiesDialog(const TQValueList<File> &files, TQWidget *tqparent); ObliquePropertiesDialog(const TQValueList<File> &files, TQWidget *parent);
private: private:
static KFileItemList makeItems(const TQValueList<File> &files); static KFileItemList makeItems(const TQValueList<File> &files);

@ -283,10 +283,10 @@ Query &Query::operator =(const Query &copy)
if (&copy == this) return *this; if (&copy == this) return *this;
delete mGroupFirst; delete mGroupFirst;
mGroupFirst=0; mGroupFirst=0;
if (const QueryGroup *tqparent = copy.firstChild()) if (const QueryGroup *parent = copy.firstChild())
{ {
mGroupFirst = new QueryGroup(*tqparent); mGroupFirst = new QueryGroup(*parent);
deepCopy(tqparent->firstChild(), mGroupFirst); deepCopy(parent->firstChild(), mGroupFirst);
} }
return *this; return *this;
} }
@ -438,17 +438,17 @@ void Query::dump()
void Query::loadGroup(TQDomElement element, QueryGroup *tqparent) void Query::loadGroup(TQDomElement element, QueryGroup *parent)
{ {
TQDomNode node = element.firstChild(); TQDomNode node = element.firstChild();
QueryGroup *group = new QueryGroup; QueryGroup *group = new QueryGroup;
if (tqparent) if (parent)
{ {
if (QueryGroup *last = tqparent->lastChild()) if (QueryGroup *last = parent->lastChild())
last->setNextSibling(group); last->setNextSibling(group);
else else
tqparent->setFirstChild(group); parent->setFirstChild(group);
} }
else else
{ {
@ -500,11 +500,11 @@ void Query::loadGroup(TQDomElement element, QueryGroup *tqparent)
} }
} }
void Query::saveGroup(TQDomElement &tqparent, QueryGroup *group) void Query::saveGroup(TQDomElement &parent, QueryGroup *group)
{ {
TQDomDocument doc = tqparent.ownerDocument(); TQDomDocument doc = parent.ownerDocument();
TQDomElement element = doc.createElement("group"); TQDomElement element = doc.createElement("group");
tqparent.appendChild(element); parent.appendChild(element);
TQDomElement childe; TQDomElement childe;
TQDomText childtext; TQDomText childtext;

@ -99,7 +99,7 @@ private:
**/ **/
TQString fuzzify(const TQString &str) const; TQString fuzzify(const TQString &str) const;
/** /**
* @returns the previous or tqparent of this item (slow) * @returns the previous or parent of this item (slow)
**/ **/
QueryGroup *previous(Query *query); QueryGroup *previous(Query *query);
QueryGroup *previous(QueryGroup *startWith); QueryGroup *previous(QueryGroup *startWith);
@ -160,8 +160,8 @@ public:
TQString dbname(Base *base); TQString dbname(Base *base);
private: private:
void loadGroup(TQDomElement element, QueryGroup *tqparent=0); void loadGroup(TQDomElement element, QueryGroup *parent=0);
void saveGroup(TQDomElement &tqparent, QueryGroup *group); void saveGroup(TQDomElement &parent, QueryGroup *group);
void deepCopy(const QueryGroup *from, QueryGroup *toParent); void deepCopy(const QueryGroup *from, QueryGroup *toParent);

@ -76,7 +76,7 @@ static void treeItemSort(TreeItem **begin, TreeItem **end)
static void treeItemSort(TreeItem *first) static void treeItemSort(TreeItem *first)
{ {
const int count = first->tqparent() ? first->tqparent()->childCount() : first->listView()->childCount(); const int count = first->parent() ? first->parent()->childCount() : first->listView()->childCount();
if (count < 2) return; if (count < 2) return;
Query *q = first->tree()->query(); Query *q = first->tree()->query();
@ -149,28 +149,28 @@ inline static void sortify(T *item)
} }
TreeItem::TreeItem(Tree *tqparent, QueryGroup *group, const File &file, const TQString &p) TreeItem::TreeItem(Tree *parent, QueryGroup *group, const File &file, const TQString &p)
: KListViewItem(tqparent, p), mGroup(group), mUserOpened(false), mHidden(false) : KListViewItem(parent, p), mGroup(group), mUserOpened(false), mHidden(false)
{ {
if (group->option(QueryGroup::Playable)) if (group->option(QueryGroup::Playable))
{ {
if (mFile = file) if (mFile = file)
tqparent->mPlayableItemCount++; parent->mPlayableItemCount++;
} }
sortify(tqparent); sortify(parent);
} }
TreeItem::TreeItem(TreeItem *tqparent, QueryGroup *group, const File &file, const TQString &p) TreeItem::TreeItem(TreeItem *parent, QueryGroup *group, const File &file, const TQString &p)
: KListViewItem(tqparent, p), mGroup(group), mUserOpened(false), mHidden(false) : KListViewItem(parent, p), mGroup(group), mUserOpened(false), mHidden(false)
{ {
if (group->option(QueryGroup::Playable)) if (group->option(QueryGroup::Playable))
{ {
if (mFile = file) if (mFile = file)
tqparent->tree()->mPlayableItemCount++; parent->tree()->mPlayableItemCount++;
} }
sortify(tqparent); sortify(parent);
} }
TreeItem::~TreeItem() TreeItem::~TreeItem()
@ -180,7 +180,7 @@ TreeItem::~TreeItem()
tree()->mPlayableItemCount--; tree()->mPlayableItemCount--;
} }
// I have to remove my tqchildren, because they need their tqparent // I have to remove my tqchildren, because they need their parent
// in tact for the below code // in tact for the below code
while (TreeItem *c = firstChild()) while (TreeItem *c = firstChild())
delete c; delete c;
@ -297,7 +297,7 @@ void TreeItem::paintCell(TQPainter *p, const TQColorGroup &cg, int column, int w
} }
TQColorGroup newcg(cg); TQColorGroup newcg(cg);
if (tqparent() && tqparent()->isOpen() && !tqparent()->mUserOpened) if (parent() && parent()->isOpen() && !parent()->mUserOpened)
{ {
// slow, but not often used // slow, but not often used
TQColor text = newcg.text(); TQColor text = newcg.text();
@ -338,8 +338,8 @@ void TreeItem::autoExpand()
void TreeItem::forceAutoExpand() void TreeItem::forceAutoExpand()
{ {
if (tqparent()) if (parent())
tqparent()->forceAutoExpand(); parent()->forceAutoExpand();
if (!mUserOpened) if (!mUserOpened)
tree()->addAutoExpanded(this); tree()->addAutoExpanded(this);
@ -419,7 +419,7 @@ TreeItem *TreeItem::next()
{ {
if (upYours->nextSibling()) if (upYours->nextSibling())
return upYours->nextSibling(); return upYours->nextSibling();
upYours = upYours->tqparent(); upYours = upYours->parent();
} while (upYours); } while (upYours);
} }
return 0; return 0;
@ -431,8 +431,8 @@ TreeItem *TreeItem::next()
Tree::Tree(Oblique *oblique, TQWidget *tqparent) Tree::Tree(Oblique *oblique, TQWidget *parent)
: KListView(tqparent), mOblique(oblique), mAutoExpanding(0) : KListView(parent), mOblique(oblique), mAutoExpanding(0)
{ {
mCurrent = 0; mCurrent = 0;
lastMenu =0; lastMenu =0;
@ -503,16 +503,16 @@ void Tree::clear()
KListView::clear(); KListView::clear();
} }
void Tree::movableDropEvent (TQListViewItem* tqparent, TQListViewItem* afterme) void Tree::movableDropEvent (TQListViewItem* parent, TQListViewItem* afterme)
{ {
TQPtrList<TQListViewItem> items = selectedItems(true); TQPtrList<TQListViewItem> items = selectedItems(true);
for (TQPtrList<TQListViewItem>::Iterator i(items.begin()); *i; ++i) for (TQPtrList<TQListViewItem>::Iterator i(items.begin()); *i; ++i)
{ {
if ((*i)->tqparent() != tqparent) if ((*i)->parent() != parent)
return; return;
} }
KListView::movableDropEvent(tqparent, afterme); KListView::movableDropEvent(parent, afterme);
} }
@ -790,7 +790,7 @@ TreeItem *Tree::node(TreeItem *fix, QueryGroup *group, const File &file, TreeIte
else if (fix) else if (fix)
{ {
item = fix; item = fix;
if (fix->tqparent() != childOf) if (fix->parent() != childOf)
moveItem(fix, childOf, 0); moveItem(fix, childOf, 0);
item->setText(0, presentation); item->setText(0, presentation);
} }

@ -23,15 +23,15 @@ class TreeItem : public KListViewItem
bool mHidden:1; bool mHidden:1;
public: public:
TreeItem(Tree *tqparent, QueryGroup *group, const File &file, const TQString &p=0); TreeItem(Tree *parent, QueryGroup *group, const File &file, const TQString &p=0);
TreeItem(TreeItem *tqparent, QueryGroup *group, const File &file, const TQString &p=0); TreeItem(TreeItem *parent, QueryGroup *group, const File &file, const TQString &p=0);
~TreeItem(); ~TreeItem();
QueryGroup *group() { return mGroup; } QueryGroup *group() { return mGroup; }
const QueryGroup *group() const { return mGroup; } const QueryGroup *group() const { return mGroup; }
void setGroup(QueryGroup *group) { mGroup = group; } void setGroup(QueryGroup *group) { mGroup = group; }
TreeItem *tqparent() { return static_cast<TreeItem*>(KListViewItem::tqparent()); } TreeItem *parent() { return static_cast<TreeItem*>(KListViewItem::parent()); }
Tree *tree(); Tree *tree();
TreeItem *itemBelow() { return static_cast<TreeItem*>(KListViewItem::itemBelow()); } TreeItem *itemBelow() { return static_cast<TreeItem*>(KListViewItem::itemBelow()); }
TreeItem *firstChild() { return static_cast<TreeItem*>(KListViewItem::firstChild()); } TreeItem *firstChild() { return static_cast<TreeItem*>(KListViewItem::firstChild()); }
@ -51,7 +51,7 @@ public:
/** /**
* get the next item that is playable logically. * get the next item that is playable logically.
* that is, if it has a File, and its tqparent hasn't a * that is, if it has a File, and its parent hasn't a
* File * File
**/ **/
TreeItem *nextPlayable(); TreeItem *nextPlayable();
@ -104,7 +104,7 @@ Q_OBJECT
Loader *mLoader; Loader *mLoader;
public: public:
Tree(Oblique *oblique, TQWidget *tqparent=0); Tree(Oblique *oblique, TQWidget *parent=0);
~Tree(); ~Tree();
TreeItem *firstChild(); TreeItem *firstChild();
TreeItem *find(File item); TreeItem *find(File item);
@ -130,7 +130,7 @@ public:
protected: protected:
virtual TQDragObject *dragObject(); virtual TQDragObject *dragObject();
void movableDropEvent(TQListViewItem* tqparent, TQListViewItem* afterme); void movableDropEvent(TQListViewItem* parent, TQListViewItem* afterme);
public slots: public slots:
void insert(TreeItem *replace, File file); void insert(TreeItem *replace, File file);

@ -20,8 +20,8 @@
class TabWidget : public KTabWidget class TabWidget : public KTabWidget
{ {
public: public:
TabWidget(TQWidget *tqparent) TabWidget(TQWidget *parent)
: KTabWidget(tqparent) : KTabWidget(parent)
{ {
} }
public: public:
@ -241,8 +241,8 @@ void View::use(Slice *s)
LineEditAction::LineEditAction(const TQString &text, const TQObject *reciever, const char *slot, KActionCollection *tqparent, const char *name) LineEditAction::LineEditAction(const TQString &text, const TQObject *reciever, const char *slot, KActionCollection *parent, const char *name)
: KWidgetAction(new KLineEdit(0), text, KShortcut(0), reciever, slot, tqparent, name) : KWidgetAction(new KLineEdit(0), text, KShortcut(0), reciever, slot, parent, name)
{ {
setAutoSized(true); setAutoSized(true);
} }

@ -62,7 +62,7 @@ class LineEditAction : public KWidgetAction
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
LineEditAction(const TQString &text, const TQObject *reciever, const char *slot, KActionCollection *tqparent, const char *name); LineEditAction(const TQString &text, const TQObject *reciever, const char *slot, KActionCollection *parent, const char *name);
KLineEdit *widget() { return static_cast<KLineEdit*>(KWidgetAction::widget()); } KLineEdit *widget() { return static_cast<KLineEdit*>(KWidgetAction::widget()); }
KLineEdit *lineEdit() { return widget(); } KLineEdit *lineEdit() { return widget(); }

@ -30,8 +30,8 @@
#include "cmodule.h" #include "cmodule.h"
#include "synaescope.h" #include "synaescope.h"
SynaePrefs::SynaePrefs(TQObject *tqparent) SynaePrefs::SynaePrefs(TQObject *parent)
: CModule(i18n("Synaescope"), i18n("Noatun Visualization"), "synaescope", tqparent) : CModule(i18n("Synaescope"), i18n("Noatun Visualization"), "synaescope", parent)
{ {
// kdDebug(66666) << k_funcinfo << endl; // kdDebug(66666) << k_funcinfo << endl;
xRes = new TQSpinBox(320, 1024, 16, this); xRes = new TQSpinBox(320, 1024, 16, this);

@ -30,7 +30,7 @@ class SynaePrefs : public CModule
TQ_OBJECT TQ_OBJECT
public: public:
SynaePrefs(TQObject *tqparent); SynaePrefs(TQObject *parent);
virtual void save(); virtual void save();
virtual void reopen(); virtual void reopen();

@ -330,14 +330,14 @@ void Interface::setupPalette()
#undef MAX #undef MAX
} }
//Visible tqmask //Visible mask
#define ALL 1 #define ALL 1
#define BUTTONBAR 2 #define BUTTONBAR 2
#define TRACKBAR 4 #define TRACKBAR 4
#define DIALBAR 8 #define DIALBAR 8
#define VOLUMEBAR 16 #define VOLUMEBAR 16
//Active tqmask //Active mask
//#define ALL 1 //#define ALL 1
#define PLAYING 2 #define PLAYING 2
#define PAUSED 4 #define PAUSED 4

@ -243,14 +243,14 @@ void Interface::setupPalette()
#undef MAX #undef MAX
} }
//Visible tqmask //Visible mask
#define ALL 1 #define ALL 1
#define BUTTONBAR 2 #define BUTTONBAR 2
#define TRACKBAR 4 #define TRACKBAR 4
#define DIALBAR 8 #define DIALBAR 8
#define VOLUMEBAR 16 #define VOLUMEBAR 16
//Active tqmask //Active mask
//#define ALL 1 //#define ALL 1
#define PLAYING 2 #define PLAYING 2
#define PAUSED 4 #define PAUSED 4

@ -33,8 +33,8 @@
#include "audiopreview.h" #include "audiopreview.h"
AudioPreview::AudioPreview( TQWidget *tqparent, const char *name, const TQString &fileName, const TQString &mimeType) AudioPreview::AudioPreview( TQWidget *parent, const char *name, const TQString &fileName, const TQString &mimeType)
: TQVBox( tqparent, name ) : TQVBox( parent, name )
{ {
m_isTempFile = false; m_isTempFile = false;
pic = 0; pic = 0;

@ -34,7 +34,7 @@ class AudioPreview : public TQVBox
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
AudioPreview(TQWidget *tqparent, const char *name, const TQString &fileName, const TQString &mimeType); AudioPreview(TQWidget *parent, const char *name, const TQString &fileName, const TQString &mimeType);
~AudioPreview(); ~AudioPreview();
private slots: private slots:

@ -30,8 +30,8 @@
#include "imagevisualizer.h" #include "imagevisualizer.h"
ImageVisualizer::ImageVisualizer( TQWidget *tqparent, const char *name, const TQString &fileName ) ImageVisualizer::ImageVisualizer( TQWidget *parent, const char *name, const TQString &fileName )
: TQVBox( tqparent, name ) : TQVBox( parent, name )
{ {
pic = 0; pic = 0;
description = 0; description = 0;

@ -29,7 +29,7 @@ class ImageVisualizer : public TQVBox
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
ImageVisualizer(TQWidget *tqparent, const char *name, const TQString &fileName ); ImageVisualizer(TQWidget *parent, const char *name, const TQString &fileName );
private: private:
void loadImage( const TQString& path ); void loadImage( const TQString& path );

Loading…
Cancel
Save