summaryrefslogtreecommitdiff
path: root/src/plugins/git
diff options
context:
space:
mode:
authorAlessandro Portale <alessandro.portale@theqtcompany.com>2016-02-24 11:18:58 +0100
committerAlessandro Portale <alessandro.portale@theqtcompany.com>2016-02-24 10:27:56 +0000
commit7591fc715c51006ff3d0dc88b24c34c179c5b246 (patch)
tree118df8c29ef93d94e72b03926a1a70d311242888 /src/plugins/git
parenta3c0f0f66a0a1a74a88eb61a6669289b60771929 (diff)
downloadqt-creator-7591fc715c51006ff3d0dc88b24c34c179c5b246.tar.gz
Git: Remove unneeded painter state save/restore
The QPainter::drawPixmap call does not modify the painter state. Change-Id: I1cbae43e6531c9e3d2ae2d3cd1c2d77ce23c4c52 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/plugins/git')
-rw-r--r--src/plugins/git/logchangedialog.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/plugins/git/logchangedialog.cpp b/src/plugins/git/logchangedialog.cpp
index fd0212cce0..24541cfe98 100644
--- a/src/plugins/git/logchangedialog.cpp
+++ b/src/plugins/git/logchangedialog.cpp
@@ -291,9 +291,7 @@ void IconItemDelegate::paint(QPainter *painter, const QStyleOptionViewItem &opti
QStyleOptionViewItem o = option;
if (index.column() == 0 && hasIcon(index.row())) {
const QSize size = option.decorationSize;
- painter->save();
painter->drawPixmap(o.rect.x(), o.rect.y(), m_icon.pixmap(size.width(), size.height()));
- painter->restore();
o.rect.setLeft(size.width());
}
QStyledItemDelegate::paint(painter, o, index);