|
|
|
@ -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);
|
|
|
|
|