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}
};
BeagleSearch::BeagleSearch(int id, TQObject *tqparent, TQString term)
: id (id), kill_me (false), tqparent (tqparent)
BeagleSearch::BeagleSearch(int id, TQObject *parent, TQString term)
: id (id), kill_me (false), parent (parent)
{
query = beagle_query_new ();
beagle_query_set_max_hits(query, 100);
@ -212,7 +212,7 @@ void BeagleSearch::run()
TQCustomEvent *ev;
ev = new TQCustomEvent (KILLME, this);
tqApp->postEvent(tqparent, ev);
tqApp->postEvent(parent, ev);
}
void BeagleSearch::stopClient()
@ -402,7 +402,7 @@ void BeagleSearch::hits_added_cb (BeagleQuery *query, BeagleHitsAddedResponse *r
client->client_mutex->unlock ();
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)
@ -435,7 +435,7 @@ void BeagleSearch::hits_subtracted_cb (BeagleQuery */*query*/, BeagleHitsSubtrac
}
TQCustomEvent *ev = new TQCustomEvent (RESULTGONE, vanished);
tqApp->postEvent (client->tqparent, ev);
tqApp->postEvent (client->parent, ev);
}
void BeagleSearch::finished_cb (BeagleQuery */*query*/,
@ -456,5 +456,5 @@ void BeagleSearch::finished_cb (BeagleQuery */*query*/,
g_main_loop_quit (client->main_loop);
TQCustomEvent *ev = new TQCustomEvent (SEARCHOVER, client);
tqApp->postEvent (client->tqparent, ev);
tqApp->postEvent (client->parent, ev);
}

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

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

@ -32,7 +32,7 @@ class HitWidget : public HitWidgetLayout
Q_OBJECT
TQ_OBJECT
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();
void setCollapsible(BeagleSearch::beagle_result_struct *result);

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

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

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

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

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

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

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

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

@ -27,16 +27,16 @@
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");
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");
return new KCMKerry(tqparent, name);
return new KCMKerry(parent, name);
}
}

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

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

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

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

@ -29,8 +29,8 @@
#include <konqbookmarkmanager.h>
#include <knewmenu.h>
KerryLabel::KerryLabel (TQWidget* tqparent, const char* name)
: KURLLabel (tqparent, name)
KerryLabel::KerryLabel (TQWidget* parent, const char* name)
: KURLLabel (parent, name)
{
dragInfo.state = diNone;
}
@ -87,7 +87,7 @@ void KerryLabel::doDrag()
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;
_items.append( &item );

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

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

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

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

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

Loading…
Cancel
Save