#include <KLocalizedString>
#include <KSeparator>
#include <KStringHandler>
+#include <QPainterPath>
#include <QIcon>
#include <QTextDocument>
void InformationPanelContent::showItem(const KFileItem& item)
{
- if (item != m_item) {
+ // compares item entries, comparing items only compares urls
+ if (m_item.entry() != item.entry()) {
m_item = item;
-
m_preview->stopAnimatedImage();
refreshMetaData();
}
+
refreshPreview();
}
// in the case of a search-URL the URL is not readable for humans
// (at least not useful to show in the Information Panel)
m_preview->setPixmap(
- QIcon::fromTheme(QStringLiteral("nepomuk")).pixmap(KIconLoader::SizeEnormous, KIconLoader::SizeEnormous)
+ QIcon::fromTheme(QStringLiteral("baloo")).pixmap(KIconLoader::SizeEnormous, KIconLoader::SizeEnormous)
);
} else {