diff options
Diffstat (limited to 'kcron/kttask.cpp')
-rw-r--r-- | kcron/kttask.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/kcron/kttask.cpp b/kcron/kttask.cpp index 88e5567..46ec77c 100644 --- a/kcron/kttask.cpp +++ b/kcron/kttask.cpp @@ -33,18 +33,18 @@ #include "kticon.h" -class KTPushButton : public QPushButton +class KTPushButton : public TQPushButton { public: - KTPushButton(TQWidget * parent, const char * name = 0 ) - : TQPushButton(parent, name), isSelected(false), isDirty(false) + KTPushButton(TQWidget * tqparent, const char * name = 0 ) + : TQPushButton(tqparent, name), isSelected(false), isDirty(false) { updatePalette(); } void updatePalette() { - palNormal = ((TQWidget *)parent())->palette(); + palNormal = ((TQWidget *)tqparent())->palette(); palSelected = palNormal; for(int cg = (int) TQPalette::Disabled; cg < (int) TQPalette::NColorGroups; cg++) { @@ -156,8 +156,8 @@ KTTask::KTTask(CTTask* _cttask, const TQString & _caption) leCommand->setText(TQString::fromLocal8Bit(cttask->command.c_str())); - labComment->setFixedWidth( QMAX( labComment->width(), labCommand->width()) ); - labCommand->setFixedWidth( QMAX( labComment->width(), labCommand->width()) ); + labComment->setFixedWidth( TQMAX( labComment->width(), labCommand->width()) ); + labCommand->setFixedWidth( TQMAX( labComment->width(), labCommand->width()) ); slotCommandChanged(); @@ -269,7 +269,7 @@ KTTask::KTTask(CTTask* _cttask, const TQString & _caption) v4->addSpacing( 2 * KDialogBase::spacingHint() ); labAM = new TQLabel( i18n("AM"), bgHour, "labAM"); - labAM->setAlignment(AlignRight | AlignVCenter); + labAM->tqsetAlignment(AlignRight | AlignVCenter); v4->addWidget( labAM ); @@ -292,7 +292,7 @@ KTTask::KTTask(CTTask* _cttask, const TQString & _caption) } labPM = new TQLabel( i18n("PM"), bgHour, "labPM"); - labPM->setAlignment(AlignRight | AlignVCenter); + labPM->tqsetAlignment(AlignRight | AlignVCenter); v4->addWidget( labPM ); hhours = new TQHBoxLayout( v4, KDialogBase::spacingHint() ); @@ -398,12 +398,12 @@ KTTask::KTTask(CTTask* _cttask, const TQString & _caption) // key acceleration key_accel = new KAccel(this); - key_accel->insert(KStdAccel::Open, this, TQT_SLOT(slotOK())); - key_accel->insert(KStdAccel::Close, this, TQT_SLOT(slotCancel())); - key_accel->insert(KStdAccel::Quit, this, TQT_SLOT(slotCancel())); + key_accel->insert(KStdAccel::Open, TQT_TQOBJECT(this), TQT_SLOT(slotOK())); + key_accel->insert(KStdAccel::Close, TQT_TQOBJECT(this), TQT_SLOT(slotCancel())); + key_accel->insert(KStdAccel::Quit, TQT_TQOBJECT(this), TQT_SLOT(slotCancel())); key_accel->readSettings(); - setFixedSize( minimumSize() ); + setFixedSize( tqminimumSize() ); slotDailyChanged(); slotMonthChanged(); slotDayOfMonthChanged(); @@ -421,10 +421,10 @@ void KTTask::slotCommandChanged() /* TQString qs(leCommand->text()); - int beginPos(qs.findRev("/", qs.length()) + 1); + int beginPos(qs.tqfindRev("/", qs.length()) + 1); if (beginPos < 0) beginPos = 0; - int endPos(qs.findRev(" ", qs.length())); + int endPos(qs.tqfindRev(" ", qs.length())); if (endPos < 0) endPos = qs.length(); TQString iconName(qs.mid(beginPos, endPos-beginPos) + ".xpm"); @@ -609,9 +609,9 @@ void KTTask::slotOK() // absolute path TQString qs(leCommand->text()); - if (qs.find("/") == 0) + if (qs.tqfind("/") == 0) { - int spacePos(qs.find(" ")); + int spacePos(qs.tqfind(" ")); if (spacePos < 0) spacePos = qs.length(); TQString programName(qs.left(spacePos)); TQFileInfo file(programName); @@ -636,7 +636,7 @@ void KTTask::slotOK() // save work in process if (!cttask->user.empty()) { - cttask->user = TQFile::encodeName(leUser->text()); + cttask->user = TQFile::encodeName(leUser->text()).data(); } else { |