path: root/config.tests/qpa
diff options
authorSamuel Rødal <>2012-05-04 13:10:41 +0200
committerQt by Nokia <>2012-05-08 22:30:10 +0200
commitf280efc6201adf8933c9d48a1d5b6983ee9fed9b (patch)
tree8ec0d8466b951272667d6c620959d51383902630 /config.tests/qpa
parent4a58853aeae02677e6ee1a0f0ef8839578c32573 (diff)
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 <> Reviewed-by: Friedemann Kleint <> Reviewed-by: Lars Knoll <>
Diffstat (limited to 'config.tests/qpa')
2 files changed, 2 insertions, 1 deletions
diff --git a/config.tests/qpa/xcb/xcb.cpp b/config.tests/qpa/xcb/xcb.cpp
index 6037f15e82..0ffeab127b 100644
--- a/config.tests/qpa/xcb/xcb.cpp
+++ b/config.tests/qpa/xcb/xcb.cpp
@@ -50,6 +50,7 @@
#include <xcb/xcb_image.h>
#include <xcb/xcb_keysyms.h>
#include <xcb/sync.h>
+#include <xcb/randr.h>
#include <xcb/shm.h>
int main(int, char **)
diff --git a/config.tests/qpa/xcb/ b/config.tests/qpa/xcb/
index ed68bca242..23eedb03a7 100644
--- a/config.tests/qpa/xcb/
+++ b/config.tests/qpa/xcb/
@@ -1,5 +1,5 @@
SOURCES = xcb.cpp
CONFIG -= qt
-LIBS += -lxcb -lxcb-image -lxcb-keysyms -lxcb-icccm -lxcb-sync -lxcb-xfixes
+LIBS += -lxcb -lxcb-image -lxcb-keysyms -lxcb-icccm -lxcb-sync -lxcb-xfixes -lxcb-randr