Rename KIcon to enhance compatibility with KDE4

remotes/gitea/gg-tdeadmin-kcron
Timothy Pearson 12 years ago
parent 09470cb1bf
commit 6c0599e58e

@ -24,26 +24,26 @@
ImageCache::ImageCache() ImageCache::ImageCache()
{ {
KIconLoader *l = TDEGlobal::iconLoader(); TDEIconLoader *l = TDEGlobal::iconLoader();
/* 2002-01-24 FP */ /* 2002-01-24 FP */
// _archive = new TQPixmap(l->iconPath("package", KIcon::Toolbar)); // _archive = new TQPixmap(l->iconPath("package", TDEIcon::Toolbar));
_archive = new TQPixmap(l->iconPath("tar", KIcon::Small)); _archive = new TQPixmap(l->iconPath("tar", TDEIcon::Small));
/* 2002-01-24 FP */ /* 2002-01-24 FP */
_backup = new TQPixmap(l->iconPath("kdat_backup", KIcon::Toolbar)); _backup = new TQPixmap(l->iconPath("kdat_backup", TDEIcon::Toolbar));
_file = new TQPixmap(l->iconPath("mime_empty", KIcon::Small)); _file = new TQPixmap(l->iconPath("mime_empty", TDEIcon::Small));
_folderClosed = new TQPixmap(l->iconPath("folder_blue", KIcon::Small)); _folderClosed = new TQPixmap(l->iconPath("folder_blue", TDEIcon::Small));
_folderOpen = new TQPixmap(l->iconPath("folder_blue_open", KIcon::Small)); _folderOpen = new TQPixmap(l->iconPath("folder_blue_open", TDEIcon::Small));
_restore = new TQPixmap(l->iconPath("kdat_restore", KIcon::Toolbar)); _restore = new TQPixmap(l->iconPath("kdat_restore", TDEIcon::Toolbar));
_selectAll = new TQPixmap(l->iconPath("kdat_select_all", KIcon::Toolbar)); _selectAll = new TQPixmap(l->iconPath("kdat_select_all", TDEIcon::Toolbar));
_selectNone = new TQPixmap(l->iconPath("kdat_select_none", KIcon::Toolbar)); _selectNone = new TQPixmap(l->iconPath("kdat_select_none", TDEIcon::Toolbar));
_selectSome = new TQPixmap(l->iconPath("kdat_select_some", KIcon::Toolbar)); _selectSome = new TQPixmap(l->iconPath("kdat_select_some", TDEIcon::Toolbar));
// 2002-01-28 FP // 2002-01-28 FP
// _tape = new TQPixmap(l->iconPath("kdat_archive", KIcon::Toolbar)); // _tape = new TQPixmap(l->iconPath("kdat_archive", TDEIcon::Toolbar));
_tape = new TQPixmap(l->iconPath("kdat", KIcon::Small)); _tape = new TQPixmap(l->iconPath("kdat", TDEIcon::Small));
// 2002-01-28 FP // 2002-01-28 FP
_tapeMounted = new TQPixmap(l->iconPath("kdat_mounted", KIcon::Toolbar)); _tapeMounted = new TQPixmap(l->iconPath("kdat_mounted", TDEIcon::Toolbar));
_tapeUnmounted = new TQPixmap(l->iconPath("kdat_unmounted", KIcon::Toolbar)); _tapeUnmounted = new TQPixmap(l->iconPath("kdat_unmounted", TDEIcon::Toolbar));
_verify = new TQPixmap(l->iconPath("kdat_verify", KIcon::Toolbar)); _verify = new TQPixmap(l->iconPath("kdat_verify", TDEIcon::Toolbar));
} }
ImageCache::~ImageCache() ImageCache::~ImageCache()

@ -40,7 +40,7 @@ KSVTrash::KSVTrash (TQWidget* parent, const char* name)
setFrameStyle (TQFrame::StyledPanel | TQFrame::Sunken); setFrameStyle (TQFrame::StyledPanel | TQFrame::Sunken);
mLabel->setPixmap(mKIL->loadIcon("trashcan_empty", KIcon::Desktop)); mLabel->setPixmap(mKIL->loadIcon("trashcan_empty", TDEIcon::Desktop));
mPixmapWidth = mLabel->pixmap()->width(); mPixmapWidth = mLabel->pixmap()->width();
mLabel->setGeometry(5, 7, mPixmapWidth, mPixmapWidth); mLabel->setGeometry(5, 7, mPixmapWidth, mPixmapWidth);
@ -88,7 +88,7 @@ void KSVTrash::dragMoveEvent ( TQDragMoveEvent* e )
TQPainter p; TQPainter p;
p.begin(mLabel); p.begin(mLabel);
p.drawPixmap( 0, 0, mKIL->loadIcon("trashcan_full", KIcon::Desktop) ); p.drawPixmap( 0, 0, mKIL->loadIcon("trashcan_full", TDEIcon::Desktop) );
p.end(); p.end();
mOpen = true; mOpen = true;

@ -21,7 +21,7 @@
// forward declarations // forward declarations
class TQLabel; class TQLabel;
class KIconLoader; class TDEIconLoader;
class KSVItem; class KSVItem;
class KSVAction; class KSVAction;
@ -55,7 +55,7 @@ protected:
virtual bool eventFilter ( TQObject*, TQEvent* ); virtual bool eventFilter ( TQObject*, TQEvent* );
private: private:
KIconLoader* mKIL; TDEIconLoader* mKIL;
TQLabel* mLabel; TQLabel* mLabel;
bool mOpen; bool mOpen;
int mPixmapWidth; int mPixmapWidth;

Loading…
Cancel
Save