qt5base-lts/tests/auto/corelib/global
Marc Mutz bb56586e32 Add qEnvironmentVariableIntValue()
A lot of code in Qt uses VAR=1 for enabling or disabling some feature
or other, ignoring qEnvironmentVariableIsSet(), which was added for
that purpose. Other code actually reads numerical values from
environment variables. For both use-cases, provide a non-throwing,
non-memory-allocating way to get the numerical (int) value of an
environment variable, complementing qEnvironmentVariableIs{Set,Empty}().

[ChangeLog][QtCore] Added qEnvironmentVariableIntValue().

Change-Id: I81c85287ea10d355c1bbf8d7807ec9a0e477bce0
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2014-09-12 09:57:16 +02:00
..
q_func_info Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qflags Add support for initializer_list construction in QFlags 2014-07-02 14:49:45 +02:00
qgetputenv Add qEnvironmentVariableIntValue() 2014-09-12 09:57:16 +02:00
qglobal Fix endianness part of QSysInfo::buildAbi() string 2014-09-04 18:31:50 +02:00
qglobalstatic Fix Q_GLOBAL_STATIC support for exceptions 2013-02-28 23:43:46 +01:00
qhooks Add a more reliable replacement for qt_add/removeObject(). 2014-04-15 17:50:20 +02:00
qlogging Ensure that qCleanupFuncinfo works with some C++11 new constructs 2014-08-09 15:35:59 +02:00
qnumeric Mark some tests as XFAIL on QNX 2014-03-27 08:21:14 +01:00
qrand Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
qtendian Turn off compiler optimization in tst_qtendian for MSVC2008. 2014-03-04 11:29:30 +01:00
global.pro Add a more reliable replacement for qt_add/removeObject(). 2014-04-15 17:50:20 +02:00