Added QScreen::refreshRate() to get the vertical refresh rate.
authorSamuel Rødal <samuel.rodal@nokia.com>
Fri, 4 May 2012 11:10:41 +0000 (13:10 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 8 May 2012 20:30:10 +0000 (22:30 +0200)
commitf280efc6201adf8933c9d48a1d5b6983ee9fed9b
tree8ec0d8466b951272667d6c620959d51383902630
parent4a58853aeae02677e6ee1a0f0ef8839578c32573
Added QScreen::refreshRate() to get the vertical refresh rate.

To give applications that want it the option to use a fixed timestep for
animations, and to avoid having values of 60 hard-coded (we have a
couple of those in qtdeclarative/src/quick already), we need to know the
refresh rates of the screens we are rendering to.

Change-Id: Ife49162e830440ad7eab563a27e8aebbbafc5fc5
Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
20 files changed:
config.tests/qpa/xcb/xcb.cpp
config.tests/qpa/xcb/xcb.pro
src/gui/kernel/qguiapplication.cpp
src/gui/kernel/qguiapplication_p.h
src/gui/kernel/qplatformscreen.h
src/gui/kernel/qplatformscreen_qpa.cpp
src/gui/kernel/qscreen.cpp
src/gui/kernel/qscreen.h
src/gui/kernel/qscreen_p.h
src/gui/kernel/qwindowsysteminterface_qpa.cpp
src/gui/kernel/qwindowsysteminterface_qpa.h
src/gui/kernel/qwindowsysteminterface_qpa_p.h
src/plugins/platforms/windows/qwindowsscreen.cpp
src/plugins/platforms/windows/qwindowsscreen.h
src/plugins/platforms/xcb/README
src/plugins/platforms/xcb/qxcbconnection.cpp
src/plugins/platforms/xcb/qxcbconnection.h
src/plugins/platforms/xcb/qxcbscreen.cpp
src/plugins/platforms/xcb/qxcbscreen.h
src/plugins/platforms/xcb/xcb.pro