diff --git a/src/declarativeimports/core/svgitem.h b/src/declarativeimports/core/svgitem.h
index a51a821b9..a712c52dd 100644
--- a/src/declarativeimports/core/svgitem.h
+++ b/src/declarativeimports/core/svgitem.h
@@ -45,12 +45,12 @@ class SvgItem : public QQuickItem
/**
* Svg class that is the source of the image, use it like that:
- *
+ * @code
* SvgItem {
* svg: Svg {imagePath: "widgets/arrows"}
* elementId: "arrow-left"
* }
- *
+ * @endcode
* Instead of a Svg declaration it can also be the id of a Svg declared elsewhere, useful to share Svg instances.
*/
Q_PROPERTY(Plasma::Svg *svg READ svg WRITE setSvg NOTIFY svgChanged)
diff --git a/src/declarativeimports/platformcomponents/application.h b/src/declarativeimports/platformcomponents/application.h
index 482de8b02..245d6a58d 100644
--- a/src/declarativeimports/platformcomponents/application.h
+++ b/src/declarativeimports/platformcomponents/application.h
@@ -29,12 +29,12 @@
* Class which handles an application execution.
*
* Example:
- *
+ * @code
* Application {
* application: "xterm"
* running: terminalRunningCheckbox.checked
* }
- *
+ * @endcode
*/
class Application: public QObject
{
diff --git a/src/declarativeimports/platformcomponents/icondialog.h b/src/declarativeimports/platformcomponents/icondialog.h
index 0ff393e3e..9bbf41aa4 100644
--- a/src/declarativeimports/platformcomponents/icondialog.h
+++ b/src/declarativeimports/platformcomponents/icondialog.h
@@ -31,7 +31,7 @@
* @deprecated Use IconDialog from org.kde.kquickcontrolsaddons
*
* Example:
- *
+ * @code
* IconDialog {
* id: iconDialog
* }
@@ -39,7 +39,7 @@
* ...
*
* icon = iconDialog.openDialog()
- *
+ * @endcode
*/
class IconDialog: public QObject
{