rename the following methods:

tqparent parent
tqmask mask


git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kerry@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 13 years ago
parent 0c2ef38b32
commit fa9f5f4adf

@ -169,8 +169,8 @@ static const HitFlavorInfo hitflavorinfos[] =
{ 0, 0, 0, 0} { 0, 0, 0, 0}
}; };
BeagleSearch::BeagleSearch(int id, TQObject *tqparent, TQString term) BeagleSearch::BeagleSearch(int id, TQObject *parent, TQString term)
: id (id), kill_me (false), tqparent (tqparent) : id (id), kill_me (false), parent (parent)
{ {
query = beagle_query_new (); query = beagle_query_new ();
beagle_query_set_max_hits(query, 100); beagle_query_set_max_hits(query, 100);
@ -212,7 +212,7 @@ void BeagleSearch::run()
TQCustomEvent *ev; TQCustomEvent *ev;
ev = new TQCustomEvent (KILLME, this); ev = new TQCustomEvent (KILLME, this);
tqApp->postEvent(tqparent, ev); tqApp->postEvent(parent, ev);
} }
void BeagleSearch::stopClient() void BeagleSearch::stopClient()
@ -402,7 +402,7 @@ void BeagleSearch::hits_added_cb (BeagleQuery *query, BeagleHitsAddedResponse *r
client->client_mutex->unlock (); client->client_mutex->unlock ();
TQCustomEvent *ev = new TQCustomEvent (RESULTFOUND, results); TQCustomEvent *ev = new TQCustomEvent (RESULTFOUND, results);
tqApp->postEvent (client->tqparent, ev); tqApp->postEvent (client->parent, ev);
} }
void BeagleSearch::hits_subtracted_cb (BeagleQuery */*query*/, BeagleHitsSubtractedResponse *response, BeagleSearch *client) void BeagleSearch::hits_subtracted_cb (BeagleQuery */*query*/, BeagleHitsSubtractedResponse *response, BeagleSearch *client)
@ -435,7 +435,7 @@ void BeagleSearch::hits_subtracted_cb (BeagleQuery */*query*/, BeagleHitsSubtrac
} }
TQCustomEvent *ev = new TQCustomEvent (RESULTGONE, vanished); TQCustomEvent *ev = new TQCustomEvent (RESULTGONE, vanished);
tqApp->postEvent (client->tqparent, ev); tqApp->postEvent (client->parent, ev);
} }
void BeagleSearch::finished_cb (BeagleQuery */*query*/, void BeagleSearch::finished_cb (BeagleQuery */*query*/,
@ -456,5 +456,5 @@ void BeagleSearch::finished_cb (BeagleQuery */*query*/,
g_main_loop_quit (client->main_loop); g_main_loop_quit (client->main_loop);
TQCustomEvent *ev = new TQCustomEvent (SEARCHOVER, client); TQCustomEvent *ev = new TQCustomEvent (SEARCHOVER, client);
tqApp->postEvent (client->tqparent, ev); tqApp->postEvent (client->parent, ev);
} }

@ -113,7 +113,7 @@ public:
VanishedURIList list; VanishedURIList list;
}; };
BeagleSearch(int id, TQObject *tqparent, TQString term); BeagleSearch(int id, TQObject *parent, TQString term);
~BeagleSearch(); ~BeagleSearch();
virtual void run(); virtual void run();
@ -124,7 +124,7 @@ public:
bool kill_me; bool kill_me;
private: private:
TQObject *tqparent; TQObject *parent;
static void hits_added_cb (BeagleQuery *, BeagleHitsAddedResponse *, BeagleSearch* client); static void hits_added_cb (BeagleQuery *, BeagleHitsAddedResponse *, BeagleSearch* client);
static void hits_subtracted_cb (BeagleQuery *, BeagleHitsSubtractedResponse *, BeagleSearch* client); static void hits_subtracted_cb (BeagleQuery *, BeagleHitsSubtractedResponse *, BeagleSearch* client);

