2019-10-08 19:28:16 +02:00
macro.aacute.HTML = "á"
2022-07-11 01:38:06 +02:00
macro.aacute.DocBook = "á"
2019-10-08 19:28:16 +02:00
macro.Aring.HTML = "Å"
2022-07-11 01:38:06 +02:00
macro.Aring.DocBook = "Å"
2019-10-08 19:28:16 +02:00
macro.aring.HTML = "å"
2022-07-11 01:38:06 +02:00
macro.aring.DocBook = "å"
2019-10-08 19:28:16 +02:00
macro.Auml.HTML = "Ä"
2022-07-11 01:38:06 +02:00
macro.Auml.DocBook = "Ä"
2019-10-08 19:28:16 +02:00
macro.author = "\\b{Author:}"
macro.BR.HTML = "<br />"
2022-07-11 01:38:06 +02:00
macro.BR.DocBook = ""
2019-10-08 19:28:16 +02:00
macro.copyright.HTML = "©"
2022-07-11 01:38:06 +02:00
macro.copyright.DocBook = "©"
2019-10-08 19:28:16 +02:00
macro.eacute.HTML = "é"
2022-07-11 01:38:06 +02:00
macro.eacute.DocBook = "é"
2019-10-08 19:28:16 +02:00
macro.gui = "\\b"
macro.HR.HTML = "<hr />"
2022-07-11 01:38:06 +02:00
macro.HR.DocBook = ""
2019-10-08 19:28:16 +02:00
macro.iacute.HTML = "í"
2022-07-11 01:38:06 +02:00
macro.iacute.DocBook = "í"
2019-10-08 19:28:16 +02:00
macro.key = "\\b"
macro.macos = "macOS"
macro.menu = "\\b"
macro.oslash.HTML = "ø"
2022-07-11 01:38:06 +02:00
macro.oslash.DocBook = "ø"
2019-10-08 19:28:16 +02:00
macro.ouml.HTML = "ö"
2022-07-11 01:38:06 +02:00
macro.ouml.DocBook = "ö"
2020-08-01 00:33:49 +02:00
macro.nothing = "\\dontdocument ()"
2019-10-08 19:28:16 +02:00
macro.nullptr = "\\c{nullptr}"
macro.QtVersion = "$QT_VERSION"
macro.QtVer = "$QT_VER"
macro.param = "\\e"
macro.raisedaster.HTML = "<sup>*</sup>"
2023-05-24 16:37:34 +02:00
macro.raisedaster.DocBook = "<db:superscript>*</db:superscript>"
2019-10-08 19:28:16 +02:00
macro.rarrow.HTML = "→"
2022-07-11 01:38:06 +02:00
macro.rarrow.DocBook = "→"
2019-10-08 19:28:16 +02:00
macro.reg.HTML = "<sup>®</sup>"
2022-07-11 01:38:06 +02:00
macro.reg.DocBook = "\\sup{®}"
2019-10-08 19:28:16 +02:00
macro.return = "Returns"
macro.starslash = "\\c{*/}"
macro.begincomment = "\\c{/*}"
macro.endcomment = "\\c{*/}"
macro.uuml.HTML = "ü"
2022-07-11 01:38:06 +02:00
macro.uuml.DocBook = "ü"
2019-10-08 19:28:16 +02:00
macro.mdash.HTML = "—"
2022-07-11 01:38:06 +02:00
macro.mdash.DocBook = "—"
2019-10-08 19:28:16 +02:00
macro.pi.HTML = "Π"
2022-07-11 01:38:06 +02:00
macro.pi.DocBook = "Π"
2019-10-08 19:28:16 +02:00
macro.beginqdoc.HTML = "/*!"
Doc: Provide a DocBook version of the beginqdoc and endqdoc macros
QDoc allows code-expanding macros to be defined so that the user can
abstract away common code in a simple to use command.
Furthermore, macros allows for a different expansion based on the
currently generated format so that format-specific requirements can be
satisfied when required.
Due to a certain bug in QDoc, when generating the DocBook format, QDoc
would expand an HTML specific macro definition when a DocBook specific
one was not provided.
As this bug is now being fixed, the DocBook format will lose some of the
output that it was previously generating.
For example, the "\beginqdoc" and "\endqdoc" macros are defined, for
HTML, to expand to the beginning of block-comment text, "/*!" and ending
of block-comment text, "*/".
To avoid losing the usage of "\beginqdoc" and "\endqdoc`" when
generating DocBook, an equivalent expansion of the macro is now provided
for the DocBook format.
Change-Id: I45fb54f1f56077771c091323a69fd63e09a910eb
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
2023-05-24 16:27:55 +02:00
macro.beginqdoc.DocBook = "/*!"
2019-10-08 19:28:16 +02:00
macro.endqdoc.HTML = "*/"
Doc: Provide a DocBook version of the beginqdoc and endqdoc macros
QDoc allows code-expanding macros to be defined so that the user can
abstract away common code in a simple to use command.
Furthermore, macros allows for a different expansion based on the
currently generated format so that format-specific requirements can be
satisfied when required.
Due to a certain bug in QDoc, when generating the DocBook format, QDoc
would expand an HTML specific macro definition when a DocBook specific
one was not provided.
As this bug is now being fixed, the DocBook format will lose some of the
output that it was previously generating.
For example, the "\beginqdoc" and "\endqdoc" macros are defined, for
HTML, to expand to the beginning of block-comment text, "/*!" and ending
of block-comment text, "*/".
To avoid losing the usage of "\beginqdoc" and "\endqdoc`" when
generating DocBook, an equivalent expansion of the macro is now provided
for the DocBook format.
Change-Id: I45fb54f1f56077771c091323a69fd63e09a910eb
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
2023-05-24 16:27:55 +02:00
macro.endqdoc.DocBook = "*/"
2016-09-20 14:13:56 +02:00
macro.borderedimage = "\\div {class=\"border\"} \\image \1\n\\enddiv"
2023-04-11 15:50:36 +00:00
macro.examplecategory = "\\meta category {\1}\n\\ingroup category \1"
2012-10-26 12:39:04 +02:00
2024-02-21 10:16:02 +01:00
# Macros for product names, sorted in alphabetic order
2024-04-29 12:39:27 +02:00
macro.B2Q = "Boot to Qt"
macro.B2QSS = "Boot to Qt Software Stack"
macro.B2QST = "Boot to Qt Startup Screen"
macro.IFW = "Qt Installer Framework"
2024-02-21 10:16:02 +01:00
macro.QA = "Qt Assistant"
2023-06-21 15:10:23 +02:00
macro.QB = "Qt Bridge"
2024-02-21 10:16:02 +01:00
macro.QBF = "Qt Bridge for Figma"
2023-06-21 15:10:23 +02:00
macro.QBPS = "Qt Bridge for Adobe Photoshop"
macro.QBSK = "Qt Bridge for Sketch"
2024-02-21 10:16:02 +01:00
macro.QBXD = "Qt Bridge for Adobe XD"
2024-04-29 12:39:27 +02:00
macro.QC = "Qt Creator"
2024-02-21 10:16:02 +01:00
macro.QD = "Qt Widgets Designer"
macro.QDS = "Qt Design Studio"
macro.QDV = "Qt Design Viewer"
2024-04-29 12:39:27 +02:00
macro.QfP = "Qt for Python"
2024-02-21 10:16:02 +01:00
macro.QL = "Qt Linguist"
2023-06-21 15:10:23 +02:00
macro.QMCU = "Qt for MCUs"
2024-04-29 12:39:27 +02:00
macro.QMLP = "QML Profiler"
2024-01-15 10:33:20 +01:00
macro.QMLLS = "QML Language Server"
2024-02-21 10:16:02 +01:00
macro.QMT = "Qt Maintenance Tool"
macro.QOI = "Qt Online Installer"
2024-04-29 12:39:27 +02:00
macro.QQEM = "Qt Quick Effect Maker"
2024-02-21 10:16:02 +01:00
macro.QQV = "Qt QML Viewer"
macro.QtAA = "Qt for Android Automotive"
macro.QUL = "Qt Quick Ultralite"
2024-02-21 11:26:07 +02:00
macro.QtTAS = "Qt Tools for Android Studio"
2025-02-26 10:20:48 +02:00
macro.Q4A = "Qt for Android"
2023-06-21 15:10:23 +02:00
2023-12-16 14:49:03 +02:00
# The following macros are used for various Android docs. The purpose is to keep
# it as simple as updating these instead of updating multiple lines in scattered locations.
2024-05-20 10:15:38 +03:00
macro.AndroidAbis = "\\c{arm64-v8a}, \\c{x86_64}, \\c{x86}, and \\c{armeabi-v7a}"
2025-03-25 13:26:49 +02:00
macro.NdkVer = "r27c"
macro.NdkFullVer = "27.2.12479018"
2023-12-22 12:15:23 +02:00
macro.NdkCompilerVer = "Clang 17.0.2"
2023-12-16 14:49:03 +02:00
macro.JdkVer = "17"
2023-03-14 13:46:28 +02:00
macro.AndroidMinApiVer = "28"
2025-02-13 11:50:29 +02:00
macro.AndroidMaxApiVer = "35"
2023-03-14 13:46:28 +02:00
macro.AndroidMinVer = "9"
2025-02-13 11:50:29 +02:00
macro.AndroidMaxVer = "15"
macro.AndroidPlatformVer = "35"
2025-02-25 13:59:43 +02:00
macro.AndroidBuildToolsVer = "35.0.1"
2024-08-22 13:24:18 +03:00
macro.GradleVer = "8.10"
2024-09-08 15:49:16 +03:00
macro.AGPVer = "8.6.0"
2024-02-28 16:34:36 +02:00
macro.AAOSVer = "10 to 13"
2023-12-16 14:49:03 +02:00
2012-10-26 12:39:04 +02:00
macro.beginfloatleft.HTML = "<div style=\"float: left; margin-right: 2em\">"
macro.beginfloatright.HTML = "<div style=\"float: right; margin-left: 2em\">"
macro.endfloat.HTML = "</div>"
macro.clearfloat.HTML = "<br style=\"clear: both\" />"
macro.emptyspan.HTML = "<span></span>"
2017-03-03 10:31:56 +01:00
2022-07-11 01:38:06 +02:00
macro.beginfloatleft.DocBook = ""
macro.beginfloatright.DocBook = ""
macro.endfloat.DocBook = ""
macro.clearfloat.DocBook = ""
macro.emptyspan.DocBook = ""
2021-10-12 09:09:34 +02:00
# Used like \brief, but replicates the sentence also as text.
# Wrap the entire sentence with {}, for example:
# \summary {Creates a build target.}
2021-09-24 07:48:23 +02:00
macro.summary = "\\brief \1\n\n\1\n"
2021-11-06 17:39:20 +01:00
# Macros that expand to the major and minor versions based on the QT_VER environment variable
{macro.QtMajorVersion,macro.QtMinorVersion} = "$QT_VER"
macro.QtMajorVersion.match = "^(\\d+)\\."
2018-09-09 12:39:53 +02:00
macro.QtMinorVersion.match = "\\d+\\.(\\d+)"
2017-03-03 10:31:56 +01:00
# Embed YouTube content by video ID - Example: \youtube dQw4w9WgXcQ
2022-10-05 00:48:49 +02:00
# Also requires a <ID>.jpg thumbnail for offline docs. By default, qdoc doesn't copy the thumbnail
# along with the offline docs, you must specify it manually. In .qdocconf, to do it for all formats
# at once, add:
2017-03-03 10:31:56 +01:00
#
2024-09-26 09:04:25 +00:00
# {HTML.extraimages,qhp.<qhp_project>.extraFiles,DocBook.extraimages} += images/dQw4w9WgXcQ.jpg
2017-03-03 10:31:56 +01:00
#
2024-09-26 09:04:25 +00:00
# Where <qhp_project> is a project name listed in `qhp.projects`.
2021-03-31 17:41:06 +02:00
macro.youtube.HTML = "<div class=\"video\">\n" \
2017-03-03 10:31:56 +01:00
"<a href=\"https://www.youtube.com/watch/?v=\1\">\n"\
"<img src=\"images/\1.jpg\"" \
"title=\"Click to play in a browser\" /></a>\n" \
2020-11-27 16:31:54 +01:00
"</div>\n"
2023-05-24 15:50:43 +02:00
macro.youtube.DocBook = "<db:mediaobject>\n" \
"<db:videoobject>\n" \
2024-02-14 14:09:51 +01:00
"<?db video="iframe"?>\n" \
"<db:videodata format="youtube" fileref=\"https://www.youtube.com/watch/?v=\1\">\n" \
2023-05-24 15:50:43 +02:00
"</db:videodata>\n" \
"</db:videoobject>\n" \
"<db:imageobject>\n" \
"<db:imagedata fileref=\"images/\1.jpg\">\n" \
"</db:imagedata>\n" \
"</db:imageobject>\n" \
"</db:mediaobject>\n"
2020-10-27 11:27:25 +01:00
Long live \constraints!
We have divergence in the way we document function, operator and
constructor constraints. About half use \note, while the other
doesn't. Some say "if and only if" while others say just "participates
only if".
So add a qdoc macro, \constraints, to semantically mark up these
constraints. It expands to a section titled `Constraints`, and
uses a predefined sentence (prefix) for constraints.
Documentation for constraints is moved to the end of the comment
blocks to separate them from the rest of the text.
Apply them to all the standard-ish constraint documentation blocks
(grepped for "participate"). I didn't look for other, one-off, ways
documentation authors may have documented constraints, but I'm also
not aware of any.
Re-wrap lines only if the result fits into a single line.
As a drive-by, drop additional "if"s, as in "only if X and -if- Y" to
make the texts work with the `Constraints` section.
Fixes: QTBUG-106871
Pick-to: 6.9 6.8 6.5
Change-Id: I18c2f9f734474017264e49165389f8c9c7f34030
Reviewed-by: Kai Köhne <kai.koehne@qt.io>
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2025-02-06 08:15:36 +01:00
#
# C++ constrained function templates
#
macro.constraints = "\\section1 Constraints\n\nParticipates in overload resolution only if "
2020-10-27 11:27:25 +01:00
macro.excludefromcreator = "\\meta tag broken"
2020-12-17 12:30:43 +11:00
macro.preliminarycmakecommand = "\\note This command is in technology preview and may change in future releases."
macro.preliminarycmakevariable = "\\note This variable is in technology preview and may change in future releases."
macro.preliminarycmakeproperty = "\\note This property is in technology preview and may change in future releases."
2022-01-26 15:29:17 +01:00
macro.cmakecommandsince = "\n\nThis command was introduced in Qt \1.\n\n"
macro.cmakevariablesince = "\n\nThis variable was introduced in Qt \1.\n\n"
macro.cmakepropertysince = "\n\nThis property was introduced in Qt \1.\n\n"
2020-12-17 12:30:43 +11:00
macro.cmakecommandandroidonly = "\\note This command should only be called if targeting the Android platform."
macro.cmakepropertyandroidonly = "\\note This property is used only if targeting the Android platform."
macro.cmakevariableandroidonly = "\\note This variable is used only if targeting the Android platform."
2021-08-11 10:29:18 +02:00
macro.versionlessCMakeCommandsNote = "If \\l{Versionless commands}{versionless commands} are disabled, use \\c{\1} instead. It supports the same set of arguments as this command."
2022-02-14 09:28:51 +10:00
macro.cmakepropertywebassemblyonly = "\\note This property is used only if targeting the WebAssembly platform."
2022-08-11 18:50:11 +02:00
macro.cmakepropertyiosonly = "\\note This property is used only if targeting iOS."
macro.cmakevariableiosonly = "\\note This variable is used only if targeting iOS."
2023-07-07 13:59:41 +02:00
macro.qtpolicydeprecatedbehavior = "\\note The \\c{OLD} behavior of a policy is deprecated, and may be removed in the future."
2023-04-17 13:31:34 +03:00
#Appends the tech preview link to the brief sentence and adds to tech_preview
#group.
#Must be placed directly under a \brief command
macro.techpreview = "(Technical preview)\n\n\\meta status {Technical preview}\n\\ingroup tech_preview\n"
2024-04-26 13:49:11 +00:00
include(grid.qdocconf)
2024-10-02 18:46:01 +02:00
include(cpp-doc-macros.qdocconf)