From 7716a5e605907a009e19f429cec4e6b5f346bd71 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 1 Feb 2013 15:14:36 -0600 Subject: Rename a number of classes to enhance compatibility with KDE4 --- kapptemplate/kapp/app.cpp | 6 +++--- kapptemplate/kapp/app.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'kapptemplate/kapp') diff --git a/kapptemplate/kapp/app.cpp b/kapptemplate/kapp/app.cpp index df8cc8ed..62f1a261 100644 --- a/kapptemplate/kapp/app.cpp +++ b/kapptemplate/kapp/app.cpp @@ -34,14 +34,14 @@ cat << EOF > $LOCATION_ROOT/${APP_NAME_LC}/${APP_NAME_LC}.cpp #include ${APP_NAME}::${APP_NAME}() - : KMainWindow( 0, "${APP_NAME}" ), + : TDEMainWindow( 0, "${APP_NAME}" ), m_view(new ${APP_NAME}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 @@ -102,7 +102,7 @@ void ${APP_NAME}::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/kapptemplate/kapp/app.h b/kapptemplate/kapp/app.h index 7c80c0f2..bc96132f 100644 --- a/kapptemplate/kapp/app.h +++ b/kapptemplate/kapp/app.h @@ -23,7 +23,7 @@ class KURL; * @author $AUTHOR <$EMAIL> * @version $APP_VERSION */ -class ${APP_NAME} : public KMainWindow +class ${APP_NAME} : public TDEMainWindow { Q_OBJECT -- cgit v1.2.1