Compile with both Qt4 and Qt5.
This commit is contained in:
parent
066e85893f
commit
717f31a877
|
@ -348,7 +348,11 @@ void QCMake::interrupt()
|
||||||
bool QCMake::interruptCallback(void* cd)
|
bool QCMake::interruptCallback(void* cd)
|
||||||
{
|
{
|
||||||
QCMake* self = reinterpret_cast<QCMake*>(cd);
|
QCMake* self = reinterpret_cast<QCMake*>(cd);
|
||||||
|
#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
|
||||||
return self->InterruptFlag;
|
return self->InterruptFlag;
|
||||||
|
#else
|
||||||
|
return self->InterruptFlag.load();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void QCMake::progressCallback(const char* msg, float percent, void* cd)
|
void QCMake::progressCallback(const char* msg, float percent, void* cd)
|
||||||
|
|
Loading…
Reference in New Issue