summaryrefslogtreecommitdiffstats
path: root/languages/cpp/app_templates/kapp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:15:35 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:15:35 -0600
commitf78eb03afb8c9a380985d26286afc40b4c89b292 (patch)
tree3c087e2f119e645c902958c3bc3c802abf078ad0 /languages/cpp/app_templates/kapp
parentda1941ccadffe5ae70ee111c53f0ec2b3d990869 (diff)
downloadtdevelop-f78eb03afb8c9a380985d26286afc40b4c89b292.tar.gz
tdevelop-f78eb03afb8c9a380985d26286afc40b4c89b292.zip
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'languages/cpp/app_templates/kapp')
-rw-r--r--languages/cpp/app_templates/kapp/app.cpp6
-rw-r--r--languages/cpp/app_templates/kapp/app.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/languages/cpp/app_templates/kapp/app.cpp b/languages/cpp/app_templates/kapp/app.cpp
index cefcc605..f4c4cba2 100644
--- a/languages/cpp/app_templates/kapp/app.cpp
+++ b/languages/cpp/app_templates/kapp/app.cpp
@@ -26,14 +26,14 @@
#include <kstdaction.h>
%{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
@@ -99,7 +99,7 @@ void %{APPNAME}::setupActions()
// this doesn't do anything useful. it's just here to illustrate
// how to insert a custom menu and menu item
- KAction *custom = new KAction(i18n("Cus&tom Menuitem"), 0,
+ TDEAction *custom = new TDEAction(i18n("Cus&tom Menuitem"), 0,
this, TQT_SLOT(optionsPreferences()),
actionCollection(), "custom_action");
}
diff --git a/languages/cpp/app_templates/kapp/app.h b/languages/cpp/app_templates/kapp/app.h
index 2085e6e6..007a5db0 100644
--- a/languages/cpp/app_templates/kapp/app.h
+++ b/languages/cpp/app_templates/kapp/app.h
@@ -23,7 +23,7 @@ class KURL;
* @author %{AUTHOR} <%{EMAIL}>
* @version %{VERSION}
*/
-class %{APPNAME} : public KMainWindow
+class %{APPNAME} : public TDEMainWindow
{
Q_OBJECT