KDevelop 5 : Fix HiDPI issue with project tree view

Authored by amccann.

Description

KDevelop 5 : Fix HiDPI issue with project tree view

Summary:
Made ::paint(...) member function work more like QT5.5's QItemDelegate::paint(...)

Specifically, draws QIcon instead of Pixmap when appropriate.

Refs T664

Test Plan:
Project view's decorations should be in same place in HiDPI mode.

Tested on OSX:

Before
After
After with project colouring

Reviewers: kfunk, mwolff

Reviewed By: mwolff

Subscribers: andric, mwolff, kdevelop-devel

Projects: KDevelop

Maniphest Tasks: T664

Differential Revision: https://phabricator.kde.org/D434

Merged Changes

CommitAuthorDetailsCommitted
960e07ee69aeD434amccann
Address style issues, Comment fix better 
Oct 29 2015
b81cded8a302D434amccann
Fix HiDPI issue with project tree view 
Oct 29 2015