From 560378aaca1784ba19806a0414a32b20c744de39 Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 3 Jan 2011 04:12:51 +0000 Subject: Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1 NOTE: This will not compile with Qt4 (yet), however it does compile with Qt3 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1211081 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- KDE3PORTING.html | 60 ++++++++++++++++++++++++++++---------------------------- 1 file changed, 30 insertions(+), 30 deletions(-) (limited to 'KDE3PORTING.html') diff --git a/KDE3PORTING.html b/KDE3PORTING.html index e249020f6..dd341ab3d 100644 --- a/KDE3PORTING.html +++ b/KDE3PORTING.html @@ -6,7 +6,7 @@

Porting Applications to KDE 3.0

-This document contains the changes you have to apply to programs written for +This document tqcontains the changes you have to apply to programs written for KDE 2.x when you want to port them to KDE 3.0.

As a start you should have a look at doc/porting.doc in the Qt package, @@ -82,7 +82,7 @@ instead, everything else is source compatible.

  • kdualcolorbtn.h is now kdualcolorbutton.h
  • -This is to help finding out header files from class names and the other +This is to help tqfinding out header files from class names and the other way round. Compatibility headers have been created. You can use them as long as you don't compile with KDE_NO_COMPAT. @@ -90,13 +90,13 @@ long as you don't compile with KDE_NO_COMPAT. The file with the DCOP connection information has been renamed. The new name is $HOME/.DCOPserver__. The screen part has been stripped from and the ':' character that separates host and -display-number has been replaced with a '_'. If you access DCOP via +display-number has been tqreplaced with a '_'. If you access DCOP via DCOPClient you do not need to change anything.

    It is no longer possible to make calls to an application registered as "-" with "" only. The full name can be obtained by using -either KApplication::startServiceBy...() or DCOPClient::findObject() or -their command line equivalents "dcopstart" and "dcopfind". +either KApplication::startServiceBy...() or DCOPClient::tqfindObject() or +their command line equivalents "dcopstart" and "dcoptqfind".

    KLibFactory

    KLibFactory's create method is no more virtual and the createObject method @@ -131,7 +131,7 @@ The old name will still work unless KDE_NO_COMPAT is defined.

    KMD5

    HASHHEX and HASH has been removed to make this class namespace clean. -They have been replaced by TQCString and KMD5::Digest.
    +They have been tqreplaced by TQCString and KMD5::Digest.
    The API has been cleaned up, it is no longer necessary to call finalize(). Simply remove any calls to it. @@ -143,9 +143,9 @@ setEncoding(int) instead.
  • formatNumber(const TQString &) has been removed.
  • languages() has been removed. Use languageList() instead.
  • All references to monthName(), monthNamePossessive(), and weekDayName() -should be replaced with methods from KLocale::calendar(). +should be tqreplaced with methods from KLocale::calendar().
  • Hard coded date handling or date handling with TQDate should in most -cases be replaced by methods in KLocale::calendar(). +cases be tqreplaced by methods in KLocale::calendar().

    Accelerators Keys

    KAccel
    @@ -160,12 +160,12 @@ not be available. Key_Up, this, TQT_SLOT(scrollUp()) ); Note that a What's This parameter is now a part of the insert function. - You might replace the TQString::null parameter with + You might tqreplace the TQString::null parameter with
     i18n("Scroll the current document's contents up by one line.") 
    for example.
  • KAccel::changeMenuAccel() has been deprecated because it was never used in cvs. If you've used it in your application, the following - can replace it. Note, however, that this would be handled automatically + can tqreplace it. Note, however, that this would be handled automatically by using KAction instead.
     	- kaccel->changeMenuAccel( menu, id, "file_open" );
    @@ -195,7 +195,7 @@ The preferred means of defining a shortcut, however, is to use KAction.
     	
  • StdAccel::Insert and the corresponding insert() have been removed. (Nobody on the list knew what its function was supposed to be.) Calls to insert() and the equivalent - key(KStdAccel::Insert) can be replaced with the former default + key(KStdAccel::Insert) can be tqreplaced with the former default of Qt::CTRL+Qt::Key_Insert.
  • The following functions have been deprecated and will need to be changed if KDE_NO_COMPAT is defined: @@ -206,7 +206,7 @@ The preferred means of defining a shortcut, however, is to use KAction. + KShortcut::tqcontains( const KKey&/KKeySequence& ).
    bool isEqual(const TQKeyEvent* pEvent, int keyQt) The best method for replacing this varies. One possibility is to use KKey(const TQKeyEvent*) == KKey(int). Another is to use - KShortcut::contains( const KKey&/KKeySequence& ).
    int key(StdAccel)const KShortcut& shortcut(StdAccel)
    @@ -228,7 +228,7 @@ Use QPopupMenu/KPopupMenu or the XML-UI method for building menus.

    KAction

    • The following methods have been deprecated and will need to be - replaced if KDE_NO_COMPAT is defined. + tqreplaced if KDE_NO_COMPAT is defined. @@ -256,14 +256,14 @@ single image-file that has been prepared with the kimage_concat tool. See kdelibs/pics/hicolor/kde for an example of its use.

      KContainerLayout

      -This class has been removed, use Qt layouts instead. +This class has been removed, use Qt tqlayouts instead.

      KCommand

      This class has been made lighter: the name isn't stored into the command anymore, but must be provided by the inherited class, as the result of the virtual name() function. This saves storing a TQString into each command in memory. The former behavior is available in the class KNamedCommand, so for a quick port -simply replace KCommand with KNamedCommand. +simply tqreplace KCommand with KNamedCommand.

      KDialogBase

      The deprecated getMainWidget() method has been removed. Use mainWidget() instead. @@ -361,12 +361,12 @@ TQString&) is not a slot anymore.
    • KTarGz is now KTar (#define for source compatibility)
    • A base class KArchive has been written, to support other archive formats in the future
    • KTarEntry is now KArchiveEntry, KTarDirectory is now KArchiveDirectory, and KTarFile is now KArchiveFile.
    • -
    • The classes ProgressBase, StatusbarProgress and DefaultProgress have been moved to the KIO namespace.
    • +
    • The classes ProgressBase, tqStatusbarProgress and DefaultProgress have been moved to the KIO namespace.
    • The signal KDirLister::started(const TQString &url) has changed to KDirLister::started(const KURL &url).
    • KServiceTypeProfile::preferredService( const TQString & serviceType, bool needApp ) has been removed, use KServiceTypeProfile::preferredService( ..., "Application") if needApp was true, or KServiceTypeProfile::preferredService( ..., TQString::null) if needApp was false. -
    • The following functions in KProtocolManager have been replaced: +
    • The following functions in KProtocolManager have been tqreplaced:
      • ftpProxy(), use proxyFor("ftp") instead.
      • httpProxy(), use proxyFor("http") instead. @@ -498,11 +498,11 @@ The API has been cleaned up to be in line with the rest of kdelibs, in particula

        API-cleanups in KHTML

        There were a few relatively minor API-adjustements in KHTMLPart. In particular: -
        • enableJScript(bool) has been replaced by setJScriptEnabled(bool) -
        • enableJava(bool) has been replaced by setJavaEnabled(bool) -
        • enablePlugins(bool) has been replaced by setPluginsEnabled(bool) -
        • autoloadImages(bool) has been replaced by setAutoloadImages(bool) -
        • enableMetaRefresh(bool) has been replaced by setMetaRefreshEnabled(bool) +
          • enableJScript(bool) has been tqreplaced by setJScriptEnabled(bool) +
          • enableJava(bool) has been tqreplaced by setJavaEnabled(bool) +
          • enablePlugins(bool) has been tqreplaced by setPluginsEnabled(bool) +
          • autoloadImages(bool) has been tqreplaced by setAutoloadImages(bool) +
          • enableMetaRefresh(bool) has been tqreplaced by setMetaRefreshEnabled(bool)
          • setBaseURL and setBaseTarget have been removed. baseURL(), baseTarget() and completeURL() are remained for compatibility reasons, but they're deprecated now. use the variants in DOM::HTMLDocument() instead.
          • the second parameter of KHTMLPart::completeURL is removed. it didn't have @@ -515,8 +515,8 @@ any problems. Backward compatibility exists for the common methods, to disable this use a #define KDE_NO_COMPAT.

            In KHTMLView, the following changes were done:

              -
            • gotoNextLink has been replaced by gotoLink(true); -
            • gotoPrevLink has been replaced by gotoLink(false); +
            • gotoNextLink has been tqreplaced by gotoLink(true); +
            • gotoPrevLink has been tqreplaced by gotoLink(false);

            Return to the Table of Contents

            @@ -531,7 +531,7 @@ parts are rarely used outside of kfile.

            The changes are:

            KFileItem

            -The KFileViewItem class is completely replaced with KFileItem from kio. All its functionality has +The KFileViewItem class is completely tqreplaced with KFileItem from kio. All its functionality has been merged with its former base class KFileItem. Additionally, some of its methods have been modified:
    • OldNew
      int accel()const KShortcut& shortcut()
      @@ -647,13 +647,13 @@ For more details please consult the HOWTO file in the kcontrol directory.

      The API for Kicker panel applets and extensions has changed. Panels can now be left/top, center, or right/bottom aligned, and applets and extensions may receive -notification about a change in alignment. +notification about a change in tqalignment.

      KPanelApplet

      The virtual methods orientationChange() and popupDirectionChange() are deprecated. -Instead you should reimplement positionChange() and alignmentChange() to be -notified of changes in the position and alignment of the panel on which your applet +Instead you should reimplement positionChange() and tqalignmentChange() to be +notified of changes in the position and tqalignment of the panel on which your applet resides. In addition, the popupDirection() method and the Direction enum are deprecated. Instead you should use the position() method and Position enum. Applets that use the deprecated methods will still work with KDE 3, but may not compile or work with @@ -661,8 +661,8 @@ a future version.

      KPanelExtension

      -

      There is a new method alignmentChange() that your extension should reimplement if -it needs to know about changes in alignment. +

      There is a new method tqalignmentChange() that your extension should reimplement if +it needs to know about changes in tqalignment.

      Return to the Table of Contents

      -- cgit v1.2.1