diff options
Diffstat (limited to 'kcron/ktview.cpp')
-rw-r--r-- | kcron/ktview.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
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(); |