summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qsurfaceformat.cpp
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@digia.com>2014-11-25 09:47:43 +0100
committerKonstantin Ritt <ritt.ks@gmail.com>2014-11-27 04:16:22 +0100
commitb9d98c10bdc3c8e6330e84cca48ea302e8cd61c3 (patch)
tree633ea35cfbb41cc0ab65cf31954c74d3c5225d56 /src/gui/kernel/qsurfaceformat.cpp
parentb55f88caba339a49bf0ebabfa324dde523c2b866 (diff)
Deprecate implementations of functions deprecated in headers
If you build with configure -DQT_NO_DEPRECATED this will avoid some build errors. Change-Id: If2b2e57b6919091f3f077ebc2aeca0c3fd2421aa Reviewed-by: Olivier Goffart <ogoffart@woboq.com> Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
Diffstat (limited to 'src/gui/kernel/qsurfaceformat.cpp')
-rw-r--r--src/gui/kernel/qsurfaceformat.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/kernel/qsurfaceformat.cpp b/src/gui/kernel/qsurfaceformat.cpp
index 8049e303a7..b7f8e375a4 100644
--- a/src/gui/kernel/qsurfaceformat.cpp
+++ b/src/gui/kernel/qsurfaceformat.cpp
@@ -308,6 +308,7 @@ void QSurfaceFormat::setSamples(int numSamples)
}
}
+#if QT_DEPRECATED_SINCE(5, 2)
/*!
\obsolete
\overload
@@ -343,6 +344,7 @@ bool QSurfaceFormat::testOption(QSurfaceFormat::FormatOptions opt) const
{
return d->opts & opt;
}
+#endif // QT_DEPRECATED_SINCE(5, 2)
/*!
\since 5.3