QKmsScreen: use qEnvironmentVariableIntValue()
It doesn't allocate memory, so cannot throw and is a lot faster than qgetenv(). Change-Id: Iaaba62396de2d70f611bfa2ba5badb070087fa24 Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>bb10
parent
9b62d37894
commit
b3b29c2592
|
|
@ -223,7 +223,7 @@ void QKmsScreen::performPageFlip()
|
|||
|
||||
// Initialize cursor
|
||||
|
||||
static int hideCursor = qgetenv("QT_QPA_KMS_HIDECURSOR").toInt();
|
||||
static int hideCursor = qEnvironmentVariableIntValue("QT_QPA_KMS_HIDECURSOR");
|
||||
if (!hideCursor) {
|
||||
QCursor cursor(Qt::ArrowCursor);
|
||||
m_cursor->changeCursor(&cursor, 0);
|
||||
|
|
|
|||
Loading…
Reference in New Issue