summaryrefslogtreecommitdiffstats
path: root/kcron/ktapp.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:25:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:25:18 +0000
commitaa3a1ca934bc541bddd3fa136a85f106f7da266e (patch)
tree9ad0b795aed8fa4ac30c2fe0fd1aacb8175714c0 /kcron/ktapp.cpp
parentb10cf7066791a2f362495890cd50c984e8025412 (diff)
downloadtdeadmin-aa3a1ca934bc541bddd3fa136a85f106f7da266e.tar.gz
tdeadmin-aa3a1ca934bc541bddd3fa136a85f106f7da266e.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeadmin@1157635 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kcron/ktapp.cpp')
-rw-r--r--kcron/ktapp.cpp62
1 files changed, 31 insertions, 31 deletions
diff --git a/kcron/ktapp.cpp b/kcron/ktapp.cpp
index 76f0e08..35c009c 100644
--- a/kcron/ktapp.cpp
+++ b/kcron/ktapp.cpp
@@ -59,8 +59,8 @@ KTApp::KTApp() : KMainWindow(0)
KPopupMenu *editMenu = static_cast<KPopupMenu*>(guiFactory()->container("edit", this));
KPopupMenu *settingsMenu = static_cast<KPopupMenu*>(guiFactory()->container("settings", this));
- connect(editMenu,SIGNAL(highlighted(int)),this,SLOT(statusEditCallback(int)));
- connect(settingsMenu,SIGNAL(highlighted(int)),this,SLOT(statusSettingsCallback(int)));
+ connect(editMenu,TQT_SIGNAL(highlighted(int)),this,TQT_SLOT(statusEditCallback(int)));
+ connect(settingsMenu,TQT_SIGNAL(highlighted(int)),this,TQT_SLOT(statusSettingsCallback(int)));
// Read options.
readOptions();
}
@@ -111,33 +111,33 @@ const CTHost& KTApp::getCTHost() const
}
-QString KTApp::caption()
+TQString KTApp::caption()
{
- QString cap(kapp->caption());
+ TQString cap(kapp->caption());
return cap;
}
void KTApp::setupActions()
{
//File Menu
- KStdAction::save(this, SLOT(slotFileSave()), actionCollection());
- KStdAction::print(this, SLOT(slotFilePrint()), actionCollection());
- KStdAction::quit(this, SLOT(slotFileQuit()), actionCollection());
+ KStdAction::save(this, TQT_SLOT(slotFileSave()), actionCollection());
+ KStdAction::print(this, TQT_SLOT(slotFilePrint()), actionCollection());
+ KStdAction::quit(this, TQT_SLOT(slotFileQuit()), actionCollection());
//Edit menu
- KStdAction::cut(this, SLOT(slotEditCut()), actionCollection());
- KStdAction::copy(this, SLOT(slotEditCopy()), actionCollection());
- KStdAction::paste(this, SLOT(slotEditPaste()), actionCollection());
- (void)new KAction(i18n("&New..."), KStdAccel::openNew(), this,SLOT(slotEditNew()),actionCollection(),"edit_new");
+ 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");
//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,SLOT(slotEditModify()),actionCollection(),"edit_modify");
- (void)new KAction(i18n("&Delete"), 0, this,SLOT(slotEditDelete()),actionCollection(),"edit_delete");
- (void)new KAction(i18n("&Enabled"), 0, this,SLOT(slotEditEnable()),actionCollection(),"edit_enable");
- (void)new KAction(i18n("&Run Now"), 0, this,SLOT(slotEditRunNow()),actionCollection(),"edit_run");
+ (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");
//Settings menu
- (void)new KAction(i18n("Show &Toolbar"), 0, this,SLOT(slotViewToolBar()),actionCollection(),"show_toolbar");
- (void)new KAction(i18n("Show &Statusbar"), 0, this,SLOT(slotViewStatusBar()),actionCollection(),"show_statusbar");
+ (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");
}
@@ -149,26 +149,26 @@ void KTApp::initStatusBar()
void KTApp::saveOptions()
{
- config->setGroup(QString("General Options"));
- config->writeEntry(QString("Geometry"), size());
- config->writeEntry(QString("Show Toolbar"), toolBar()->isVisible());
- config->writeEntry(QString("Show Statusbar"), statusBar()->isVisible());
- config->writeEntry(QString("ToolBarPos"), (int)toolBar()->barPos());
+ config->setGroup(TQString("General Options"));
+ config->writeEntry(TQString("Geometry"), size());
+ config->writeEntry(TQString("Show Toolbar"), toolBar()->isVisible());
+ config->writeEntry(TQString("Show Statusbar"), statusBar()->isVisible());
+ config->writeEntry(TQString("ToolBarPos"), (int)toolBar()->barPos());
}
void KTApp::readOptions()
{
- config->setGroup(QString("General Options"));
+ config->setGroup(TQString("General Options"));
KPopupMenu *settingsMenu = static_cast<KPopupMenu*>(guiFactory()->container("settings", this));
// bar status settings
- bool bViewToolbar = config->readBoolEntry(QString("Show Toolbar"), true);
+ bool bViewToolbar = config->readBoolEntry(TQString("Show Toolbar"), true);
settingsMenu->setItemChecked(settingsMenu->idAt(0),bViewToolbar);
if (!bViewToolbar)
toolBar()->hide();
- bool bViewStatusbar = config->readBoolEntry(QString("Show Statusbar"), true);
+ bool bViewStatusbar = config->readBoolEntry(TQString("Show Statusbar"), true);
settingsMenu->setItemChecked(settingsMenu->idAt(1),bViewStatusbar);
if (!bViewStatusbar)
statusBar()->hide();
@@ -176,12 +176,12 @@ void KTApp::readOptions()
// bar position settings
KToolBar::BarPosition tool_bar_pos;
tool_bar_pos=(KToolBar::BarPosition)
- config->readNumEntry(QString("ToolBarPos"),
+ config->readNumEntry(TQString("ToolBarPos"),
KToolBar::Top);
toolBar()->setBarPos(tool_bar_pos);
- QSize size=config->readSizeEntry(QString("Geometry"));
+ TQSize size=config->readSizeEntry(TQString("Geometry"));
// Minimum size is 350 by 250
@@ -212,7 +212,7 @@ bool KTApp::queryClose()
int retVal = KMessageBox::warningYesNoCancel(win,
i18n("Scheduled tasks have been modified.\nDo you want to save changes?"),
- QString::null,
+ TQString::null,
KStdGuiItem::save(), KStdGuiItem::discard()
);
@@ -274,7 +274,7 @@ void KTApp::slotFileQuit()
close();
}
-void KTApp::slotEdit(const QPoint& qp)
+void KTApp::slotEdit(const TQPoint& qp)
{
KPopupMenu *editMenu = static_cast<KPopupMenu*>(guiFactory()->container("edit", this));
editMenu->exec(qp, 0);
@@ -374,14 +374,14 @@ void KTApp::slotViewStatusBar()
slotStatusMsg(i18n("Ready."));
}
-void KTApp::slotStatusMsg(const QString & text)
+void KTApp::slotStatusMsg(const TQString & text)
{
statusBar()->clear();
statusBar()->changeItem(text, statusMessage);
setCaption(i18n("Task Scheduler"), cthost->dirty());
}
-void KTApp::slotStatusHelpMsg(const QString & text)
+void KTApp::slotStatusHelpMsg(const TQString & text)
{
statusBar()->message(text, 2000);
}