From 8e7816b2f9f62a2df094c5b2a7aa5abb6bc1226a Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 20 Jan 2013 00:21:02 -0600 Subject: Rename KApplication to TDEApplication to avoid conflicts with KDE4 --- KDE2PORTING.html | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'KDE2PORTING.html') diff --git a/KDE2PORTING.html b/KDE2PORTING.html index 2a9b9766f..a8580e3f5 100644 --- a/KDE2PORTING.html +++ b/KDE2PORTING.html @@ -19,7 +19,7 @@ or this page online.

  • Getting Started
  • Global changes
  • automoc/am_edit, Makefile.am tags
  • -
  • KApplication
  • +
  • TDEApplication
  • TDECmdLineArgs
  • KLocale
  • KGlobal: access to KDE global objects.
  • @@ -107,7 +107,7 @@ or this page online.

    Return to the Table of Contents

    -

    KApplication

    +

    TDEApplication

    doesn't hold any longer a KLocale instance. With this getLocale() and isLocaleInstantiated are now replaced by KGlobal::locale()

    @@ -128,7 +128,7 @@ or this page online.

    KGlobal::dirs()->findResource.

    Use locateLocal to get the path of a writable file. For instance, - KApplication::localconfigdir()+filename is now locateLocal( "config", filename ), + TDEApplication::localconfigdir()+filename is now locateLocal( "config", filename ), but for most cases, simply using KGlobal::config() is enough, if you're happy with saving the application's configuration into appnamerc, or KSimpleConfig cfg("anothercfgfile") to create a config file with another name.

    @@ -146,8 +146,8 @@ or this page online.

    appHelpActivated() have all been removed See section for KMainWindow for more info.

    - The KApplication constructor has changed. Command line arguments and - program name should no longer be passed to KApplication but to + The TDEApplication constructor has changed. Command line arguments and + program name should no longer be passed to TDEApplication but to TDECmdLineArgs. TDECmdLineArgs performs command line parsing and a command line help. See below for more info.

    @@ -166,7 +166,7 @@ or this page online.

    TDECmdLineArgs itself will add the command line options supported by Qt - and KApplication.

    + and TDEApplication.

    You can also use the KAboutData class to specify name, description and version.

    @@ -183,7 +183,7 @@ or this page online.

    i18n is no longer a macro

    - KApplication::getApplication()->getLocale()->translate

    + TDEApplication::getApplication()->getLocale()->translate

    but a function on its own. klocale is obsolete and replace every call to klocale->translate with i18n.

    @@ -199,7 +199,7 @@ KGlobal allows centralized access to KDE global objects without including extraneous headers. object creation is deferred if possible.

    All methods are static and headers for returned types are not included. You -must have created a KApplication object before the methods can be used.

    +must have created a TDEApplication object before the methods can be used.

    @@ -271,7 +271,7 @@ mainViewGeometry() instead.

    KHelpMenu

    -helpMenu() has been moved to KMainWindow from KApplication (kapp).

    +helpMenu() has been moved to KMainWindow from TDEApplication (kapp).

    Both the "About KDE" and the "About <Application>" dialog boxes are now modeless. "About KDE" is a completely new widget.

    @@ -281,7 +281,7 @@ If you used in the toplevel window (that is derived from KMainWindow) you must now change this to "helpMenu( TQString )". The TQString defaults to TQString::null so it is sufficient to write helpMenu().

    -The old aboutKDE(), aboutApp() and appHelpActivated() of KApplication +The old aboutKDE(), aboutApp() and appHelpActivated() of TDEApplication have all been removed. If you need direct access to these or need access to a help menu in a class that is not derived from KMainWindow then allocate an instance of the new class KHelpMenu. @@ -792,7 +792,7 @@ Matthias Hoelzer-Kluepfel <hoelzer@kde.org