diff options
| author | Peter Penz <[email protected]> | 2012-04-06 23:06:05 +0200 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2012-04-06 23:12:07 +0200 |
| commit | dc555b8e56162bb908ad398341c5d7828d443bf3 (patch) | |
| tree | bd2f5d817a466cc3ae56d54405ae92344a6a2cd5 /src/kitemviews/kpixmapmodifier.cpp | |
| parent | 5d27eb81cd038d1cf66f21efa24cb8c2ebd52557 (diff) | |
Allow to specify whether an upscaling of images should be done
The option is currently hidden as up to now only Nuno requested it,
but it seems to be urgent: "my icon making productivity has drop subtantialy"
((c) 2012 Nuno)
As I don't want to get blamed for an outdated Oxygen-icon-set I have
no other choice ;-)
CCMAIL: [email protected]
Diffstat (limited to 'src/kitemviews/kpixmapmodifier.cpp')
| -rw-r--r-- | src/kitemviews/kpixmapmodifier.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/kitemviews/kpixmapmodifier.cpp b/src/kitemviews/kpixmapmodifier.cpp index 91f22da3c..475f36a64 100644 --- a/src/kitemviews/kpixmapmodifier.cpp +++ b/src/kitemviews/kpixmapmodifier.cpp @@ -392,3 +392,9 @@ void KPixmapModifier::applyFrame(QPixmap& icon, const QSize& scaledSize) icon = framedIcon; } +QSize KPixmapModifier::sizeInsideFrame(const QSize& frameSize) +{ + return QSize(frameSize.width() - TileSet::LeftMargin - TileSet::RightMargin, + frameSize.height() - TileSet::TopMargin - TileSet::BottomMargin); +} + |
