From f2bfcad7ffdd09911f282afe2a2051b3708601c9 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 4 Feb 2013 14:16:51 -0600 Subject: Rename KIcon to enhance compatibility with KDE4 --- KDE3PORTING.html | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'KDE3PORTING.html') 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