summaryrefslogtreecommitdiffstats
path: root/Source/QtDialog/QCMake.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2012-02-23 11:35:53 (GMT)
committerStephen Kelly <steveire@gmail.com>2012-08-21 11:36:51 (GMT)
commit717f31a877e701b801043b893c97f4a186f93739 (patch)
tree55048ea279020f7beddf271d9acb10a8cffac6c9 /Source/QtDialog/QCMake.cxx
parent066e85893ffa3492e4247e59a80ee1de67babef5 (diff)
downloadCMake-717f31a877e701b801043b893c97f4a186f93739.zip
CMake-717f31a877e701b801043b893c97f4a186f93739.tar.gz
CMake-717f31a877e701b801043b893c97f4a186f93739.tar.bz2
Compile with both Qt4 and Qt5.
Diffstat (limited to 'Source/QtDialog/QCMake.cxx')
-rw-r--r--Source/QtDialog/QCMake.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/QtDialog/QCMake.cxx b/Source/QtDialog/QCMake.cxx
index a2b1567..0d01181 100644
--- a/Source/QtDialog/QCMake.cxx
+++ b/Source/QtDialog/QCMake.cxx
@@ -348,7 +348,11 @@ void QCMake::interrupt()
bool QCMake::interruptCallback(void* cd)
{
QCMake* self = reinterpret_cast<QCMake*>(cd);
+#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
return self->InterruptFlag;
+#else
+ return self->InterruptFlag.load();
+#endif
}
void QCMake::progressCallback(const char* msg, float percent, void* cd)