Rename KIcon to enhance compatibility with KDE4

pull/4/head
Timothy Pearson 12 years ago
parent 3a9eb9cb66
commit 67261a8223

@ -58,9 +58,9 @@ void HitWidget::setIcon(const TQString name)
{
m_icon = name;
if (m_collapsed)
icon->setPixmap(TDEGlobal::iconLoader()->loadIcon(m_icon, KIcon::NoGroup, KIcon::SizeSmall));
icon->setPixmap(TDEGlobal::iconLoader()->loadIcon(m_icon, TDEIcon::NoGroup, TDEIcon::SizeSmall));
else
icon->setPixmap(TDEGlobal::iconLoader()->loadIcon(m_icon, KIcon::NoGroup, KIcon::SizeLarge));
icon->setPixmap(TDEGlobal::iconLoader()->loadIcon(m_icon, TDEIcon::NoGroup, TDEIcon::SizeLarge));
}
void HitWidget::toggleCollapsed()
@ -93,7 +93,7 @@ void HitWidget::setCollapsed(bool collapsed)
return;
if (collapsed) {
icon->setPixmap(TDEGlobal::iconLoader()->loadIcon(m_icon, KIcon::NoGroup, KIcon::SizeSmall));
icon->setPixmap(TDEGlobal::iconLoader()->loadIcon(m_icon, TDEIcon::NoGroup, TDEIcon::SizeSmall));
toolButton1->setIconSet(SmallIconSet("kerry_info"));
toolButton1->setTextLabel(i18n("Expand"));
description->setHidden(true);
@ -104,7 +104,7 @@ void HitWidget::setCollapsed(bool collapsed)
m_collapsed = collapsed;
}
else {
icon->setPixmap(TDEGlobal::iconLoader()->loadIcon(m_icon, KIcon::NoGroup, KIcon::SizeLarge));
icon->setPixmap(TDEGlobal::iconLoader()->loadIcon(m_icon, TDEIcon::NoGroup, TDEIcon::SizeLarge));
toolButton1->setIconSet(SmallIconSet("kerry_arrow"));
toolButton1->setTextLabel(i18n("Collapse"));
description->setHidden(false);

@ -1520,9 +1520,9 @@ bool SearchDlg::mimeTypeMatch( const TQString& mimeType, const TQStringList& mim
void SearchDlg::startPreview( const KFileItemList& items )
{
stopPreview(); // just in case
int iconSize = TDEGlobal::iconLoader()->currentSize( KIcon::Desktop );
int iconSize = TDEGlobal::iconLoader()->currentSize( TDEIcon::Desktop );
pPreviewJob = TDEIO::filePreview( items, KIcon::SizeHuge, KIcon::SizeHuge, iconSize,
pPreviewJob = TDEIO::filePreview( items, TDEIcon::SizeHuge, TDEIcon::SizeHuge, iconSize,
true /*m_pSettings->textPreviewIconTransparency()*/, true /* scale */,
true /* save */, 0); //&(d->previewSettings) );
connect( pPreviewJob, TQT_SIGNAL( gotPreview( const KFileItem *, const TQPixmap & ) ),

Loading…
Cancel
Save