QMimeDatabase: only export var for unittests if QT_BUILD_INTERNAL
Change-Id: I7fa25b64cf39667c8cea95431f68baab623c8a2a Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>bb10
parent
739611221c
commit
bb6f0a5291
|
|
@ -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()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
CONFIG += testcase
|
||||
|
||||
requires(qtConfig(private_tests))
|
||||
|
||||
TARGET = tst_qmimedatabase-cache
|
||||
|
||||
QT = core testlib concurrent
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
CONFIG += testcase
|
||||
|
||||
requires(qtConfig(private_tests))
|
||||
|
||||
TARGET = tst_qmimedatabase-xml
|
||||
|
||||
QT = core testlib concurrent
|
||||
|
|
|
|||
Loading…
Reference in New Issue