The correct Qt macros for this are QT_DEBUG. Thus, the code will look like this:
QString Paths::sqlScriptPath()
{
#ifdef QT_DEBUG
return "D:\edocclient\edocclient-build-Desktop_Qt_4_8_4_QT4_8_4-Debug\sql";
#else
return "D:\edocclient\edocclient-build-Desktop_Qt_4_8_4_QT4_8_4-Release\sql";
#endif
}
source
share