@ -31,8 +31,8 @@
#include <konq_filetip.h> #include <konq_filetip.h>
#include <tqscrollview.h> #include <tqscrollview.h>
HitWidget::HitWidget(TQString uri, TQString mimetype, KWidgetListbox *tqparent, const char *name) HitWidget::HitWidget(TQString uri, TQString mimetype, KWidgetListbox *parent, const char *name)
: HitWidgetLayout(tqparent, name), m_uri(uri), m_mimetype(mimetype), m_collapsed(false), : HitWidgetLayout(parent, name), m_uri(uri), m_mimetype(mimetype), m_collapsed(false),
m_is_collapsible(false), m_icon(TQString()), m_result(0) m_is_collapsible(false), m_icon(TQString()), m_result(0)
{ {
HitWidgetLayoutLayout->setMargin(4); HitWidgetLayoutLayout->setMargin(4);
@ -42,9 +42,9 @@ HitWidget::HitWidget(TQString uri, TQString mimetype, KWidgetListbox *tqparent,
setDescriptionText(""); setDescriptionText("");
setPropertiesText(""); setPropertiesText("");
icon->installEventFilter(this); icon->installEventFilter(this);
pFileTip = new KonqFileTip(tqparent); pFileTip = new KonqFileTip(parent);
pFileTip->setItem(0L); pFileTip->setItem(0L);
qsv=tqparent; qsv=parent;
connect(toolButton1, TQT_SIGNAL(clicked()), TQT_SLOT(toggleCollapsed())); connect(toolButton1, TQT_SIGNAL(clicked()), TQT_SLOT(toggleCollapsed()));
} }
@ -201,7 +201,7 @@ void HitWidget::adjustSize()
bool HitWidget::eventFilter( TQObject *obj, TQEvent *ev ) bool HitWidget::eventFilter( TQObject *obj, TQEvent *ev )
{ {
if ( TQT_BASE_OBJECT(obj) == TQT_BASE_OBJECT(icon) && !m_uri.isEmpty() ) { if ( TQT_BASE_OBJECT(obj) == TQT_BASE_OBJECT(icon) && !m_uri.isEmpty() ) {
if ( ev->type() == TQEvent::Enter && tqparent() ) { if ( ev->type() == TQEvent::Enter && parent() ) {
pFileTip->setOptions(true, true, 6); pFileTip->setOptions(true, true, 6);
KFileItem *fileitem=new KFileItem(m_uri,m_mimetype,KFileItem::Unknown); KFileItem *fileitem=new KFileItem(m_uri,m_mimetype,KFileItem::Unknown);
TQPoint viewport = qsv->viewport()->mapFromGlobal(mapToGlobal(icon->pos())); TQPoint viewport = qsv->viewport()->mapFromGlobal(mapToGlobal(icon->pos()));

@ -32,7 +32,7 @@ class HitWidget : public HitWidgetLayout
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
HitWidget(TQString uri, TQString mimetype, KWidgetListbox *tqparent = 0, const char *name = 0); HitWidget(TQString uri, TQString mimetype, KWidgetListbox *parent = 0, const char *name = 0);
~HitWidget(); ~HitWidget();
void setCollapsible(BeagleSearch::beagle_result_struct *result); void setCollapsible(BeagleSearch::beagle_result_struct *result);

@ -29,8 +29,8 @@
#include <kdialog.h> #include <kdialog.h>
#include <klocale.h> #include <klocale.h>
KCMBeagleBackends::KCMBeagleBackends(TQWidget *tqparent, const char * ) KCMBeagleBackends::KCMBeagleBackends(TQWidget *parent, const char * )
: KCModule(tqparent, "kcmbeaglebackends") : KCModule(parent, "kcmbeaglebackends")
{ {
TQVBoxLayout* general_layout = new TQVBoxLayout( this, KDialog::spacingHint() ); TQVBoxLayout* general_layout = new TQVBoxLayout( this, KDialog::spacingHint() );

@ -33,7 +33,7 @@ class KCMBeagleBackends : public KCModule
TQ_OBJECT TQ_OBJECT
public: public:
KCMBeagleBackends(TQWidget *tqparent=0, const char *name=0); KCMBeagleBackends(TQWidget *parent=0, const char *name=0);
~KCMBeagleBackends(); ~KCMBeagleBackends();
virtual void load(); virtual void load();

@ -31,8 +31,8 @@
#include "backends.h" #include "backends.h"
#include "status.h" #include "status.h"
KCMBeagle::KCMBeagle(TQWidget *tqparent, const char *name) KCMBeagle::KCMBeagle(TQWidget *parent, const char *name)
: KCModule( tqparent, "kcmbeagle" ) : KCModule( parent, "kcmbeagle" )
{ {
setButtons(Default+Apply); setButtons(Default+Apply);

@ -33,7 +33,7 @@ class KCMBeagle : public KCModule
TQ_OBJECT TQ_OBJECT
public: public:
KCMBeagle(TQWidget *tqparent=0, const char *name=0); KCMBeagle(TQWidget *parent=0, const char *name=0);
virtual void load(); virtual void load();
virtual void save(); virtual void save();

@ -38,8 +38,8 @@
#include <kurl.h> #include <kurl.h>
#include <kurlrequester.h> #include <kurlrequester.h>
KCMBeagleIndexing::KCMBeagleIndexing(TQWidget *tqparent, const char * ) KCMBeagleIndexing::KCMBeagleIndexing(TQWidget *parent, const char * )
: KCModule(tqparent, "kcmbeagleindexing") : KCModule(parent, "kcmbeagleindexing")
{ {
TQVBoxLayout* top_layout = new TQVBoxLayout( this, KDialog::spacingHint() ); TQVBoxLayout* top_layout = new TQVBoxLayout( this, KDialog::spacingHint() );

@ -33,7 +33,7 @@ class KCMBeagleIndexing : public KCModule
TQ_OBJECT TQ_OBJECT
public: public:
KCMBeagleIndexing(TQWidget *tqparent=0, const char *name=0); KCMBeagleIndexing(TQWidget *parent=0, const char *name=0);
~KCMBeagleIndexing(); ~KCMBeagleIndexing();
virtual void load(); virtual void load();

@ -34,8 +34,8 @@
#include "backends.h" #include "backends.h"
#include "status.h" #include "status.h"
KCMKerry::KCMKerry(TQWidget *tqparent, const char *name) KCMKerry::KCMKerry(TQWidget *parent, const char *name)
: KCModule( tqparent, "kcmkerry" ) : KCModule( parent, "kcmkerry" )
{ {
setButtons(Default+Apply); setButtons(Default+Apply);

@ -33,7 +33,7 @@ class KCMKerry : public KCModule
TQ_OBJECT TQ_OBJECT
public: public:
KCMKerry(TQWidget *tqparent=0, const char *name=0); KCMKerry(TQWidget *parent=0, const char *name=0);
virtual void load(); virtual void load();
virtual void save(); virtual void save();

@ -27,16 +27,16 @@
extern "C" extern "C"
{ {
KDE_EXPORT KCModule *create_beagle(TQWidget *tqparent, const char *name) KDE_EXPORT KCModule *create_beagle(TQWidget *parent, const char *name)
{ {
KGlobal::locale()->insertCatalogue("kcmbeagle"); KGlobal::locale()->insertCatalogue("kcmbeagle");
return new KCMBeagle(tqparent, name); return new KCMBeagle(parent, name);
} }
KDE_EXPORT KCModule *create_kerry(TQWidget *tqparent, const char *name) KDE_EXPORT KCModule *create_kerry(TQWidget *parent, const char *name)
{ {
KGlobal::locale()->insertCatalogue("kcmbeagle"); KGlobal::locale()->insertCatalogue("kcmbeagle");
return new KCMKerry(tqparent, name); return new KCMKerry(parent, name);
} }
} }

@ -23,8 +23,8 @@
#include <kconfig.h> #include <kconfig.h>
KCMKerrySearch::KCMKerrySearch(TQWidget *tqparent, const char * ) KCMKerrySearch::KCMKerrySearch(TQWidget *parent, const char * )
: KCModule(tqparent, "kcmkerrysearch") : KCModule(parent, "kcmkerrysearch")
{ {
TQVBoxLayout* top_layout = new TQVBoxLayout( this, KDialog::spacingHint() ); TQVBoxLayout* top_layout = new TQVBoxLayout( this, KDialog::spacingHint() );

@ -40,7 +40,7 @@ class KCMKerrySearch : public KCModule
TQ_OBJECT TQ_OBJECT
public: public:
KCMKerrySearch(TQWidget *tqparent=0, const char *name=0); KCMKerrySearch(TQWidget *parent=0, const char *name=0);
~KCMKerrySearch(); ~KCMKerrySearch();
virtual void load(); virtual void load();

@ -36,8 +36,8 @@ extern "C" {
#include <beagle/beagle.h> #include <beagle/beagle.h>
} }
KCMBeagletqStatus::KCMBeagletqStatus(TQWidget *tqparent, const char * ) KCMBeagletqStatus::KCMBeagletqStatus(TQWidget *parent, const char * )
: KCModule(tqparent, "kcmbeaglestatus") : KCModule(parent, "kcmbeaglestatus")
{ {
TQVBoxLayout* general_layout = new TQVBoxLayout( this, KDialog::spacingHint() ); TQVBoxLayout* general_layout = new TQVBoxLayout( this, KDialog::spacingHint() );

@ -35,7 +35,7 @@ class KCMBeagletqStatus : public KCModule
TQ_OBJECT TQ_OBJECT
public: public:
KCMBeagletqStatus(TQWidget *tqparent=0, const char *name=0); KCMBeagletqStatus(TQWidget *parent=0, const char *name=0);
~KCMBeagletqStatus(); ~KCMBeagletqStatus();
virtual void load(); virtual void load();

@ -29,8 +29,8 @@
#include <konqbookmarkmanager.h> #include <konqbookmarkmanager.h>
#include <knewmenu.h> #include <knewmenu.h>
KerryLabel::KerryLabel (TQWidget* tqparent, const char* name) KerryLabel::KerryLabel (TQWidget* parent, const char* name)
: KURLLabel (tqparent, name) : KURLLabel (parent, name)
{ {
dragInfo.state = diNone; dragInfo.state = diNone;
} }
@ -87,7 +87,7 @@ void KerryLabel::doDrag()
void KerryLabel::popupMenu( const TQPoint &_global ) void KerryLabel::popupMenu( const TQPoint &_global )
{ {
KFileItem item( ((HitWidget*)tqparent())->uri(),((HitWidget*)tqparent())->mimetype(),KFileItem::Unknown); KFileItem item( ((HitWidget*)parent())->uri(),((HitWidget*)parent())->mimetype(),KFileItem::Unknown);
KFileItemList _items; KFileItemList _items;
_items.append( &item ); _items.append( &item );

@ -32,7 +32,7 @@ class KerryLabel : public KURLLabel
TQ_OBJECT TQ_OBJECT
public: public:
KerryLabel (TQWidget* tqparent = 0L, const char* name = 0L); KerryLabel (TQWidget* parent = 0L, const char* name = 0L);
protected: protected:
void mousePressEvent( TQMouseEvent* ); void mousePressEvent( TQMouseEvent* );

@ -22,8 +22,8 @@
#include <kglobalsettings.h> #include <kglobalsettings.h>
#include <hitwidget.h> #include <hitwidget.h>
KWidgetListbox::KWidgetListbox(TQWidget *tqparent, const char *name) KWidgetListbox::KWidgetListbox(TQWidget *parent, const char *name)
: TQTable(tqparent, name) : TQTable(parent, name)
{ {
setNumRows(0); setNumRows(0);
setNumCols(1); setNumCols(1);

@ -30,7 +30,7 @@ class KWidgetListbox : public TQTable
TQ_OBJECT TQ_OBJECT
public: public:
KWidgetListbox(TQWidget *tqparent = 0, const char *name = 0); KWidgetListbox(TQWidget *parent = 0, const char *name = 0);
~KWidgetListbox(); ~KWidgetListbox();
int insertItem(TQWidget* item, int index = -1); int insertItem(TQWidget* item, int index = -1);

@ -61,8 +61,8 @@
#include <kwin.h> #include <kwin.h>
#include <kwinmodule.h> #include <kwinmodule.h>
SearchDlg::SearchDlg(TQWidget *tqparent, const char *name) SearchDlg::SearchDlg(TQWidget *parent, const char *name)
: DCOPObject("search"), HitsLayout(tqparent, name) : DCOPObject("search"), HitsLayout(parent, name)
{ {
#define switchLabelCount 19 #define switchLabelCount 19
static TQLabel* switchLabel[switchLabelCount] = {showEverything, showApplications, showContacts, showDocuments, static TQLabel* switchLabel[switchLabelCount] = {showEverything, showApplications, showContacts, showDocuments,
@ -1243,7 +1243,7 @@ void SearchDlg::displayResults(BeagleSearch::BeagleResultList &items)
void SearchDlg::slotOpen() void SearchDlg::slotOpen()
{ {
HitWidget* item = static_cast<HitWidget*>(TQT_TQWIDGET(TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->tqparent())); HitWidget* item = static_cast<HitWidget*>(TQT_TQWIDGET(TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->parent()));
if (item) { if (item) {
TQString mimetype = item->mimetype(); TQString mimetype = item->mimetype();
if (mimetype=="beagle/x-kopete-log" || mimetype=="beagle/x-gaim-log") { if (mimetype=="beagle/x-kopete-log" || mimetype=="beagle/x-gaim-log") {
@ -1300,7 +1300,7 @@ void SearchDlg::slotOpen()
void SearchDlg::slotOpenDir() void SearchDlg::slotOpenDir()
{ {
HitWidget* item = static_cast<HitWidget*>(TQT_TQWIDGET(TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->tqparent())); HitWidget* item = static_cast<HitWidget*>(TQT_TQWIDGET(TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->parent()));
if (item) if (item)
KRun::runURL(KURL(item->uri()).directory(), "inode/directory", false, true); KRun::runURL(KURL(item->uri()).directory(), "inode/directory", false, true);
} }

@ -70,7 +70,7 @@ class SearchDlg : public HitsLayout, virtual public dcopIface
}; };
public: public:
SearchDlg(TQWidget *tqparent = 0, const char *name = 0); SearchDlg(TQWidget *parent = 0, const char *name = 0);
~SearchDlg(); ~SearchDlg();
public slots: public slots:

Loading…
Cancel
Save