diff options
Diffstat (limited to 'src/widgets/doc/snippets/customstyle/customstyle.cpp')
-rw-r--r-- | src/widgets/doc/snippets/customstyle/customstyle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/doc/snippets/customstyle/customstyle.cpp b/src/widgets/doc/snippets/customstyle/customstyle.cpp index b5d44ebecd..16715929a8 100644 --- a/src/widgets/doc/snippets/customstyle/customstyle.cpp +++ b/src/widgets/doc/snippets/customstyle/customstyle.cpp @@ -45,7 +45,7 @@ CustomStyle::CustomStyle() { //! [0] - QSpinBox *spinBox = qobject_cast<QSpinBox *>(widget); + const QSpinBox *spinBox = qobject_cast<const QSpinBox *>(widget); if (spinBox) { //! [0] //! [1] } |