diff options
| author | Venugopal Shivashankar <Venugopal.Shivashankar@qt.io> | 2021-02-09 13:15:58 +0100 |
|---|---|---|
| committer | Venugopal Shivashankar <Venugopal.Shivashankar@qt.io> | 2021-02-10 21:19:15 +0100 |
| commit | 746393545f6e68292b780ea62ea2f6bef81c708c (patch) | |
| tree | c4df170c7024e917198f560a27682be32daa4300 /src/widgets/doc/snippets/customstyle | |
| parent | 1549dff04c49aa37333e54f8bc45900d0f35b270 (diff) | |
CMake: Port the snippet project setup to CMake
Change-Id: I411e58e94752f3b2d0a3e8aac0ab7c4c2272db89
Fixes: QTBUG-89826
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/widgets/doc/snippets/customstyle')
| -rw-r--r-- | src/widgets/doc/snippets/customstyle/customstyle.cpp | 2 | ||||
| -rw-r--r-- | src/widgets/doc/snippets/customstyle/customstyle.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/widgets/doc/snippets/customstyle/customstyle.cpp b/src/widgets/doc/snippets/customstyle/customstyle.cpp index 61a8ec56001..0f1d5f4b9b5 100644 --- a/src/widgets/doc/snippets/customstyle/customstyle.cpp +++ b/src/widgets/doc/snippets/customstyle/customstyle.cpp @@ -52,7 +52,7 @@ #include "customstyle.h" -CustomStyle::CustomStyle() +CustomStyle::CustomStyle(const QWidget *widget) { //! [0] const QSpinBox *spinBox = qobject_cast<const QSpinBox *>(widget); diff --git a/src/widgets/doc/snippets/customstyle/customstyle.h b/src/widgets/doc/snippets/customstyle/customstyle.h index be9edf0bf46..3cadd84650c 100644 --- a/src/widgets/doc/snippets/customstyle/customstyle.h +++ b/src/widgets/doc/snippets/customstyle/customstyle.h @@ -59,7 +59,7 @@ class CustomStyle : public QProxyStyle Q_OBJECT public: - CustomStyle(); + CustomStyle(const QWidget *widget); ~CustomStyle() {} void drawPrimitive(PrimitiveElement element, const QStyleOption *option, |
