QMimeDatabase: only export var for unittests if QT_BUILD_INTERNAL

Change-Id: I7fa25b64cf39667c8cea95431f68baab623c8a2a
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
bb10
David Faure 2017-11-24 10:53:00 +01:00
parent 739611221c
commit bb6f0a5291
3 changed files with 10 additions and 1 deletions

View File

@ -79,7 +79,12 @@ QMimeDatabasePrivate::~QMimeDatabasePrivate()
qDeleteAll(m_providers);
}
Q_CORE_EXPORT int qmime_secondsBetweenChecks = 5; // exported for the unit test
#ifdef QT_BUILD_INTERNAL
Q_CORE_EXPORT
#else
static const
#endif
int qmime_secondsBetweenChecks = 5;
bool QMimeDatabasePrivate::shouldCheck()
{

View File

@ -1,5 +1,7 @@
CONFIG += testcase
requires(qtConfig(private_tests))
TARGET = tst_qmimedatabase-cache
QT = core testlib concurrent

View File

@ -1,5 +1,7 @@
CONFIG += testcase
requires(qtConfig(private_tests))
TARGET = tst_qmimedatabase-xml
QT = core testlib concurrent