From a173e6a016897201bf2c1cf08ac756e9af8722ee Mon Sep 17 00:00:00 2001 From: Rhys Weatherley Date: Tue, 28 Apr 2009 11:28:46 +1000 Subject: Repair damage done by 8af3500125a03a54dddb8c46ee709b7b8d257f27 Reviewed-by: Sarah Smith --- src/gui/widgets/qlabel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/widgets/qlabel.cpp b/src/gui/widgets/qlabel.cpp index e510c7d..016b7c1 100644 --- a/src/gui/widgets/qlabel.cpp +++ b/src/gui/widgets/qlabel.cpp @@ -52,6 +52,7 @@ #include #include #include "qlabel_p.h" +#include "private/qstylesheetstyle_p.h" QT_BEGIN_NAMESPACE @@ -973,7 +974,7 @@ void QLabel::paintEvent(QPaintEvent *) QStyleOption opt; opt.initFrom(this); #ifndef QT_NO_STYLE_STYLESHEET - if (QStyleSheetStyle* cssStyle = qobject_cast(style())) { + if (QStyleSheetStyle* cssStyle = qobject_cast(style)) { cssStyle->styleSheetPalette(this, &opt, &opt.palette); } #endif -- cgit v0.12