summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2009-04-28 01:28:46 (GMT)
committerRhys Weatherley <rhys.weatherley@nokia.com>2009-04-28 01:28:46 (GMT)
commita173e6a016897201bf2c1cf08ac756e9af8722ee (patch)
tree215bcbc42de7b0ad7f9996b588c32884d740e827
parentb64c8b4e4e7649bd9e7160b72e751b22d77a581c (diff)
downloadQt-a173e6a016897201bf2c1cf08ac756e9af8722ee.zip
Qt-a173e6a016897201bf2c1cf08ac756e9af8722ee.tar.gz
Qt-a173e6a016897201bf2c1cf08ac756e9af8722ee.tar.bz2
Repair damage done by 8af3500125a03a54dddb8c46ee709b7b8d257f27
Reviewed-by: Sarah Smith
-rw-r--r--src/gui/widgets/qlabel.cpp3
1 files changed, 2 insertions, 1 deletions
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 <qdebug.h>
#include <qurl.h>
#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<QStyleSheetStyle*>(style())) {
+ if (QStyleSheetStyle* cssStyle = qobject_cast<QStyleSheetStyle*>(style)) {
cssStyle->styleSheetPalette(this, &opt, &opt.palette);
}
#endif