diff --git a/KDE2PORTING.html b/KDE2PORTING.html index 47e00c03b..1c8f95e38 100644 --- a/KDE2PORTING.html +++ b/KDE2PORTING.html @@ -23,7 +23,7 @@ or this page online.

  • TDECmdLineArgs
  • TDELocale
  • TDEGlobal: access to KDE global objects.
  • -
  • KIconLoader
  • +
  • TDEIconLoader
  • KTMainWindow
  • KHelpMenu
  • TDEToolBar
  • @@ -207,7 +207,7 @@ must have created a TDEApplication object before the methods can be used.

    #include <kglobal.h> #include <tdeconfig.h> // Needed to use TDEConfig #include <klocale.h> // Needed to use TDELocale - #include <kiconloader.h> // Needed to use KIconLoader + #include <kiconloader.h> // Needed to use TDEIconLoader @@ -219,7 +219,7 @@ must have created a TDEApplication object before the methods can be used.

    TQString mystr = i18n( "This is a string" ); - KIconLoader *loader = TDEGlobal::iconLoader(); + TDEIconLoader *loader = TDEGlobal::iconLoader(); @@ -227,9 +227,9 @@ must have created a TDEApplication object before the methods can be used.

    Return to the Table of Contents

    -

    KIconLoader

    +

    TDEIconLoader

    -KIconLoader in 1.1 used to mix icons for applications and for toolbars. +TDEIconLoader in 1.1 used to mix icons for applications and for toolbars. This has changed, so you may notice that your application doesn't find the right icons. loadIcon (used by BarIcon) returns only toolbar icons.

    If you need icons for applications, use loadApplicationIcon.

    diff --git a/KDE3PORTING.html b/KDE3PORTING.html index 912f81b60..edd317c11 100644 --- a/KDE3PORTING.html +++ b/KDE3PORTING.html @@ -211,10 +211,10 @@ The preferred means of defining a shortcut, however, is to use TDEAction. -

    KIconLoader, KIconTheme

    -Methods now use KIcon::Group and KIcon::Context instead of int as types for group and context arguments. +

    TDEIconLoader, TDEIconTheme

    +Methods now use TDEIcon::Group and TDEIcon::Context instead of int as types for group and context arguments. The change should affect only code using hardcoded numeric values instead of using the proper enum constants. -This applies to classes KIconLoader, KIconTheme and (in kio and tdefile) KMimeType, KService, KIconDialog, KIconButton, +This applies to classes TDEIconLoader, TDEIconTheme and (in kio and tdefile) KMimeType, KService, TDEIconDialog, TDEIconButton, KURLBar and KURLBarItem.

    Return to the Table of Contents

    @@ -323,13 +323,13 @@ present in Qt3/KDE3. KThemeBase is no longer in tdeui, but in kstyles/kthemestyl as its use is basically limited to KThemeStyle.

    TDEAction, TDEToolBar, TDEToolBarButton and icons

    -The preferred way for specifying icons is passing the icon names (and the icons will be loaded by KIconLoader), +The preferred way for specifying icons is passing the icon names (and the icons will be loaded by TDEIconLoader), instead of using TQIconSet or TQPixmap. This results in always using the correct icon size and allows delayed on-demand icon loading.

    Method TDEAction::hasIconSet() has been renamed to TDEAction::hasIcon(), the old name will still work unless KDE_NO_COMPAT is defined. TDEAction::iconSet() now has an argument specifying icon group, the old TDEAction::iconSet() is still available unless KDE_NO_COMPAT -is defined and returns KIcon::Small iconset, just like in KDE2. +is defined and returns TDEIcon::Small iconset, just like in KDE2.

    TDEToolBarButton methods setPixmap(), setDefaultPixmap(), setDisabledPixmap(), setDefaultIcon() and setDisabledIcon() are deprecated. Use TDEToolBarButton::setIcon() (preferred) or TDEToolBarButton::setIconSet() instead. @@ -420,7 +420,7 @@ The merging of libtdeio, libtdesycoca, libtdefile and libkssl into a single libt allowed to fix this dependency problem: KRun can now use the OpenWith dialog directly.

    KMimeType, KService

    -Methods now use KIcon::Group and KIcon::Context instead of int as types for group and context arguments. +Methods now use TDEIcon::Group and TDEIcon::Context instead of int as types for group and context arguments. The change should affect only code using hardcoded numeric values instead of using the proper enum constants.

    KFilterDev

    @@ -563,7 +563,7 @@ flexibility and efficiency.

    Sorting has changed radically. Previously, KFileView had protected methods QuickSort, compareItems() and mergeLists() to sort directory entries for displaying in the views. Now, -KFileView does not do any sorting anymore. Instead, the view's (i.e. KIconView, TDEListView) +KFileView does not do any sorting anymore. Instead, the view's (i.e. TDEIconView, TDEListView) sorting is utilized by letting its view-items provide a TQString key() method. Therefore, KFileView offers the two methods