[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/plasma/widgets
From: Marco Martin <notmart () gmail ! com>
Date: 2010-04-26 14:50:54
Message-ID: 20100426145054.6A8B2AC8A4 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1119097 by mart:
- when the background gets enabled, recalculate hints
- always add item margins to the hint
M +2 -1 iconwidget.cpp
--- trunk/KDE/kdelibs/plasma/widgets/iconwidget.cpp #1119096:1119097
@@ -512,6 +512,7 @@
}
update();
+ updateGeometry();
}
}
@@ -1498,7 +1499,7 @@
d->setActiveMargins();
if (d->text.isEmpty() && d->infoText.isEmpty()) {
//no text, just the icon size
- return QSizeF(iconWidth, iconWidth);
+ return d->addMargin(QSizeF(iconWidth, iconWidth), IconWidgetPrivate::ItemMargin);
}
QFontMetricsF fm(d->widgetFont());
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic