Doc: Fix documentation for devicePixelRatio() functions

Fix Incorrect use of \sa, missing markup for comment block and typos.

Change-Id: I1b7e477b7429ace30ca3ab25c4814c8cba659a65
Reviewed-by: Venugopal Shivashankar <venugopal.shivashankar@digia.com>
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
This commit is contained in:
Topi Reinio 2013-01-17 12:38:24 +01:00 committed by The Qt Project
parent 64439ed92a
commit d94ac55a01
3 changed files with 6 additions and 9 deletions

View File

@ -709,10 +709,9 @@ QList<QScreen *> QGuiApplication::screens()
device-independent pixels. device-independent pixels.
Use this function only when you don't know which window you are targeting. Use this function only when you don't know which window you are targeting.
If you do know the target window use QWindow::devicePixelRatio() instead. If you do know the target window, use QWindow::devicePixelRatio() instead.
\sa QWindow::devicePixelRatio(); \sa QWindow::devicePixelRatio()
\sa QGuiApplicaiton::devicePixelRatio();
*/ */
qreal QGuiApplication::devicePixelRatio() const qreal QGuiApplication::devicePixelRatio() const
{ {

View File

@ -214,13 +214,12 @@ qreal QScreen::logicalDotsPerInch() const
return (dpi.first + dpi.second) * qreal(0.5); return (dpi.first + dpi.second) * qreal(0.5);
} }
/* /*!
Returns the ratio between physical pixels and device-independent pixels for the screen. Returns the ratio between physical pixels and device-independent pixels for the screen.
Common values are 1.0 on normal displays and 2.0 on Apple retina displays. Common values are 1.0 on normal displays and 2.0 on Apple "retina" displays.
\sa QWindow::devicePixelRatio(); \sa QWindow::devicePixelRatio(), QGuiApplication::devicePixelRatio()
\sa QGuiApplicaiton::devicePixelRatio();
*/ */
qreal QScreen::devicePixelRatio() const qreal QScreen::devicePixelRatio() const
{ {

View File

@ -765,8 +765,7 @@ Qt::ScreenOrientation QWindow::contentOrientation() const
Common values are 1.0 on normal displays and 2.0 on Apple "retina" displays. Common values are 1.0 on normal displays and 2.0 on Apple "retina" displays.
\sa QWindow::devicePixelRatio(); \sa QScreen::devicePixelRatio(), QGuiApplication::devicePixelRatio()
\sa QGuiApplicaiton::devicePixelRatio();
*/ */
qreal QWindow::devicePixelRatio() const qreal QWindow::devicePixelRatio() const
{ {