From ea104efa34592a68086704fd8d45b677b2bc5eb6 Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Tue, 27 Nov 2012 18:06:22 +0100 Subject: Style docs & snippets: remove references to QWindowsStyle QWindowsStyle is being made internal. Use either QProxyStyle for customizing existing styles or QCommonStyle to implement full custom styles. Change-Id: Ic81696abc61a3c012a3775efc0b4fba2e1dab4bb Reviewed-by: Jerome Pasion --- src/widgets/doc/snippets/customstyle/customstyle.cpp | 4 ++-- src/widgets/doc/snippets/customstyle/customstyle.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/widgets/doc/snippets/customstyle') diff --git a/src/widgets/doc/snippets/customstyle/customstyle.cpp b/src/widgets/doc/snippets/customstyle/customstyle.cpp index 2c33b3d6ac..aec2ed630f 100644 --- a/src/widgets/doc/snippets/customstyle/customstyle.cpp +++ b/src/widgets/doc/snippets/customstyle/customstyle.cpp @@ -38,7 +38,7 @@ ** ****************************************************************************/ -#include +#include #include "customstyle.h" @@ -84,7 +84,7 @@ void CustomStyle::drawPrimitive(PrimitiveElement element, const QStyleOption *op } painter->drawPolygon(points); } else { - QWindowsStyle::drawPrimitive(element, option, painter, widget); + QProxyStyle::drawPrimitive(element, option, painter, widget); //! [2] //! [3] } //! [3] //! [4] diff --git a/src/widgets/doc/snippets/customstyle/customstyle.h b/src/widgets/doc/snippets/customstyle/customstyle.h index 295b2136e9..4f8c8613e9 100644 --- a/src/widgets/doc/snippets/customstyle/customstyle.h +++ b/src/widgets/doc/snippets/customstyle/customstyle.h @@ -41,10 +41,10 @@ #ifndef CUSTOMSTYLE_H #define CUSTOMSTYLE_H -#include +#include //! [0] -class CustomStyle : public QWindowsStyle +class CustomStyle : public QProxyStyle { Q_OBJECT -- cgit v1.2.3