summaryrefslogtreecommitdiffstats
path: root/kcron/ktview.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-18 20:34:22 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-18 20:34:22 +0000
commitb09bffed6b43262948018dfb0f11890850ddf7c1 (patch)
tree138696bfcc7ac01070d0e8ecaa1cdf94611a2bd8 /kcron/ktview.cpp
parent6d43944a7130b9d1b4ae3fba37b774aced8612cf (diff)
downloadtdeadmin-b09bffed6b43262948018dfb0f11890850ddf7c1.tar.gz
tdeadmin-b09bffed6b43262948018dfb0f11890850ddf7c1.zip
TQt4 port kdeadmin
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeadmin@1237416 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kcron/ktview.cpp')
-rw-r--r--kcron/ktview.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/kcron/ktview.cpp b/kcron/ktview.cpp
index 27341de..9c5591e 100644
--- a/kcron/ktview.cpp
+++ b/kcron/ktview.cpp
@@ -51,8 +51,8 @@
#include "kttask.h"
#include "ktprint.h"
-KTView::KTView(TQWidget *parent, const char* name) :
- TQWidget(parent, name),
+KTView::KTView(TQWidget *tqparent, const char* name) :
+ TQWidget(tqparent, name),
listView(0),
currentCTCron(0),
currentIsTask(true),
@@ -62,21 +62,21 @@ KTView::KTView(TQWidget *parent, const char* name) :
clipboardCTTask(0),
clipboardCTVariable(0)
{
- ktapp = (KTApp*)parentWidget();
+ ktapp = (KTApp*)tqparentWidget();
setBackgroundMode(PaletteBase);
refresh();
listView->setSelected(listView->firstChild(), true);
- connect(this, TQT_SIGNAL(enableModificationButtons(bool)), parent,
+ connect(this, TQT_SIGNAL(enableModificationButtons(bool)), tqparent,
TQT_SLOT(slotEnableModificationButtons(bool)));
- connect(this, TQT_SIGNAL(enablePaste(bool)), parent,
+ connect(this, TQT_SIGNAL(enablePaste(bool)), tqparent,
TQT_SLOT(slotEnablePaste(bool)));
- connect(this, TQT_SIGNAL(enableRunNow(bool)), parent,
+ connect(this, TQT_SIGNAL(enableRunNow(bool)), tqparent,
TQT_SLOT(slotEnableRunNow(bool)));
- connect(this, TQT_SIGNAL(enableEnabled(bool)), parent,
+ connect(this, TQT_SIGNAL(enableEnabled(bool)), tqparent,
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->parent();
+ ktli = (KTListItem*)ktli->tqparent();
user = ktli; //Used to store user's name
@@ -266,16 +266,16 @@ void KTView :: pageHeading (KTListItem* user, KTPrint &printer) const
{
TQFont stnd;
TQString logonInfo;
- TQDateTime now (TQDateTime::currentDateTime());
+ TQDateTime now (TQDateTime::tqcurrentDateTime());
char hostName[20];
gethostname(hostName, 20);
// SSA : Fix Me user name, logon name and host name musst be
// SSA : not only in us-ascii ??
logonInfo = i18n("user on host", "%1 <%2> on %3")
- .arg(TQString::fromLocal8Bit(user->getCTCron()->name.c_str()))
- .arg(TQString::fromLocal8Bit(user->getCTCron()->login.c_str()))
- .arg(TQString::fromLocal8Bit(hostName));
+ .tqarg(TQString::fromLocal8Bit(user->getCTCron()->name.c_str()))
+ .tqarg(TQString::fromLocal8Bit(user->getCTCron()->login.c_str()))
+ .tqarg(TQString::fromLocal8Bit(hostName));
stnd = printer.getFont();
printer.setFont(TQFont( KGlobalSettings::generalFont().family(), 14, TQFont::Bold ));
@@ -315,7 +315,7 @@ void KTView::resizeEvent (TQResizeEvent*)
{
listView->setFixedWidth(width());
listView->setFixedHeight(height());
- repaint();
+ tqrepaint();
}
void KTView::copy()
@@ -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->parent();
+ ktli = (KTListItem*)ktli->tqparent();
}
Q_CHECK_PTR(ktli);
ktli->create();
@@ -427,10 +427,10 @@ TQString KTView::absolute() const
{
TQString fullCommand = TQString::fromLocal8Bit(currentCTTask->command.c_str());
TQString command(fullCommand);
- int pos(command.find(" "));
+ int pos(command.tqfind(" "));
if (pos > 0) command = command.left(pos);
- if (command.find("/") == 0)
+ if (command.tqfind("/") == 0)
return fullCommand;
TQString path = TQString::fromLocal8Bit(currentCTCron->path().c_str());
@@ -439,7 +439,7 @@ TQString KTView::absolute() const
TQString prefix;
TQString full;
- while ((end = path.find(":", begin)) > 0)
+ while ((end = path.tqfind(":", begin)) > 0)
{
prefix = path.mid(begin, begin + end) + "/";
full = prefix + command;
@@ -498,7 +498,7 @@ void KTView::slotEdit(TQListViewItem* /*qlvi*/)
void KTView::slotSetCurrent (TQListViewItem* qlvi)
{
- TQListViewItem* parent = qlvi->parent();
+ TQListViewItem* tqparent = qlvi->tqparent();
if (qlvi->text(0) == KTListVars::getDescription())
{
@@ -527,9 +527,9 @@ void KTView::slotSetCurrent (TQListViewItem* qlvi)
emit(enableEnabled(false));
}
- else if (parent)
+ else if (tqparent)
{
- if (parent->text(0) == KTListVars::getDescription())
+ if (tqparent->text(0) == KTListVars::getDescription())
{
// variable
currentCTCron = ((KTListVar*)qlvi)->getCTCron();
@@ -542,7 +542,7 @@ void KTView::slotSetCurrent (TQListViewItem* qlvi)
emit(enableEnabled(currentCTVariable->enabled));
}
- else if (parent->text(0) == KTListTasks::getDescription())
+ else if (tqparent->text(0) == KTListTasks::getDescription())
{
// task
currentCTCron = ((KTListTask*)qlvi)->getCTCron();