From 66d561a628fa388eba647c4c1936083bbcdb8e44 Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Mon, 19 May 2014 18:26:28 +0300 Subject: Utils: Pass const values by reference Change-Id: Iafd0f372f02f0f3759419a632e81325484861ba1 Reviewed-by: Eike Ziller --- src/libs/utils/stylehelper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libs/utils/stylehelper.h') diff --git a/src/libs/utils/stylehelper.h b/src/libs/utils/stylehelper.h index 00a17a16c9..72ffb9b3c1 100644 --- a/src/libs/utils/stylehelper.h +++ b/src/libs/utils/stylehelper.h @@ -85,7 +85,7 @@ public: static void drawIconWithShadow(const QIcon &icon, const QRect &rect, QPainter *p, QIcon::Mode iconMode, int dipRadius = 3, const QColor &color = QColor(0, 0, 0, 130), const QPoint &dipOffset = QPoint(1, -2)); - static void drawCornerImage(const QImage &img, QPainter *painter, QRect rect, + static void drawCornerImage(const QImage &img, QPainter *painter, const QRect &rect, int left = 0, int top = 0, int right = 0, int bottom = 0); static void tintImage(QImage &img, const QColor &tintColor); -- cgit v1.2.1