summaryrefslogtreecommitdiffstats
path: root/kcron
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
commit93910780efc46524d0f2c6693784b3fa10d26985 (patch)
treee44cc42ad795bb8399c6558bf8af3887c966fd49 /kcron
parent4a25ca5c80d9b88fdc1a0d44d1db47da47206899 (diff)
downloadtdeadmin-93910780efc46524d0f2c6693784b3fa10d26985.tar.gz
tdeadmin-93910780efc46524d0f2c6693784b3fa10d26985.zip
rename the following methods:
tqparent parent tqmask mask git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeadmin@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kcron')
-rw-r--r--kcron/ktapp.cpp2
-rw-r--r--kcron/ktlistcron.cpp12
-rw-r--r--kcron/ktlistcron.h6
-rw-r--r--kcron/ktlistitem.cpp8
-rw-r--r--kcron/ktlistitem.h4
-rw-r--r--kcron/ktlisttask.cpp8
-rw-r--r--kcron/ktlisttask.h2
-rw-r--r--kcron/ktlisttasks.cpp8
-rw-r--r--kcron/ktlisttasks.h4
-rw-r--r--kcron/ktlistvar.cpp8
-rw-r--r--kcron/ktlistvar.h2
-rw-r--r--kcron/ktlistvars.cpp8
-rw-r--r--kcron/ktlistvars.h4
-rw-r--r--kcron/kttask.cpp6
-rw-r--r--kcron/ktview.cpp24
-rw-r--r--kcron/ktview.h2
16 files changed, 54 insertions, 54 deletions
diff --git a/kcron/ktapp.cpp b/kcron/ktapp.cpp
index e767b73..dfbe15e 100644
--- a/kcron/ktapp.cpp
+++ b/kcron/ktapp.cpp
@@ -208,7 +208,7 @@ bool KTApp::queryClose()
{
if(cthost->dirty())
{
- KTApp* win = (KTApp*)tqparent();
+ KTApp* win = (KTApp*)parent();
int retVal = KMessageBox::warningYesNoCancel(win,
i18n("Scheduled tasks have been modified.\nDo you want to save changes?"),
diff --git a/kcron/ktlistcron.cpp b/kcron/ktlistcron.cpp
index 288f848..05dadb3 100644
--- a/kcron/ktlistcron.cpp
+++ b/kcron/ktlistcron.cpp
@@ -19,22 +19,22 @@
#include "kticon.h"
#include "ktprint.h"
-KTListCron::KTListCron(KTListItem* tqparent, const char* name,
+KTListCron::KTListCron(KTListItem* parent, const char* name,
CTCron* _ctcron) :
- KTListItem(tqparent, name, _ctcron)
+ KTListItem(parent, name, _ctcron)
{
refresh();
}
-KTListCron::KTListCron(TQListView* tqparent, const char* name,
+KTListCron::KTListCron(TQListView* parent, const char* name,
CTCron* _ctcron) :
- KTListItem(tqparent, name, _ctcron)
+ KTListItem(parent, name, _ctcron)
{
refresh();
}
-KTListCron::KTListCron(TQListView* tqparent, CTCron* _ctcron) :
- KTListItem(tqparent, (const char*)0, _ctcron)
+KTListCron::KTListCron(TQListView* parent, CTCron* _ctcron) :
+ KTListItem(parent, (const char*)0, _ctcron)
{
refresh();
}
diff --git a/kcron/ktlistcron.h b/kcron/ktlistcron.h
index 8b475ab..713a375 100644
--- a/kcron/ktlistcron.h
+++ b/kcron/ktlistcron.h
@@ -28,17 +28,17 @@ public:
/**
* Construct tasks or variables folder from branch.
*/
- KTListCron(KTListItem* tqparent, const char* name, CTCron* _ctcron);
+ KTListCron(KTListItem* parent, const char* name, CTCron* _ctcron);
/**
* Construct tasks or variables folder from root.
*/
- KTListCron(TQListView* tqparent, const char* name, CTCron* _ctcron);
+ KTListCron(TQListView* parent, const char* name, CTCron* _ctcron);
/**
* Construct user folder from root.
*/
- KTListCron(TQListView* tqparent, CTCron* _ctcron);
+ KTListCron(TQListView* parent, CTCron* _ctcron);
/**
* Refresh.
diff --git a/kcron/ktlistitem.cpp b/kcron/ktlistitem.cpp
index d8ef4c2..ef2ad0e 100644
--- a/kcron/ktlistitem.cpp
+++ b/kcron/ktlistitem.cpp
@@ -14,14 +14,14 @@
#include "ctcron.h"
-KTListItem::KTListItem(KTListItem* tqparent, const char* name, CTCron* _ctcron) :
- TQListViewItem(tqparent, name),
+KTListItem::KTListItem(KTListItem* parent, const char* name, CTCron* _ctcron) :
+ TQListViewItem(parent, name),
ctcron(_ctcron)
{
}
-KTListItem::KTListItem(TQListView* tqparent, const char* name, CTCron* _ctcron) :
- TQListViewItem(tqparent, name),
+KTListItem::KTListItem(TQListView* parent, const char* name, CTCron* _ctcron) :
+ TQListViewItem(parent, name),
ctcron(_ctcron)
{
}
diff --git a/kcron/ktlistitem.h b/kcron/ktlistitem.h
index fde698e..89d56bd 100644
--- a/kcron/ktlistitem.h
+++ b/kcron/ktlistitem.h
@@ -32,12 +32,12 @@ public:
/**
* Construct a root list view item from a CTCron.
*/
- KTListItem(KTListItem* tqparent, const char* name, CTCron* _ctcron);
+ KTListItem(KTListItem* parent, const char* name, CTCron* _ctcron);
/**
* Construct a non-root list view item from a CTCron.
*/
- KTListItem(TQListView* tqparent, const char* name, CTCron* _ctcron);
+ KTListItem(TQListView* parent, const char* name, CTCron* _ctcron);
/**
* Destructor.
diff --git a/kcron/ktlisttask.cpp b/kcron/ktlisttask.cpp
index 28329ed..17a1378 100644
--- a/kcron/ktlisttask.cpp
+++ b/kcron/ktlisttask.cpp
@@ -18,14 +18,14 @@
#include "kttask.h"
#include "ktprint.h"
-KTListTask::KTListTask(KTListItem* tqparent,
+KTListTask::KTListTask(KTListItem* parent,
CTCron* _ctcron, CTTask* _cttask) :
- KTListItem(tqparent, 0, _ctcron),
+ KTListItem(parent, 0, _ctcron),
cttask(_cttask)
{
refresh();
- tqparent->setOpen(true);
+ parent->setOpen(true);
}
void KTListTask::refresh()
@@ -61,7 +61,7 @@ void KTListTask::edit()
{
KTTask(cttask,i18n("Modify Task")).exec();
refresh();
- tqparent()->sortChildItems(1, true);
+ parent()->sortChildItems(1, true);
}
CTTask* KTListTask::getCTTask() const
diff --git a/kcron/ktlisttask.h b/kcron/ktlisttask.h
index 9dfb2b2..3384745 100644
--- a/kcron/ktlisttask.h
+++ b/kcron/ktlisttask.h
@@ -30,7 +30,7 @@ public:
/**
* Initialize the list view item and task.
*/
- KTListTask(KTListItem* tqparent, CTCron* _ctcron, CTTask* _cttask);
+ KTListTask(KTListItem* parent, CTCron* _ctcron, CTTask* _cttask);
/**
* Refresh from underlying task.
diff --git a/kcron/ktlisttasks.cpp b/kcron/ktlisttasks.cpp
index 1c21556..db153e6 100644
--- a/kcron/ktlisttasks.cpp
+++ b/kcron/ktlisttasks.cpp
@@ -24,14 +24,14 @@
#include "kttask.h"
#include "ktprint.h"
-KTListTasks::KTListTasks(KTListItem* tqparent, CTCron* _ctcron) :
- KTListItem(tqparent, 0, _ctcron)
+KTListTasks::KTListTasks(KTListItem* parent, CTCron* _ctcron) :
+ KTListItem(parent, 0, _ctcron)
{
refresh();
}
-KTListTasks::KTListTasks(TQListView* tqparent, CTCron* _ctcron) :
- KTListItem(tqparent, 0, _ctcron)
+KTListTasks::KTListTasks(TQListView* parent, CTCron* _ctcron) :
+ KTListItem(parent, 0, _ctcron)
{
refresh();
}
diff --git a/kcron/ktlisttasks.h b/kcron/ktlisttasks.h
index d413cc8..ad5e5a3 100644
--- a/kcron/ktlisttasks.h
+++ b/kcron/ktlisttasks.h
@@ -30,12 +30,12 @@ public:
/**
* Construct tasks folder from branch.
*/
- KTListTasks(KTListItem* tqparent, CTCron* _ctcron);
+ KTListTasks(KTListItem* parent, CTCron* _ctcron);
/**
* Construct tasks folder from root.
*/
- KTListTasks(TQListView* tqparent, CTCron* _ctcron);
+ KTListTasks(TQListView* parent, CTCron* _ctcron);
/**
* Internationalized description.
diff --git a/kcron/ktlistvar.cpp b/kcron/ktlistvar.cpp
index 5850052..e6c4f6a 100644
--- a/kcron/ktlistvar.cpp
+++ b/kcron/ktlistvar.cpp
@@ -19,13 +19,13 @@
#include "kticon.h"
#include "ktvariable.h"
-KTListVar::KTListVar(KTListItem* tqparent, CTCron* _ctcron,
+KTListVar::KTListVar(KTListItem* parent, CTCron* _ctcron,
CTVariable* _ctvariable) :
- KTListItem(tqparent, 0, _ctcron),
+ KTListItem(parent, 0, _ctcron),
ctvar(_ctvariable)
{
refresh();
- tqparent->setOpen(true);
+ parent->setOpen(true);
}
void KTListVar::refresh()
@@ -71,7 +71,7 @@ void KTListVar::edit()
{
KTVariable(ctvar,i18n("Modify Variable")).exec();
refresh();
- tqparent()->sortChildItems(1, true);
+ parent()->sortChildItems(1, true);
}
CTVariable* KTListVar::getCTVariable() const
diff --git a/kcron/ktlistvar.h b/kcron/ktlistvar.h
index 6bbb7a9..0d4e7f0 100644
--- a/kcron/ktlistvar.h
+++ b/kcron/ktlistvar.h
@@ -30,7 +30,7 @@ public:
/**
* Initialize the list view item and environment variable.
*/
- KTListVar(KTListItem* tqparent, CTCron* _ctcron, CTVariable* _ctvariable);
+ KTListVar(KTListItem* parent, CTCron* _ctcron, CTVariable* _ctvariable);
/**
* Refresh from underlying variable.
diff --git a/kcron/ktlistvars.cpp b/kcron/ktlistvars.cpp
index ec9894a..567d3d1 100644
--- a/kcron/ktlistvars.cpp
+++ b/kcron/ktlistvars.cpp
@@ -25,14 +25,14 @@
#include "ktvariable.h"
#include "ktprint.h"
-KTListVars::KTListVars(KTListItem* tqparent, CTCron* _ctcron) :
- KTListItem(tqparent, 0, _ctcron)
+KTListVars::KTListVars(KTListItem* parent, CTCron* _ctcron) :
+ KTListItem(parent, 0, _ctcron)
{
refresh();
}
-KTListVars::KTListVars(TQListView* tqparent, CTCron* _ctcron) :
- KTListItem(tqparent, 0, _ctcron)
+KTListVars::KTListVars(TQListView* parent, CTCron* _ctcron) :
+ KTListItem(parent, 0, _ctcron)
{
refresh();
}
diff --git a/kcron/ktlistvars.h b/kcron/ktlistvars.h
index 07c53b4..f455596 100644
--- a/kcron/ktlistvars.h
+++ b/kcron/ktlistvars.h
@@ -31,12 +31,12 @@ public:
/**
* Construct variables folder from branch.
*/
- KTListVars(KTListItem* tqparent, CTCron* _ctcron);
+ KTListVars(KTListItem* parent, CTCron* _ctcron);
/**
* Construct variables folder from root.
*/
- KTListVars(TQListView* tqparent, CTCron* _ctcron);
+ KTListVars(TQListView* parent, CTCron* _ctcron);
/**
* Internationalized description.
diff --git a/kcron/kttask.cpp b/kcron/kttask.cpp
index 99e9608..0568de5 100644
--- a/kcron/kttask.cpp
+++ b/kcron/kttask.cpp
@@ -36,15 +36,15 @@
class KTPushButton : public TQPushButton
{
public:
- KTPushButton(TQWidget * tqparent, const char * name = 0 )
- : TQPushButton(tqparent, name), isSelected(false), isDirty(false)
+ KTPushButton(TQWidget * parent, const char * name = 0 )
+ : TQPushButton(parent, name), isSelected(false), isDirty(false)
{
updatePalette();
}
void updatePalette()
{
- palNormal = ((TQWidget *)tqparent())->palette();
+ palNormal = ((TQWidget *)parent())->palette();
palSelected = palNormal;
for(int cg = (int) TQPalette::Disabled; cg < (int) TQPalette::NColorGroups; cg++)
{
diff --git a/kcron/ktview.cpp b/kcron/ktview.cpp
index 50a562c..7422aa5 100644
--- a/kcron/ktview.cpp
+++ b/kcron/ktview.cpp
@@ -51,8 +51,8 @@
#include "kttask.h"
#include "ktprint.h"
-KTView::KTView(TQWidget *tqparent, const char* name) :
- TQWidget(tqparent, name),
+KTView::KTView(TQWidget *parent, const char* name) :
+ TQWidget(parent, name),
listView(0),
currentCTCron(0),
currentIsTask(true),
@@ -67,16 +67,16 @@ KTView::KTView(TQWidget *tqparent, const char* name) :
refresh();
listView->setSelected(listView->firstChild(), true);
- connect(this, TQT_SIGNAL(enableModificationButtons(bool)), tqparent,
+ connect(this, TQT_SIGNAL(enableModificationButtons(bool)), parent,
TQT_SLOT(slotEnableModificationButtons(bool)));
- connect(this, TQT_SIGNAL(enablePaste(bool)), tqparent,
+ connect(this, TQT_SIGNAL(enablePaste(bool)), parent,
TQT_SLOT(slotEnablePaste(bool)));
- connect(this, TQT_SIGNAL(enableRunNow(bool)), tqparent,
+ connect(this, TQT_SIGNAL(enableRunNow(bool)), parent,
TQT_SLOT(slotEnableRunNow(bool)));
- connect(this, TQT_SIGNAL(enableEnabled(bool)), tqparent,
+ connect(this, TQT_SIGNAL(enableEnabled(bool)), parent,
TQT_SLOT(slotEnableEnabled(bool)));
}
@@ -216,7 +216,7 @@ void KTView::print () const
//Check that the correct item is selected, they must
//select the top level entry for all items to print
while (ktli->depth() != 0)
- ktli = (KTListItem*)ktli->tqparent();
+ ktli = (KTListItem*)ktli->parent();
user = ktli; //Used to store user's name
@@ -367,7 +367,7 @@ void KTView::create()
{
KTListItem* ktli = (KTListItem*)listView->currentItem();
if ((ktli->text(0) != KTListTasks::getDescription()) && (ktli->text(0) != KTListVars::getDescription())) {
- ktli = (KTListItem*)ktli->tqparent();
+ ktli = (KTListItem*)ktli->parent();
}
Q_CHECK_PTR(ktli);
ktli->create();
@@ -498,7 +498,7 @@ void KTView::slotEdit(TQListViewItem* /*qlvi*/)
void KTView::slotSetCurrent (TQListViewItem* qlvi)
{
- TQListViewItem* tqparent = qlvi->tqparent();
+ TQListViewItem* parent = qlvi->parent();
if (qlvi->text(0) == KTListVars::getDescription())
{
@@ -527,9 +527,9 @@ void KTView::slotSetCurrent (TQListViewItem* qlvi)
emit(enableEnabled(false));
}
- else if (tqparent)
+ else if (parent)
{
- if (tqparent->text(0) == KTListVars::getDescription())
+ if (parent->text(0) == KTListVars::getDescription())
{
// variable
currentCTCron = ((KTListVar*)qlvi)->getCTCron();
@@ -542,7 +542,7 @@ void KTView::slotSetCurrent (TQListViewItem* qlvi)
emit(enableEnabled(currentCTVariable->enabled));
}
- else if (tqparent->text(0) == KTListTasks::getDescription())
+ else if (parent->text(0) == KTListTasks::getDescription())
{
// task
currentCTCron = ((KTListTask*)qlvi)->getCTCron();
diff --git a/kcron/ktview.h b/kcron/ktview.h
index 8a53478..8e33e25 100644
--- a/kcron/ktview.h
+++ b/kcron/ktview.h
@@ -41,7 +41,7 @@ public:
/**
* Initializes view.
*/
- KTView (TQWidget* tqparent = 0, const char* name=0);
+ KTView (TQWidget* parent = 0, const char* name=0);
/**
* Destructor.