From deac2ca49faed824fe83066080714eb6d653615b Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 1 Feb 2013 15:13:01 -0600 Subject: Rename a number of classes to enhance compatibility with KDE4 --- KDE2PORTING.html | 50 +++++++++++++++++++++++++------------------------- 1 file changed, 25 insertions(+), 25 deletions(-) (limited to 'KDE2PORTING.html') diff --git a/KDE2PORTING.html b/KDE2PORTING.html index e77898f37..63692b613 100644 --- a/KDE2PORTING.html +++ b/KDE2PORTING.html @@ -26,7 +26,7 @@ or this page online.

  • KIconLoader
  • KTMainWindow
  • KHelpMenu
  • -
  • KToolBar
  • +
  • TDEToolBar
  • Starting other programs
  • tdehtmlw
  • KIntegerLine, KIntLineEdit
  • @@ -45,8 +45,8 @@ or this page online.

  • KQuickHelp
  • KPixmap::gradientFill
  • KTabListBox
  • -
  • KToolBarButton & KRadioGroup
  • -
  • KAccel
  • +
  • TDEToolBarButton & TDERadioGroup
  • +
  • TDEAccel
  • kstring.h / KString
  • ktopwidget.h / KTopWidget
  • kbutton.h / KButton
  • @@ -142,8 +142,8 @@ or this page online.

    The methods tempSaveName() and checkRecoverFile() return QString now. The returned values must _not_ be free()d.

    - helpMenu() has been moved to KMainWindow. aboutKDE(), aboutApp() and - appHelpActivated() have all been removed See section for KMainWindow + helpMenu() has been moved to TDEMainWindow. aboutKDE(), aboutApp() and + appHelpActivated() have all been removed See section for TDEMainWindow for more info.

    The TDEApplication constructor has changed. Command line arguments and @@ -248,9 +248,9 @@ in stripping off the .xpm part

    KTMainWindow

    -KTMainWindow has been replaced with KMainWindow.

    +KTMainWindow has been replaced with TDEMainWindow.

    -The KMainWindow constructor needs a parent widget as first argument. +The TDEMainWindow constructor needs a parent widget as first argument. You can use 0 for this.

    setView() has been replaced with setCentralWidget().

    view() has been replaced with centralWidget().

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

    KHelpMenu

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

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

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

    -If you used in the toplevel window (that is derived from KMainWindow) +If you used in the toplevel window (that is derived from TDEMainWindow) "kapp->helpMenu( bool, TQString )" to get the help menu you must now change this to "helpMenu( TQString )". The TQString defaults to TQString::null so it is sufficient to write helpMenu().

    @@ -284,13 +284,13 @@ to TQString::null so it is sufficient to write helpMenu().

    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. +TDEMainWindow then allocate an instance of the new class KHelpMenu. See KDE 2.0 API reference or khelpmenu.h (tdeui) for additional info.

    Espen Sand <espen@kde.org>

    Return to the Table of Contents

    -

    KToolBar

    +

    TDEToolBar

    enable(...) is depreciated, use show()/hide() instead.

    enableFloating(...) has been removed, use enableMoving() instead.

    @@ -588,7 +588,7 @@ this:

    TQSplitter *split = new TQSplitter( parent );
    TQListBox *lb = new TQListBox( split );
    - KListView *lv = new KListView( split );
    + TDEListView *lv = new TDEListView( split );
    TQMultiLineEdit *ed = new TQMultiLineEdit( split );
    @@ -600,17 +600,17 @@ possible if you call setOpaqueResize(true).

    KTreeList, KTreeListItem

    -Use KListView, TQListViewItem instead. API is almost the same, you only -need to add a Column (KListView::addColum) before KListView is useable.

    +Use TDEListView, TQListViewItem instead. API is almost the same, you only +need to add a Column (TDEListView::addColum) before TDEListView is useable.

    -KListView has no addChild(), insertItem() and removeItem() calls. Inserting -a root item is done by constructing a TQListViewItem with the KListView +TDEListView has no addChild(), insertItem() and removeItem() calls. Inserting +a root item is done by constructing a TQListViewItem with the TDEListView passed as the parent widget. adding a child item is done by constructing a TQListViewItem with the parent item as parameter. removeItem() should be replaced by delete <pointer to item>.

    The root items are not shown in a tree fashion by default. to get this, -use KListView::setDecorativeRoot(true).

    +use TDEListView::setDecorativeRoot(true).

    Expanding and collapsing can by done by using TQListViewItem::setOpen(bool).

    @@ -685,24 +685,24 @@ unbalancedGradient(), hash(), desaturate(), pattern(), fade(), blend() etc.

    KTabListBox

    -This widget has been replaced by the almighty KListView. Everything said +This widget has been replaced by the almighty TDEListView. Everything said about KTreeList could be repeated here. The good thing is, that you now can combine TreeView's and normal Tablists without problems.

    Return to the Table of Contents

    -

    KToolBarButton & KRadioGroup

    +

    TDEToolBarButton & TDERadioGroup

    -If you need to do anything with KToolBarButton you now need to include -<ktoolbarbutton.h> KRadioGroup has been renamed to KToolBarRadioGroup and +If you need to do anything with TDEToolBarButton you now need to include +<ktoolbarbutton.h> TDERadioGroup has been renamed to TDEToolBarRadioGroup and requires you to include <ktoolbarradiogroup.h>

    Return to the Table of Contents

    -

    KAccel

    +

    TDEAccel

    The functions keyToString() and stringToKey() which were previously -declared globally in kaccel.h are now static methods in KAccel.

    +declared globally in kaccel.h are now static methods in TDEAccel.

    Return to the Table of Contents

    @@ -716,7 +716,7 @@ The file has been removed completely, use TQString instead. (ktopwidget.h / KTopWidget -KMainWindow replaces this class completely. ktopwidget.h does not +TDEMainWindow replaces this class completely. ktopwidget.h does not exist in KDE 2. (mirko@kde.org)

    Return to the Table of Contents

    @@ -754,7 +754,7 @@ Please adjust your code accordingly.

    KDockWidget

    -KDockWidget inherits form KMainWindow instead of KTMainWindow now. +KDockWidget inherits form TDEMainWindow instead of KTMainWindow now. See KTMainWindow for more details.

    Return to the Table of Contents

    -- cgit v1.2.1