diff options
author | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-09-30 12:25:05 (GMT) |
---|---|---|
committer | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-09-30 14:42:15 (GMT) |
commit | 53dd13e439932cb234fbfff9d0dcd97d67334329 (patch) | |
tree | e616f84f38d2311194ed379af034651cdb63bc03 /src/corelib | |
parent | 2bb2a8a184b0e0f1816822e244cf9bd8e122a16a (diff) | |
download | Qt-53dd13e439932cb234fbfff9d0dcd97d67334329.zip Qt-53dd13e439932cb234fbfff9d0dcd97d67334329.tar.gz Qt-53dd13e439932cb234fbfff9d0dcd97d67334329.tar.bz2 |
Add Qt::RenderHint to control rendering operations.
We need a way to control various rendering operations. For example,
whether quality is more important than performance, or the other way
around.
This change also replaces occurences of QPixmapFilter/QGraphicsEffect::BlurHint
(introduced in 1a431e850893b6b162c833f4f148f090e2427dda) with Qt::RenderHint.
Reviewed-by: Samuel
Diffstat (limited to 'src/corelib')
-rw-r--r-- | src/corelib/global/qnamespace.h | 5 | ||||
-rw-r--r-- | src/corelib/global/qnamespace.qdoc | 15 |
2 files changed, 20 insertions, 0 deletions
diff --git a/src/corelib/global/qnamespace.h b/src/corelib/global/qnamespace.h index 741c06f..473398b 100644 --- a/src/corelib/global/qnamespace.h +++ b/src/corelib/global/qnamespace.h @@ -1627,6 +1627,11 @@ public: NavigationModeCursorAuto, NavigationModeCursorForceVisible }; + + enum RenderHint { + QualityHint, + PerformanceHint + }; } #ifdef Q_MOC_RUN ; diff --git a/src/corelib/global/qnamespace.qdoc b/src/corelib/global/qnamespace.qdoc index 40dd1d2..1833b96 100644 --- a/src/corelib/global/qnamespace.qdoc +++ b/src/corelib/global/qnamespace.qdoc @@ -2814,3 +2814,18 @@ \sa QApplication::setNavigationMode() \sa QApplication::navigationMode() */ + +/*! + \enum Qt::RenderHint + \since 4.6 + + This enum describes the possible hints that can be used to control various + rendering operations. + + \value QualityHint Indicates that rendering quality is the most important factor, + at the potential cost of lower performance. + + \value PerformanceHint Indicates that rendering performance is the most important factor, + at the potential cost of lower quality. +*/ + |