┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2008-03-06 00:02:39 +0000
committerPeter Penz <[email protected]>2008-03-06 00:02:39 +0000
commit865a33c5db3047bc65be3389fdeaf59015464895 (patch)
tree9907f3638244a23edf618cff69b049cc37502b8b /src
parent32564f92be07ff3f18a2357aaf08040d8fdfb040 (diff)
ignore the width when getting an icon for applying the "hidden files" effect, otherwise a wrong horizontal alignment is done
svn path=/trunk/KDE/kdebase/apps/; revision=782786
Diffstat (limited to 'src')
-rw-r--r--src/iconmanager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/iconmanager.cpp b/src/iconmanager.cpp
index 4c5c802cd..bb057b7d6 100644
--- a/src/iconmanager.cpp
+++ b/src/iconmanager.cpp
@@ -249,7 +249,8 @@ void IconManager::applyHiddenItemEffect(const KFileItem& hiddenItem)
const QVariant value = m_dolphinModel->data(index, Qt::DecorationRole);
if (value.type() == QVariant::Icon) {
const QIcon icon(qvariant_cast<QIcon>(value));
- QPixmap pixmap = icon.pixmap(m_view->iconSize());
+ const QSize maxSize = m_view->iconSize();
+ QPixmap pixmap = icon.pixmap(maxSize.height(), maxSize.height()); // ignore the width
KIconEffect::semiTransparent(pixmap);
m_dolphinModel->setData(index, QIcon(pixmap), Qt::DecorationRole);
}