summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Blin <olivier.blin@softathome.com>2013-12-10 23:59:03 +0100
committerOlivier Blin <qt@blino.org>2014-09-09 13:09:19 +0200
commite869050a9ea37662847811fb0f67c33b25cf2d1f (patch)
tree23a4614fc379b2858105bb6d9d1891f82af93bf3
parent025a5cc3ba51bf8bb3aded0d2464cb49bea1d0a7 (diff)
downloadqtwebkit-e869050a9ea37662847811fb0f67c33b25cf2d1f.tar.gz
QWidgetPluginImpl: fix build with QT_NO_STYLE_STYLESHEET
Change-Id: Ia96efd95ff5f92e5b6569b343764c337fb1a8d41 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
-rw-r--r--Source/WebKit/qt/WidgetSupport/QWidgetPluginImpl.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/WebKit/qt/WidgetSupport/QWidgetPluginImpl.cpp b/Source/WebKit/qt/WidgetSupport/QWidgetPluginImpl.cpp
index 2beabf1d0..b34e1fd21 100644
--- a/Source/WebKit/qt/WidgetSupport/QWidgetPluginImpl.cpp
+++ b/Source/WebKit/qt/WidgetSupport/QWidgetPluginImpl.cpp
@@ -54,7 +54,9 @@ void QWidgetPluginImpl::setVisible(bool visible)
void QWidgetPluginImpl::setStyleSheet(const QString &stylesheet)
{
+#ifndef QT_NO_STYLE_STYLESHEET
m_widget->setStyleSheet(stylesheet);
+#endif
}
void QWidgetPluginImpl::setWidgetParent(QObject *parent)