summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorTopi Reinio <topi.reinio@digia.com>2013-01-17 12:38:24 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-01-17 18:02:14 +0100
commitd94ac55a013f970f81f382a38cb4722530fc99eb (patch)
tree2ec7011441b5727628ce397205d339a08866a228 /src/gui
parent64439ed92a88554ec2f277970620de3e9abf2ad0 (diff)
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>
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/kernel/qguiapplication.cpp5
-rw-r--r--src/gui/kernel/qscreen.cpp7
-rw-r--r--src/gui/kernel/qwindow.cpp3
3 files changed, 6 insertions, 9 deletions
diff --git a/src/gui/kernel/qguiapplication.cpp b/src/gui/kernel/qguiapplication.cpp
index 190d52776a..810def937d 100644
--- a/src/gui/kernel/qguiapplication.cpp
+++ b/src/gui/kernel/qguiapplication.cpp
@@ -709,10 +709,9 @@ QList<QScreen *> QGuiApplication::screens()
device-independent pixels.
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 QGuiApplicaiton::devicePixelRatio();
+ \sa QWindow::devicePixelRatio()
*/
qreal QGuiApplication::devicePixelRatio() const
{
diff --git a/src/gui/kernel/qscreen.cpp b/src/gui/kernel/qscreen.cpp
index f5467ab742..6b69e5cb49 100644
--- a/src/gui/kernel/qscreen.cpp
+++ b/src/gui/kernel/qscreen.cpp
@@ -214,13 +214,12 @@ qreal QScreen::logicalDotsPerInch() const
return (dpi.first + dpi.second) * qreal(0.5);
}
-/*
+/*!
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 QGuiApplicaiton::devicePixelRatio();
+ \sa QWindow::devicePixelRatio(), QGuiApplication::devicePixelRatio()
*/
qreal QScreen::devicePixelRatio() const
{
diff --git a/src/gui/kernel/qwindow.cpp b/src/gui/kernel/qwindow.cpp
index 22ad748fb5..82be77df06 100644
--- a/src/gui/kernel/qwindow.cpp
+++ b/src/gui/kernel/qwindow.cpp
@@ -765,8 +765,7 @@ Qt::ScreenOrientation QWindow::contentOrientation() const
Common values are 1.0 on normal displays and 2.0 on Apple "retina" displays.
- \sa QWindow::devicePixelRatio();
- \sa QGuiApplicaiton::devicePixelRatio();
+ \sa QScreen::devicePixelRatio(), QGuiApplication::devicePixelRatio()
*/
qreal QWindow::devicePixelRatio() const
{