#include "pixmapviewer.h"
InformationPanelContent::InformationPanelContent(QWidget* parent) :
- Panel(parent),
+ QWidget(parent),
m_item(),
m_pendingPreview(false),
m_outdatedPreviewTimer(0),
m_preview->setMinimumHeight(KIconLoader::SizeEnormous);
m_phononWidget = new PhononWidget(parent);
+ m_phononWidget->hide();
m_phononWidget->setMinimumWidth(minPreviewWidth);
connect(m_phononWidget, SIGNAL(playingStarted()),
this, SLOT(slotPlayingStarted()));
break;
}
- return Panel::eventFilter(obj, event);
+ return QWidget::eventFilter(obj, event);
}
void InformationPanelContent::configureSettings()
void InformationPanelContent::markOutdatedPreview()
{
- KIconEffect iconEffect;
- QPixmap disabledPixmap = iconEffect.apply(m_preview->pixmap(),
- KIconLoader::Desktop,
- KIconLoader::DisabledState);
+ KIconEffect *iconEffect = KIconLoader::global()->iconEffect();
+ QPixmap disabledPixmap = iconEffect->apply(m_preview->pixmap(),
+ KIconLoader::Desktop,
+ KIconLoader::DisabledState);
m_preview->setPixmap(disabledPixmap);
}