diff options
| author | Peter Penz <[email protected]> | 2008-03-05 23:50:22 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2008-03-05 23:50:22 +0000 |
| commit | 32564f92be07ff3f18a2357aaf08040d8fdfb040 (patch) | |
| tree | 4f23310a997b331f9d25172d26f03acd73a2c150 /src/iconmanager.h | |
| parent | 7244399154e1e638e9f9a76fbc799e210942ff5d (diff) | |
provide an unintrusive frame for previews of images
svn path=/trunk/KDE/kdebase/apps/; revision=782785
Diffstat (limited to 'src/iconmanager.h')
| -rw-r--r-- | src/iconmanager.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/iconmanager.h b/src/iconmanager.h index d6cf5332b..c96759b13 100644 --- a/src/iconmanager.h +++ b/src/iconmanager.h @@ -85,6 +85,19 @@ private: /** Applies an item effect to the hidden item \a hiddenItem. */ void applyHiddenItemEffect(const KFileItem& hiddenItem); + /** + * Applies a frame around the icon. False is returned if + * no frame has been added because the icon is too small. + */ + bool applyImageFrame(QPixmap& icon); + + /** + * Resizes the icon to \a maxSize if the icon size does not + * fit into the maximum size. The aspect ratio of the icon + * is kept. + */ + void limitToSize(QPixmap& icon, const QSize& maxSize); + private: /** * Remembers the original pixmap for an item before |
