summaryrefslogtreecommitdiffstats
path: root/kmail/kmfoldertree.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2013-02-04 14:18:14 -0600
committerTimothy Pearson <[email protected]>2013-02-04 14:18:14 -0600
commitb97ee238f88e9578da228388210cd8cab5360778 (patch)
tree8bf3ab88929af70826ebe3b84434c3403dc71c7d /kmail/kmfoldertree.cpp
parent656055dae6f13ee65d66fabf9041b288d81710af (diff)
downloadtdepim-b97ee238f88e9578da228388210cd8cab5360778.tar.gz
tdepim-b97ee238f88e9578da228388210cd8cab5360778.zip
Rename KIcon to enhance compatibility with KDE4
Diffstat (limited to 'kmail/kmfoldertree.cpp')
-rw-r--r--kmail/kmfoldertree.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/kmail/kmfoldertree.cpp b/kmail/kmfoldertree.cpp
index 067568a1c..ae340e7fe 100644
--- a/kmail/kmfoldertree.cpp
+++ b/kmail/kmfoldertree.cpp
@@ -149,12 +149,12 @@ TQPixmap KMFolderTreeItem::normalIcon(int size) const
if (mFolder && mFolder->useCustomIcons() ) {
icon = mFolder->normalIconPath();
}
- KIconLoader * il = TDEGlobal::instance()->iconLoader();
- TQPixmap pm = il->loadIcon( icon, KIcon::Small, size,
- KIcon::DefaultState, 0, true );
+ TDEIconLoader * il = TDEGlobal::instance()->iconLoader();
+ TQPixmap pm = il->loadIcon( icon, TDEIcon::Small, size,
+ TDEIcon::DefaultState, 0, true );
if ( mFolder && pm.isNull() ) {
- pm = il->loadIcon( mFolder->normalIconPath(), KIcon::Small, size,
- KIcon::DefaultState, 0, true );
+ pm = il->loadIcon( mFolder->normalIconPath(), TDEIcon::Small, size,
+ TDEIcon::DefaultState, 0, true );
}
return pm;
@@ -170,25 +170,25 @@ TQPixmap KMFolderTreeItem::unreadIcon(int size) const
kmkernel->folderIsDraftOrOutbox( mFolder ) )
pm = normalIcon( size );
- KIconLoader * il = TDEGlobal::instance()->iconLoader();
+ TDEIconLoader * il = TDEGlobal::instance()->iconLoader();
if ( mFolder && mFolder->useCustomIcons() ) {
- pm = il->loadIcon( mFolder->unreadIconPath(), KIcon::Small, size,
- KIcon::DefaultState, 0, true );
+ pm = il->loadIcon( mFolder->unreadIconPath(), TDEIcon::Small, size,
+ TDEIcon::DefaultState, 0, true );
if ( pm.isNull() )
- pm = il->loadIcon( mFolder->normalIconPath(), KIcon::Small, size,
- KIcon::DefaultState, 0, true );
+ pm = il->loadIcon( mFolder->normalIconPath(), TDEIcon::Small, size,
+ TDEIcon::DefaultState, 0, true );
}
if ( pm.isNull() ) {
if ( mFolder && mFolder->noContent() ) {
- pm = il->loadIcon( "folder_grey_open", KIcon::Small, size,
- KIcon::DefaultState, 0, true );
+ pm = il->loadIcon( "folder_grey_open", TDEIcon::Small, size,
+ TDEIcon::DefaultState, 0, true );
} else {
if( kmkernel->iCalIface().isResourceFolder( mFolder ) )
pm = il->loadIcon( kmkernel->iCalIface().folderPixmap( type() ),
- KIcon::Small, size, KIcon::DefaultState, 0, true );
+ TDEIcon::Small, size, TDEIcon::DefaultState, 0, true );
if ( pm.isNull() )
- pm = il->loadIcon( "folder_open", KIcon::Small, size,
- KIcon::DefaultState, 0, true );
+ pm = il->loadIcon( "folder_open", TDEIcon::Small, size,
+ TDEIcon::DefaultState, 0, true );
}
}