summaryrefslogtreecommitdiffstats
path: root/ksysv/TopWidget.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:10:12 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:10:12 -0600
commit189e536f1a74ecc2d9dcf35b9f5b3d54a2d1901e (patch)
tree52d62ad83db1551dd15dc147b4af4cacaae6e850 /ksysv/TopWidget.cpp
parent58cb2c2c17b1e6dd48cbfbcb69ec2f50f1ced9ee (diff)
downloadtdeadmin-189e536f1a74ecc2d9dcf35b9f5b3d54a2d1901e.tar.gz
tdeadmin-189e536f1a74ecc2d9dcf35b9f5b3d54a2d1901e.zip
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'ksysv/TopWidget.cpp')
-rw-r--r--ksysv/TopWidget.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/ksysv/TopWidget.cpp b/ksysv/TopWidget.cpp
index 4724eb7..67f8404 100644
--- a/ksysv/TopWidget.cpp
+++ b/ksysv/TopWidget.cpp
@@ -95,7 +95,7 @@ namespace Status
} // namespace Status
KSVTopLevel::KSVTopLevel()
- : KMainWindow(0, 0L, WStyle_ContextHelp|WDestructiveClose),
+ : TDEMainWindow(0, 0L, WStyle_ContextHelp|WDestructiveClose),
mConfig(KSVConfig::self()),
mView (0L),
mPreferences (0L),
@@ -208,7 +208,7 @@ void KSVTopLevel::initTools()
void KSVTopLevel::initActions ()
{
- KActionCollection* coll = actionCollection();
+ TDEActionCollection* coll = actionCollection();
// setup File menu
mFileRevert = KStdAction::revert (TQT_TQOBJECT(this), TQT_SLOT (slotClearChanges()), coll);
@@ -247,15 +247,15 @@ void KSVTopLevel::initActions ()
mPasteAppend = KStdAction::paste (TQT_TQOBJECT(this), TQT_SLOT (pasteAppend()),
coll, "ksysv_paste_append");
- mEditProperties = new KAction (i18n("P&roperties"), 0,
+ mEditProperties = new TDEAction (i18n("P&roperties"), 0,
TQT_TQOBJECT(this), TQT_SLOT(properties()),
coll, "ksysv_properties");
- mOpenDefault = new KAction (i18n ("&Open"), 0,
+ mOpenDefault = new TDEAction (i18n ("&Open"), 0,
TQT_TQOBJECT(this), TQT_SLOT (editService()),
coll, "ksysv_open_service");
- mOpenWith = new KActionMenu (i18n ("Open &With"), coll, "ksysv_open_with");
+ mOpenWith = new TDEActionMenu (i18n ("Open &With"), coll, "ksysv_open_with");
// setup Settings menu
createStandardStatusBarAction();
@@ -264,25 +264,25 @@ void KSVTopLevel::initActions ()
KStdAction::configureToolbars (TQT_TQOBJECT(this), TQT_SLOT(configureToolbars()), coll);
KStdAction::saveOptions(TQT_TQOBJECT(this), TQT_SLOT(saveOptions()), coll);
KStdAction::preferences(TQT_TQOBJECT(this), TQT_SLOT(slotShowConfig()), coll);
- mOptionsToggleLog = new KToggleAction (i18n("Show &Log"), "toggle_log", 0,
+ mOptionsToggleLog = new TDEToggleAction (i18n("Show &Log"), "toggle_log", 0,
TQT_TQOBJECT(this), TQT_SLOT (toggleLog()),
coll, "ksysv_toggle_log");
mOptionsToggleLog->setCheckedState(i18n("Hide &Log"));
// setup Tools menu
- mToolsStartService = new KToggleAction (i18n("&Start Service..."), "ksysv_start", 0,
+ mToolsStartService = new TDEToggleAction (i18n("&Start Service..."), "ksysv_start", 0,
TQT_TQOBJECT(mStartDlg), TQT_SLOT (toggle()),
coll, "ksysv_start_service");
- mToolsStopService = new KToggleAction (i18n("&Stop Service..."), "ksysv_stop", 0,
+ mToolsStopService = new TDEToggleAction (i18n("&Stop Service..."), "ksysv_stop", 0,
TQT_TQOBJECT(mStopDlg), TQT_SLOT (toggle()),
coll, "ksysv_stop_service");
- mToolsRestartService = new KToggleAction (i18n("&Restart Service..."), 0,
+ mToolsRestartService = new TDEToggleAction (i18n("&Restart Service..."), 0,
TQT_TQOBJECT(mRestartDlg), TQT_SLOT (toggle()),
coll, "ksysv_restart_service");
- mToolsEditService = new KToggleAction (i18n("&Edit Service..."), 0,
+ mToolsEditService = new TDEToggleAction (i18n("&Edit Service..."), 0,
TQT_TQOBJECT(mEditDlg), TQT_SLOT (toggle()),
coll, "ksysv_edit_service");
@@ -851,7 +851,7 @@ void KSVTopLevel::closeEvent (TQCloseEvent* e)
return;
}
- KMainWindow::closeEvent (e);
+ TDEMainWindow::closeEvent (e);
}
void KSVTopLevel::dispatchEdit ()
@@ -957,10 +957,10 @@ void KSVTopLevel::setCaption (bool changed)
setPlainCaption (kapp->makeStdCaption(KNetwork::KResolver::localHostName(), true, changed));
}
-KActionCollection* KSVTopLevel::filteredActions ()
+TDEActionCollection* KSVTopLevel::filteredActions ()
{
// remove unwanted (internal) actions
- static KActionCollection coll = *actionCollection();
+ static TDEActionCollection coll = *actionCollection();
static bool initialized = false;
if (!initialized)