summaryrefslogtreecommitdiffstats
path: root/src/testlib/qtestkeyboard.h
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2009-08-18 12:54:15 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2009-08-18 12:56:26 (GMT)
commita250ca3a3c0b777f274388b9e57a985d7438f8ff (patch)
treed1982717becf41fa1ed5abbed7c0472506152740 /src/testlib/qtestkeyboard.h
parent5f2f444a9d8d80d778053c2af66534d582145055 (diff)
downloadQt-a250ca3a3c0b777f274388b9e57a985d7438f8ff.zip
Qt-a250ca3a3c0b777f274388b9e57a985d7438f8ff.tar.gz
Qt-a250ca3a3c0b777f274388b9e57a985d7438f8ff.tar.bz2
Make TestLib compatible with mingw when gui is not used
The problem is that headers in QTestLib define functions for mouse and key events. Those are causing link errors on all autotests that do "QT -= gui" with mingw (only debug seems to be affected). Reviewed-by: jasplin
Diffstat (limited to 'src/testlib/qtestkeyboard.h')
-rw-r--r--src/testlib/qtestkeyboard.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testlib/qtestkeyboard.h b/src/testlib/qtestkeyboard.h
index 2e475b2..af81075 100644
--- a/src/testlib/qtestkeyboard.h
+++ b/src/testlib/qtestkeyboard.h
@@ -39,7 +39,7 @@
**
****************************************************************************/
-#ifndef QTESTKEYBOARD_H
+#if !defined(QTESTKEYBOARD_H) && defined(QT_GUI_LIB)
#define QTESTKEYBOARD_H
#if 0