summaryrefslogtreecommitdiffstats
path: root/src/widgets/widgets/qcheckbox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/widgets/qcheckbox.cpp')
-rw-r--r--src/widgets/widgets/qcheckbox.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/widgets/widgets/qcheckbox.cpp b/src/widgets/widgets/qcheckbox.cpp
index 970a15e3a8..88cd603d70 100644
--- a/src/widgets/widgets/qcheckbox.cpp
+++ b/src/widgets/widgets/qcheckbox.cpp
@@ -92,9 +92,7 @@ public:
/*!
\fn void QCheckBox::stateChanged(int state)
- \obsolete
-
- Use checkStateChanged(Qt::CheckState) instead.
+ \deprecated [6.9] Use checkStateChanged(Qt::CheckState) instead.
*/
/*!
@@ -236,7 +234,11 @@ void QCheckBox::setCheckState(Qt::CheckState state)
if (state != d->publishedState) {
d->publishedState = state;
emit checkStateChanged(state);
+#if QT_DEPRECATED_SINCE(6, 9)
+ QT_IGNORE_DEPRECATIONS(
emit stateChanged(state);
+ )
+#endif
}
#if QT_CONFIG(accessibility)
@@ -332,7 +334,11 @@ void QCheckBox::checkStateSet()
if (state != d->publishedState) {
d->publishedState = state;
emit checkStateChanged(state);
+#if QT_DEPRECATED_SINCE(6, 9)
+ QT_IGNORE_DEPRECATIONS(
emit stateChanged(state);
+ )
+#endif
}
}