diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2014-05-19 18:26:28 +0300 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2014-05-20 07:35:31 +0200 |
commit | 66d561a628fa388eba647c4c1936083bbcdb8e44 (patch) | |
tree | 2fcf731352a00d27e9d1f86829455d92198ca7ec /src/libs/utils/stylehelper.h | |
parent | ce55d23e2ad34751630690f6e2a9ba5cbb644c20 (diff) | |
download | qt-creator-66d561a628fa388eba647c4c1936083bbcdb8e44.tar.gz |
Utils: Pass const values by reference
Change-Id: Iafd0f372f02f0f3759419a632e81325484861ba1
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Diffstat (limited to 'src/libs/utils/stylehelper.h')
-rw-r--r-- | src/libs/utils/stylehelper.h | 2 |
1 files changed, 1 insertions, 1 deletions
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); |