]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/kitemviews/private/kpixmapmodifier.h
Fix selection rect after porting from QFontMetrics::width()
[dolphin.git] / src / kitemviews / private / kpixmapmodifier.h
index e8ca11ac1bf03ca2f3cd5adbbb8014be8d84e8cf..3f7747b55eee9f8761ef78e3fb893479019d7999 100644 (file)
@@ -28,8 +28,26 @@ class QSize;
 class DOLPHIN_EXPORT KPixmapModifier
 {
 public:
+    /**
+     * Scale a pixmap to a given size.
+     * @arg scaledSize is assumed to be the scaled to the same device pixel ratio as the source pixmap
+     * @arg scaledSize is in device pixels
+     */
     static void scale(QPixmap& pixmap, const QSize& scaledSize);
+
+    /**
+     * Resize and paint a frame round an icon
+     * @arg scaledSize is in device-independent pixels
+     * The returned image will be scaled by the application devicePixelRatio
+     */
     static void applyFrame(QPixmap& icon, const QSize& scaledSize);
+
+    /**
+     * return and paint a frame round an icon
+     * @arg framesize is in device-independent pixels
+     * @return is in device-independent pixels
+     */
+
     static QSize sizeInsideFrame(const QSize& frameSize);
 };