diff options
author | Pasi Petäjäjärvi <pasi.petajajarvi@digia.com> | 2014-10-08 15:11:31 +0300 |
---|---|---|
committer | Pasi Petäjäjärvi <pasi.petajajarvi@digia.com> | 2014-11-06 12:55:16 +0100 |
commit | 79f832594dc103ef4a663153f8b9a88691e46233 (patch) | |
tree | 7938a54cacd82eb7737eee0fe7c99d26f05517d9 /src/plugins/platforms/eglfs/qeglfshooks_stub.cpp | |
parent | 30d9498329489020f1720841ac960e06e2e7c5e4 (diff) |
eglfs: obey QT_NO_REGULAREXPRESSION define
Not all platforms do have QRegularExpression as it is based on
pcre.
Change-Id: I6b8e701ff7cf30e776ee34e5dc836cd24c9543b5
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
Diffstat (limited to 'src/plugins/platforms/eglfs/qeglfshooks_stub.cpp')
-rw-r--r-- | src/plugins/platforms/eglfs/qeglfshooks_stub.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/platforms/eglfs/qeglfshooks_stub.cpp b/src/plugins/platforms/eglfs/qeglfshooks_stub.cpp index b6b1be9244..26d77a2abb 100644 --- a/src/plugins/platforms/eglfs/qeglfshooks_stub.cpp +++ b/src/plugins/platforms/eglfs/qeglfshooks_stub.cpp @@ -63,11 +63,13 @@ QByteArray QEglFSHooks::fbDeviceName() const int QEglFSHooks::framebufferIndex() const { int fbIndex = 0; +#ifndef QT_NO_REGULAREXPRESSION QRegularExpression fbIndexRx(QLatin1String("fb(\\d+)")); QRegularExpressionMatch match = fbIndexRx.match(fbDeviceName()); if (match.hasMatch()) fbIndex = match.captured(1).toInt(); +#endif return fbIndex; } |