summaryrefslogtreecommitdiffstats
path: root/parts/snippet
diff options
context:
space:
mode:
Diffstat (limited to 'parts/snippet')
-rw-r--r--parts/snippet/snippet_part.cpp4
-rw-r--r--parts/snippet/snippet_part.h2
-rw-r--r--parts/snippet/snippet_widget.cpp10
-rw-r--r--parts/snippet/snippetitem.cpp16
-rw-r--r--parts/snippet/snippetitem.h6
-rw-r--r--parts/snippet/snippetsettings.cpp8
-rw-r--r--parts/snippet/snippetsettings.h4
7 files changed, 25 insertions, 25 deletions
diff --git a/parts/snippet/snippet_part.cpp b/parts/snippet/snippet_part.cpp
index e130d1e6..3224a891 100644
--- a/parts/snippet/snippet_part.cpp
+++ b/parts/snippet/snippet_part.cpp
@@ -37,8 +37,8 @@ static const KDevPluginInfo data("kdevsnippet");
typedef KDevGenericFactory<SnippetPart> snippetFactory;
K_EXPORT_COMPONENT_FACTORY( libkdevsnippet, snippetFactory( data ) )
-SnippetPart::SnippetPart(TQObject *tqparent, const char *name, const TQStringList& )
- : KDevPlugin(&data, tqparent, name ? name : "SnippetPart" )
+SnippetPart::SnippetPart(TQObject *parent, const char *name, const TQStringList& )
+ : KDevPlugin(&data, parent, name ? name : "SnippetPart" )
{
setInstance(snippetFactory::instance());
setXMLFile("kdevpart_snippet.rc");
diff --git a/parts/snippet/snippet_part.h b/parts/snippet/snippet_part.h
index f9f7bc93..78212a1a 100644
--- a/parts/snippet/snippet_part.h
+++ b/parts/snippet/snippet_part.h
@@ -31,7 +31,7 @@ class SnippetPart : public KDevPlugin
public:
- SnippetPart(TQObject *tqparent, const char *name, const TQStringList &);
+ SnippetPart(TQObject *parent, const char *name, const TQStringList &);
~SnippetPart();
KAboutData * aboutData();
TQStringList getAllLanguages();
diff --git a/parts/snippet/snippet_widget.cpp b/parts/snippet/snippet_widget.cpp
index e460cb67..9bcfa55c 100644
--- a/parts/snippet/snippet_widget.cpp
+++ b/parts/snippet/snippet_widget.cpp
@@ -85,7 +85,7 @@ SnippetWidget::~SnippetWidget()
writeConfig();
delete _cfg;
- /* We need to delete the child items before the tqparent items
+ /* We need to delete the child items before the parent items
otherwise KDevelop would crash on exiting */
SnippetItem * item;
while (_list.count() > 0) {
@@ -111,7 +111,7 @@ void SnippetWidget::slotAdd()
which the selected item is a child of*/
SnippetGroup * group = dynamic_cast<SnippetGroup*>(selectedItem());
if (!group)
- group = dynamic_cast<SnippetGroup*>(selectedItem()->tqparent());
+ group = dynamic_cast<SnippetGroup*>(selectedItem()->parent());
/*fill the combobox with the names of all SnippetGroup entries*/
for (SnippetItem *it=_list.first(); it; it=_list.next()) {
@@ -218,10 +218,10 @@ void SnippetWidget::slotEdit()
pSnippet->setName( dlg.snippetName->text() );
pSnippet->setText( dlg.snippetText->text() );
- /* if the user changed the tqparent we need to move the snippet */
+ /* if the user changed the parent we need to move the snippet */
if ( SnippetItem::findGroupById(pSnippet->getParent(), _list)->getName() != dlg.cbGroup->currentText() ) {
SnippetGroup * newGroup = dynamic_cast<SnippetGroup*>(SnippetItem::findItemByName(dlg.cbGroup->currentText(), _list));
- pSnippet->tqparent()->takeItem(pSnippet);
+ pSnippet->parent()->takeItem(pSnippet);
newGroup->insertItem(pSnippet);
pSnippet->resetParent();
}
@@ -917,7 +917,7 @@ void SnippetWidget::slotDropped(TQDropEvent *e, TQListViewItem *)
SnippetGroup *group = dynamic_cast<SnippetGroup *>(item2);
if (!group)
- group = dynamic_cast<SnippetGroup *>(item2->tqparent());
+ group = dynamic_cast<SnippetGroup *>(item2->parent());
TQCString dropped;
TQByteArray data = e->tqencodedData("text/plain");
diff --git a/parts/snippet/snippetitem.cpp b/parts/snippet/snippetitem.cpp
index 69010a5d..e2f08a2b 100644
--- a/parts/snippet/snippetitem.cpp
+++ b/parts/snippet/snippetitem.cpp
@@ -11,20 +11,20 @@
#include "snippetitem.h"
-SnippetItem::SnippetItem(TQListView * tqparent, TQString name, TQString text )
- : TQListViewItem( tqparent, name )
+SnippetItem::SnippetItem(TQListView * parent, TQString name, TQString text )
+ : TQListViewItem( parent, name )
{
strName = name;
strText = text;
iParent = -1;
}
-SnippetItem::SnippetItem(TQListViewItem * tqparent, TQString name, TQString text)
- : TQListViewItem( tqparent, name )
+SnippetItem::SnippetItem(TQListViewItem * parent, TQString name, TQString text)
+ : TQListViewItem( parent, name )
{
strName = name;
strText = text;
- iParent = ((SnippetGroup *)tqparent)->getId();
+ iParent = ((SnippetGroup *)parent)->getId();
}
SnippetItem::~SnippetItem()
@@ -69,7 +69,7 @@ void SnippetItem::setName(TQString name)
void SnippetItem::resetParent()
{
- SnippetGroup * group = dynamic_cast<SnippetGroup*>(tqparent());
+ SnippetGroup * group = dynamic_cast<SnippetGroup*>(parent());
if (group)
iParent = group->getId();
}
@@ -100,8 +100,8 @@ Deklaration for class SnippetGroup
int SnippetGroup::iMaxId = 1;
-SnippetGroup::SnippetGroup(TQListView * tqparent, TQString name, int id, TQString lang)
- : SnippetItem(tqparent, name, "GROUP")
+SnippetGroup::SnippetGroup(TQListView * parent, TQString name, int id, TQString lang)
+ : SnippetItem(parent, name, "GROUP")
{
if (id > 0) {
iId = id;
diff --git a/parts/snippet/snippetitem.h b/parts/snippet/snippetitem.h
index d96ecd5b..ee181725 100644
--- a/parts/snippet/snippetitem.h
+++ b/parts/snippet/snippetitem.h
@@ -24,7 +24,7 @@ It also holds the needed data for one snippet.
class SnippetItem : public TQListViewItem {
friend class SnippetGroup;
public:
- SnippetItem(TQListViewItem * tqparent, TQString name, TQString text);
+ SnippetItem(TQListViewItem * parent, TQString name, TQString text);
~SnippetItem();
TQString getName();
@@ -37,7 +37,7 @@ public:
static SnippetGroup * findGroupById(int id, TQPtrList<SnippetItem> &list);
private:
- SnippetItem(TQListView * tqparent, TQString name, TQString text);
+ SnippetItem(TQListView * parent, TQString name, TQString text);
TQString strName;
TQString strText;
int iParent;
@@ -51,7 +51,7 @@ it in the main TQPtrList<SnippetItem>.
*/
class SnippetGroup : public SnippetItem {
public:
- SnippetGroup(TQListView * tqparent, TQString name, int id, TQString lang=i18n("All"));
+ SnippetGroup(TQListView * parent, TQString name, int id, TQString lang=i18n("All"));
~SnippetGroup();
int getId() { return iId; }
diff --git a/parts/snippet/snippetsettings.cpp b/parts/snippet/snippetsettings.cpp
index d66094e7..8e559ba5 100644
--- a/parts/snippet/snippetsettings.cpp
+++ b/parts/snippet/snippetsettings.cpp
@@ -15,14 +15,14 @@
#include "snippet_widget.h"
-SnippetSettings::SnippetSettings(TQWidget *tqparent, const char *name)
- : SnippetSettingsBase(tqparent, name)
+SnippetSettings::SnippetSettings(TQWidget *parent, const char *name)
+ : SnippetSettingsBase(parent, name)
{
_widget = NULL;
}
-SnippetSettings::SnippetSettings(SnippetWidget * w, TQWidget *tqparent, const char *name)
- : SnippetSettingsBase(tqparent, name)
+SnippetSettings::SnippetSettings(SnippetWidget * w, TQWidget *parent, const char *name)
+ : SnippetSettingsBase(parent, name)
{
_cfg = w->getSnippetConfig();
_widget = w;
diff --git a/parts/snippet/snippetsettings.h b/parts/snippet/snippetsettings.h
index 44c84e33..62b228b1 100644
--- a/parts/snippet/snippetsettings.h
+++ b/parts/snippet/snippetsettings.h
@@ -26,8 +26,8 @@ class SnippetSettings : public SnippetSettingsBase
Q_OBJECT
TQ_OBJECT
public:
- SnippetSettings(TQWidget *tqparent = 0, const char *name = 0);
- SnippetSettings(SnippetWidget * w, TQWidget *tqparent = 0, const char *name = 0);
+ SnippetSettings(TQWidget *parent = 0, const char *name = 0);
+ SnippetSettings(SnippetWidget * w, TQWidget *parent = 0, const char *name = 0);
~SnippetSettings();