diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2012-05-31 08:51:23 (GMT) |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-06-02 16:04:53 (GMT) |
commit | 7cbfa66a3e0e03ec559c3b029c817c946bd5c165 (patch) | |
tree | 83968c2224b86472a464e2754d33b9e04460f480 /src/gui/kernel | |
parent | 420db97aad3fc1d11b0f1f97c5e9148e829883db (diff) | |
download | Qt-7cbfa66a3e0e03ec559c3b029c817c946bd5c165.zip Qt-7cbfa66a3e0e03ec559c3b029c817c946bd5c165.tar.gz Qt-7cbfa66a3e0e03ec559c3b029c817c946bd5c165.tar.bz2 |
Windows: Fix uic3 autotest.
After 39f2c09d9154e00409c73c6f6db90a4ddb06b8f0,
Windows applications of type Gui/Tty (uic3) would emit many
"QPixmap: Cannot create a QPixmap when no GUI is being used"
when initializing the cursor cache, breaking the stderr
checking of the test.
Task-number: QTQAINFRA-428
Change-Id: Iac74fd7af905e462ac2063c58dfcd91a6b0759a7
Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'src/gui/kernel')
-rw-r--r-- | src/gui/kernel/qapplication_win.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/kernel/qapplication_win.cpp b/src/gui/kernel/qapplication_win.cpp index 6cfa122..99550cf 100644 --- a/src/gui/kernel/qapplication_win.cpp +++ b/src/gui/kernel/qapplication_win.cpp @@ -813,7 +813,8 @@ void qt_init(QApplicationPrivate *priv, int) QColormap::initialize(); QFont::initialize(); #ifndef QT_NO_CURSOR - QCursorData::initialize(); + if (QApplication::type() != QApplication::Tty) + QCursorData::initialize(); #endif qApp->setObjectName(priv->appName()); @@ -906,7 +907,8 @@ void qt_cleanup() QPixmapCache::clear(); #ifndef QT_NO_CURSOR - QCursorData::cleanup(); + if (QApplication::type() != QApplication::Tty) + QCursorData::cleanup(); #endif QFont::cleanup(); QColormap::cleanup(); |