diff options
Diffstat (limited to 'kcron/ktapp.cpp')
-rw-r--r-- | kcron/ktapp.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/kcron/ktapp.cpp b/kcron/ktapp.cpp index 35c009c..e767b73 100644 --- a/kcron/ktapp.cpp +++ b/kcron/ktapp.cpp @@ -70,7 +70,7 @@ bool KTApp::init() if (cthost->isError()) { KMessageBox::error(this, i18n("The following error occurred while initializing KCron:" - "\n\n%1\n\nKCron will now exit.\n").arg(cthost->errorMessage())); + "\n\n%1\n\nKCron will now exit.\n").tqarg(cthost->errorMessage())); return false; } @@ -120,31 +120,31 @@ TQString KTApp::caption() void KTApp::setupActions() { //File Menu - KStdAction::save(this, TQT_SLOT(slotFileSave()), actionCollection()); - KStdAction::print(this, TQT_SLOT(slotFilePrint()), actionCollection()); - KStdAction::quit(this, TQT_SLOT(slotFileQuit()), actionCollection()); + KStdAction::save(TQT_TQOBJECT(this), TQT_SLOT(slotFileSave()), actionCollection()); + KStdAction::print(TQT_TQOBJECT(this), TQT_SLOT(slotFilePrint()), actionCollection()); + KStdAction::quit(TQT_TQOBJECT(this), TQT_SLOT(slotFileQuit()), actionCollection()); //Edit menu - KStdAction::cut(this, TQT_SLOT(slotEditCut()), actionCollection()); - KStdAction::copy(this, TQT_SLOT(slotEditCopy()), actionCollection()); - KStdAction::paste(this, TQT_SLOT(slotEditPaste()), actionCollection()); - (void)new KAction(i18n("&New..."), KStdAccel::openNew(), this,TQT_SLOT(slotEditNew()),actionCollection(),"edit_new"); + KStdAction::cut(TQT_TQOBJECT(this), TQT_SLOT(slotEditCut()), actionCollection()); + KStdAction::copy(TQT_TQOBJECT(this), TQT_SLOT(slotEditCopy()), actionCollection()); + KStdAction::paste(TQT_TQOBJECT(this), TQT_SLOT(slotEditPaste()), actionCollection()); + (void)new KAction(i18n("&New..."), KStdAccel::openNew(), TQT_TQOBJECT(this),TQT_SLOT(slotEditNew()),actionCollection(),"edit_new"); //I don't like this KStdAccel::open() for modifying, but I'm just porting this to xmlui - (void)new KAction(i18n("M&odify..."), KStdAccel::open(), this,TQT_SLOT(slotEditModify()),actionCollection(),"edit_modify"); - (void)new KAction(i18n("&Delete"), 0, this,TQT_SLOT(slotEditDelete()),actionCollection(),"edit_delete"); - (void)new KAction(i18n("&Enabled"), 0, this,TQT_SLOT(slotEditEnable()),actionCollection(),"edit_enable"); - (void)new KAction(i18n("&Run Now"), 0, this,TQT_SLOT(slotEditRunNow()),actionCollection(),"edit_run"); + (void)new KAction(i18n("M&odify..."), KStdAccel::open(), TQT_TQOBJECT(this),TQT_SLOT(slotEditModify()),actionCollection(),"edit_modify"); + (void)new KAction(i18n("&Delete"), 0, TQT_TQOBJECT(this),TQT_SLOT(slotEditDelete()),actionCollection(),"edit_delete"); + (void)new KAction(i18n("&Enabled"), 0, TQT_TQOBJECT(this),TQT_SLOT(slotEditEnable()),actionCollection(),"edit_enable"); + (void)new KAction(i18n("&Run Now"), 0, TQT_TQOBJECT(this),TQT_SLOT(slotEditRunNow()),actionCollection(),"edit_run"); //Settings menu - (void)new KAction(i18n("Show &Toolbar"), 0, this,TQT_SLOT(slotViewToolBar()),actionCollection(),"show_toolbar"); - (void)new KAction(i18n("Show &Statusbar"), 0, this,TQT_SLOT(slotViewStatusBar()),actionCollection(),"show_statusbar"); + (void)new KAction(i18n("Show &Toolbar"), 0, TQT_TQOBJECT(this),TQT_SLOT(slotViewToolBar()),actionCollection(),"show_toolbar"); + (void)new KAction(i18n("Show &Statusbar"), 0, TQT_TQOBJECT(this),TQT_SLOT(slotViewStatusBar()),actionCollection(),"show_statusbar"); } void KTApp::initStatusBar() { statusBar()->insertItem(i18n("Ready."), statusMessage, 1); - statusBar()->setItemAlignment(statusMessage, Qt::AlignLeft | Qt::AlignVCenter); + statusBar()->setItemAlignment(statusMessage, TQt::AlignLeft | TQt::AlignVCenter); } void KTApp::saveOptions() @@ -208,11 +208,11 @@ bool KTApp::queryClose() { if(cthost->dirty()) { - KTApp* win = (KTApp*)parent(); + KTApp* win = (KTApp*)tqparent(); int retVal = KMessageBox::warningYesNoCancel(win, i18n("Scheduled tasks have been modified.\nDo you want to save changes?"), - TQString::null, + TQString(), KStdGuiItem::save(), KStdGuiItem::discard() ); |