From 4757b0a8b7f8f97de7e0bbf138683921fdb04555 Mon Sep 17 00:00:00 2001 From: Martchus Date: Wed, 29 Jul 2020 11:49:02 +0200 Subject: [PATCH] Avoid using qEnvironmentVariable() for compat with Qt < 5.10 --- CMakeLists.txt | 2 +- tests/dbusnotification.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0c87e25..8779e8e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,7 +10,7 @@ set(META_APP_DESCRIPTION "Common Qt related C++ classes and routines used by my applications such as dialogs, widgets and models") set(META_VERSION_MAJOR 6) set(META_VERSION_MINOR 2) -set(META_VERSION_PATCH 0) +set(META_VERSION_PATCH 1) set(META_APP_VERSION ${META_VERSION_MAJOR}.${META_VERSION_MINOR}.${META_VERSION_PATCH}) project(${META_PROJECT_NAME}) diff --git a/tests/dbusnotification.cpp b/tests/dbusnotification.cpp index 235494b..79339a2 100644 --- a/tests/dbusnotification.cpp +++ b/tests/dbusnotification.cpp @@ -57,7 +57,7 @@ void DBusNotificationTests::smokeTest() */ void DBusNotificationTests::semiAutomaticTest() { - const auto envValue = qEnvironmentVariable(PROJECT_VARNAME_UPPER "_ENABLE_SEMI_AUTOMATIC_NOTIFICATION_TESTS"); + const auto envValue = qgetenv(PROJECT_VARNAME_UPPER "_ENABLE_SEMI_AUTOMATIC_NOTIFICATION_TESTS"); auto envValueIsInt = false; if (envValue.isEmpty() || (envValue.toInt(&envValueIsInt) == 0 && envValueIsInt)) { QSKIP("Set the environment variable " PROJECT_VARNAME_UPPER "_ENABLE_SEMI_AUTOMATIC_NOTIFICATION_TESTS to run "