QProxyStyle: fix the base style assignment in constructor
authorJ-P Nurmi <jpnurmi@digia.com>
Tue, 20 Nov 2012 13:55:20 +0000 (14:55 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 20 Nov 2012 16:10:19 +0000 (17:10 +0100)
commit4532a1399e10a677083300648cf18af9addab656
tree6228c5bbe1ba61ca107cc81ebf7f377dee232e3c
parentf439108c4f6e456d329a666fe5000d07538b63c1
QProxyStyle: fix the base style assignment in constructor

Assign the baseStyle member before calling setParent(), because that
will trigger ParentChange event and thus calls ensureBaseStyle(). The
baseStyle member must be set at that point, because otherwise it will
start creating a fallback base style.

Change-Id: I3522e41bb6b82e3fe2e7790d53a53978c18a027a
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
src/widgets/styles/qproxystyle.cpp