From 9a8175a13124e156948914854d2fda7436065b08 Mon Sep 17 00:00:00 2001 From: Paul Wicking Date: Fri, 28 Sep 2018 10:59:09 +0200 Subject: Doc: Remove expired link and add see also entry for style sheets Remove link to qt.nokia.com and add see also link to Qt Style Sheets that contain the necessary information. Change-Id: I05f6f760f3f9735f99385bdb39507b0878ec220c Fixes: QTBUG-70805 Reviewed-by: Martin Smith --- src/widgets/kernel/qwidget.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/widgets/kernel/qwidget.cpp') diff --git a/src/widgets/kernel/qwidget.cpp b/src/widgets/kernel/qwidget.cpp index 4adccceebb..a1a861e216 100644 --- a/src/widgets/kernel/qwidget.cpp +++ b/src/widgets/kernel/qwidget.cpp @@ -4497,16 +4497,14 @@ void QWidget::setForegroundRole(QPalette::ColorRole role) and these styles typically do not follow the palette. Because of this, assigning roles to a widget's palette is not guaranteed to change the appearance of the widget. Instead, you may choose to apply a \l - styleSheet. You can refer to our Knowledge Base article - \l{http://qt.nokia.com/developer/knowledgebase/22}{here} for more - information. + styleSheet. \warning Do not use this function in conjunction with \l{Qt Style Sheets}. When using style sheets, the palette of a widget can be customized using the "color", "background-color", "selection-color", "selection-background-color" and "alternate-background-color". - \sa QApplication::palette(), QWidget::font() + \sa QApplication::palette(), QWidget::font(), \l {Qt Style Sheets} */ const QPalette &QWidget::palette() const { -- cgit v1.2.3