diff --git a/src/activeqt/doc/src/activeqt-index.qdoc b/src/activeqt/doc/src/activeqt-index.qdoc
index a77185f8b5a13529fe7e32c5fa4b1f19c43b1c1d..7200cfff7f928f165d4240cd411689875ec586cc 100644
--- a/src/activeqt/doc/src/activeqt-index.qdoc
+++ b/src/activeqt/doc/src/activeqt-index.qdoc
@@ -97,7 +97,7 @@
     commercial licenses from \l{The Qt Company}. In addition, they
     are available under the \l{BSD 3-clause "New" or "Revised" License}:
 
-    \legalese
+    \badcode
     Copyright (C) 2017 The Qt Company Ltd.
 
     Redistribution and use in source and binary forms, with or without
@@ -124,7 +124,7 @@
     THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
     OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-    \endlegalese
+    \endcode
 
     See \l{Qt Licensing} for further details.