Ensure that the proxystyle is used over the style's own functions
authorAndy Shaw <andy.shaw@digia.com>
Wed, 7 Sep 2011 18:40:48 +0000 (20:40 +0200)
committerQt by Nokia <qt-info@nokia.com>
Mon, 12 Sep 2011 14:03:47 +0000 (16:03 +0200)
commit6daaa1bcad289eb44df407ff38b3aa49c8fc9aa5
treeb25f9872b6c3a62c37aa8aeef6dd6efebdda5d34
parentacb28484b0c062da754407cd9dcb61b3537549eb
Ensure that the proxystyle is used over the style's own functions

When calling a style function such as pixelMetric() then this should be
done via the proxy style and not on the style directly.  This is so that
the proxy style always has a chance to override the original style's
implementation and still preserve the fallback to the base style.

Task-number: QTBUG-20849
Merge-request: 2645
Reviewed-by: olivier
(cherry picked from commit 270c20490813fa943b4fbf0feb1aecb98f0b19ba)

Change-Id: Id43ec17fd1eae0136d6e1f050f23bca6d7d6d6cf
Reviewed-on: http://codereview.qt-project.org/4591
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
src/gui/styles/qcommonstyle.cpp