From 4a66fb9d763c94620f44fba61790078c132a5370 Mon Sep 17 00:00:00 2001 From: Volker Hilsheimer Date: Thu, 5 Nov 2020 14:47:09 +0100 Subject: Fix a bunch of qdoc warnings Remove or fix references to removed APIs, and some qdoc syntax fixes. Change-Id: I67d71062cd7a29f4eb74b02199b1482af5e59fc0 Reviewed-by: Paul Wicking --- examples/widgets/doc/src/stardelegate.qdoc | 2 +- examples/widgets/doc/src/styles.qdoc | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'examples/widgets') diff --git a/examples/widgets/doc/src/stardelegate.qdoc b/examples/widgets/doc/src/stardelegate.qdoc index b33fa3550f..f26424abaf 100644 --- a/examples/widgets/doc/src/stardelegate.qdoc +++ b/examples/widgets/doc/src/stardelegate.qdoc @@ -229,7 +229,7 @@ We first set the pen and brush we will use for painting. The \c mode parameter can be either \c Editable or \c ReadOnly. If \c mode is editable, we use the \l{QPalette::}{Highlight} color - instead of the \l{QPalette::}{Foreground} color to draw the + instead of the \l{QPalette::}{WindowText} color to draw the stars. Then we draw the stars. If we are in \c Edit mode, we paint diff --git a/examples/widgets/doc/src/styles.qdoc b/examples/widgets/doc/src/styles.qdoc index 014541a330..99575a84da 100644 --- a/examples/widgets/doc/src/styles.qdoc +++ b/examples/widgets/doc/src/styles.qdoc @@ -123,7 +123,7 @@ We initialize the palette. Palettes have various \l{QPalette::ColorRole}{color roles}, such as QPalette::Base (used for filling text editors, item views, etc.), QPalette::Text - (used for foreground text), and QPalette::Background (used for + (used for foreground text), and QPalette::Window (used for the background of most widgets). Each role has its own QBrush, which usually is a plain color but can also be a brush pattern or even a texture (a QPixmap). @@ -266,7 +266,7 @@ \list \li If the button is a \l{QPushButton::flat}{flat button}, we use - the \l{QPalette::Background}{Background} brush. We set \c + the \l{QPalette::Window}{Window} brush. We set \c darker to \c true if the button is \l{QAbstractButton::down}{down} or \l{QAbstractButton::checked}{checked}. @@ -350,7 +350,7 @@ The bottom-right part of the outline is drawn in a similar fashion. Then we draw a one-pixel wide outline around the entire - button, using the \l{QPalette::Foreground}{Foreground} component + button, using the \l{QPalette::WindowText}{WindowText} component of the QPalette. This completes the QStyle::PE_PanelButtonCommand case of the \c -- cgit v1.2.3