From f78eb03afb8c9a380985d26286afc40b4c89b292 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 1 Feb 2013 15:15:35 -0600 Subject: Rename a number of classes to enhance compatibility with KDE4 --- languages/cpp/app_templates/kscons_kxt/app.cpp | 6 +++--- languages/cpp/app_templates/kscons_kxt/app.h | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'languages/cpp/app_templates/kscons_kxt') diff --git a/languages/cpp/app_templates/kscons_kxt/app.cpp b/languages/cpp/app_templates/kscons_kxt/app.cpp index 2895fb0a..6b37401d 100644 --- a/languages/cpp/app_templates/kscons_kxt/app.cpp +++ b/languages/cpp/app_templates/kscons_kxt/app.cpp @@ -26,14 +26,14 @@ #include %{APPNAME}::%{APPNAME}() - : KMainWindow( 0, "%{APPNAME}" ), + : TDEMainWindow( 0, "%{APPNAME}" ), m_view(new %{APPNAME}View(this)), m_printer(0) { // accept dnd setAcceptDrops(true); - // tell the KMainWindow that this is indeed the main widget + // tell the TDEMainWindow that this is indeed the main widget setCentralWidget(m_view); // then, setup our actions @@ -76,7 +76,7 @@ void %{APPNAME}::setupActions() KStdAction::preferences(this, TQT_SLOT(optionsPreferences()), actionCollection()); // custom menu and menu item - the slot is in the class %{APPNAME}View - KAction *custom = new KAction(i18n("Swi&tch Colors"), 0, + TDEAction *custom = new TDEAction(i18n("Swi&tch Colors"), 0, m_view, TQT_SLOT(switchColors()), actionCollection(), "switch_action"); diff --git a/languages/cpp/app_templates/kscons_kxt/app.h b/languages/cpp/app_templates/kscons_kxt/app.h index 6ac2acb8..fd0e7fa1 100644 --- a/languages/cpp/app_templates/kscons_kxt/app.h +++ b/languages/cpp/app_templates/kscons_kxt/app.h @@ -14,7 +14,7 @@ #include "%{APPNAMELC}view.h" class KPrinter; -class KToggleAction; +class TDEToggleAction; class KURL; /** @@ -25,7 +25,7 @@ class KURL; * @author %{AUTHOR} <%{EMAIL}> * @version %{VERSION} */ -class %{APPNAME} : public KMainWindow, public DCOPObject +class %{APPNAME} : public TDEMainWindow, public DCOPObject { K_DCOP Q_OBJECT @@ -66,8 +66,8 @@ private: %{APPNAME}View *m_view; KPrinter *m_printer; - KToggleAction *m_toolbarAction; - KToggleAction *m_statusbarAction; + TDEToggleAction *m_toolbarAction; + TDEToggleAction *m_statusbarAction; }; #endif // _%{APPNAMEUC}_H_ -- cgit v1.2.1