diff options
author | Geir Vattekar <geir.vattekar@trolltech.com> | 2009-08-27 08:49:27 (GMT) |
---|---|---|
committer | Geir Vattekar <geir.vattekar@trolltech.com> | 2009-08-27 08:53:54 (GMT) |
commit | f43dc5e5aa07651a27dca69bd067bc782271a227 (patch) | |
tree | c7c57bff3869586f9a06275b0e4d4d1ef7657d3f /src/gui/kernel/qwidget.cpp | |
parent | 574fcf93bd5420a7e668466259de5c89b485fef2 (diff) | |
download | Qt-f43dc5e5aa07651a27dca69bd067bc782271a227.zip Qt-f43dc5e5aa07651a27dca69bd067bc782271a227.tar.gz Qt-f43dc5e5aa07651a27dca69bd067bc782271a227.tar.bz2 |
Doc: Widgets may ignore the role set with QWidget::setForegroundRole().
Task-number: 182860
Reviewed-by: Trust Me
Diffstat (limited to 'src/gui/kernel/qwidget.cpp')
-rw-r--r-- | src/gui/kernel/qwidget.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/kernel/qwidget.cpp b/src/gui/kernel/qwidget.cpp index d39044a..fb5f934 100644 --- a/src/gui/kernel/qwidget.cpp +++ b/src/gui/kernel/qwidget.cpp @@ -4177,6 +4177,10 @@ QPalette::ColorRole QWidget::backgroundRole() const If \a role is QPalette::NoRole, then the widget inherits its parent's background role. + Note that styles are free to choose any color from the palette. + You can modify the palette or set a style sheet if you don't + achieve the result you want with setBackgroundRole(). + \sa backgroundRole(), foregroundRole() */ @@ -4239,6 +4243,10 @@ QPalette::ColorRole QWidget::foregroundRole() const If \a role is QPalette::NoRole, the widget uses a foreground role that contrasts with the background role. + Note that styles are free to choose any color from the palette. + You can modify the palette or set a style sheet if you don't + achieve the result you want with setForegroundRole(). + \sa foregroundRole(), backgroundRole() */ void QWidget::setForegroundRole(QPalette::ColorRole role) |