summaryrefslogtreecommitdiffstats
path: root/kmenuedit/kmenuedit.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2013-02-01 15:11:21 -0600
committerTimothy Pearson <[email protected]>2013-02-01 15:11:21 -0600
commitf537c21b68e08f649b1b297bce8f3904603137e0 (patch)
treefb33065387509dea898c90022ddec9c3f8ede86d /kmenuedit/kmenuedit.cpp
parentdc5f267664506a312203c26bfe9001a448b0bb0f (diff)
downloadtdebase-f537c21b68e08f649b1b297bce8f3904603137e0.tar.gz
tdebase-f537c21b68e08f649b1b297bce8f3904603137e0.zip
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'kmenuedit/kmenuedit.cpp')
-rw-r--r--kmenuedit/kmenuedit.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/kmenuedit/kmenuedit.cpp b/kmenuedit/kmenuedit.cpp
index 48af13124..80f5eabf0 100644
--- a/kmenuedit/kmenuedit.cpp
+++ b/kmenuedit/kmenuedit.cpp
@@ -38,7 +38,7 @@
#include "kmenuedit.moc"
KMenuEdit::KMenuEdit (bool controlCenter, TQWidget *, const char *name)
- : KMainWindow (0, name), m_tree(0), m_basicTab(0), m_splitter(0), m_controlCenter(controlCenter)
+ : TDEMainWindow (0, name), m_tree(0), m_basicTab(0), m_splitter(0), m_controlCenter(controlCenter)
{
#if 0
m_showHidden = config->readBoolEntry("ShowHidden");
@@ -62,12 +62,12 @@ KMenuEdit::~KMenuEdit()
void KMenuEdit::setupActions()
{
- (void)new KAction(i18n("&New Submenu..."), "menu_new", 0, actionCollection(), "newsubmenu");
- (void)new KAction(i18n("New &Item..."), "filenew", KStdAccel::openNew(), actionCollection(), "newitem");
+ (void)new TDEAction(i18n("&New Submenu..."), "menu_new", 0, actionCollection(), "newsubmenu");
+ (void)new TDEAction(i18n("New &Item..."), "filenew", TDEStdAccel::openNew(), actionCollection(), "newitem");
if (!m_controlCenter)
- (void)new KAction(i18n("New S&eparator"), "menu_new_sep", 0, actionCollection(), "newsep");
+ (void)new TDEAction(i18n("New S&eparator"), "menu_new_sep", 0, actionCollection(), "newsep");
- (void)new KAction(i18n("Save && Quit"), "filesave_and_close", 0, TQT_TQOBJECT(this), TQT_SLOT( slotSave_and_close()), actionCollection(), "file_save_and_quit");
+ (void)new TDEAction(i18n("Save && Quit"), "filesave_and_close", 0, TQT_TQOBJECT(this), TQT_SLOT( slotSave_and_close()), actionCollection(), "file_save_and_quit");
m_actionDelete = 0;
@@ -97,8 +97,8 @@ void KMenuEdit::setupView()
connect(m_basicTab, TQT_SIGNAL(changed(MenuEntryInfo *)),
m_tree, TQT_SLOT(currentChanged(MenuEntryInfo *)));
- connect(m_basicTab, TQT_SIGNAL(findServiceShortcut(const KShortcut&, KService::Ptr &)),
- m_tree, TQT_SLOT(findServiceShortcut(const KShortcut&, KService::Ptr &)));
+ connect(m_basicTab, TQT_SIGNAL(findServiceShortcut(const TDEShortcut&, KService::Ptr &)),
+ m_tree, TQT_SLOT(findServiceShortcut(const TDEShortcut&, KService::Ptr &)));
// restore splitter sizes
TDEConfig* config = TDEGlobal::config();
@@ -126,14 +126,14 @@ void KMenuEdit::slotChangeView()
delete m_actionDelete;
- m_actionDelete = new KAction(i18n("&Delete"), "editdelete", Key_Delete, actionCollection(), "delete");
+ m_actionDelete = new TDEAction(i18n("&Delete"), "editdelete", Key_Delete, actionCollection(), "delete");
if (!m_splitter)
setupView();
if (m_controlCenter)
- setupGUI(KMainWindow::ToolBar|Keys|Save|Create, "kcontroleditui.rc");
+ setupGUI(TDEMainWindow::ToolBar|Keys|Save|Create, "kcontroleditui.rc");
else
- setupGUI(KMainWindow::ToolBar|Keys|Save|Create, "kmenueditui.rc");
+ setupGUI(TDEMainWindow::ToolBar|Keys|Save|Create, "kmenueditui.rc");
m_tree->setViewMode(m_showHidden);
}