| 144 | } |
| 145 | |
| 146 | QString ccApplicationBase::versionLongStr(bool includeOS) const |
| 147 | { |
| 148 | QString verStr = m_versionStr; |
| 149 | |
| 150 | #if defined(CC_ENV_64) |
| 151 | const QString arch("64-bit"); |
| 152 | #elif defined(CC_ENV_32) |
| 153 | const QString arch("32-bit"); |
| 154 | #else |
| 155 | const QString arch("\?\?-bit"); |
| 156 | #endif |
| 157 | |
| 158 | if (includeOS) |
| 159 | { |
| 160 | #if defined(CC_WINDOWS) |
| 161 | const QString platform("Windows"); |
| 162 | #elif defined(CC_MAC_OS) |
| 163 | const QString platform("macOS"); |
| 164 | #elif defined(CC_LINUX) |
| 165 | const QString platform("Linux"); |
| 166 | #else |
| 167 | const QString platform("Unknown OS"); |
| 168 | #endif |
| 169 | verStr += QStringLiteral(" [%1 %2]").arg(platform, arch); |
| 170 | } |
| 171 | else |
| 172 | { |
| 173 | verStr += QStringLiteral(" [%1]").arg(arch); |
| 174 | } |
| 175 | |
| 176 | #ifdef QT_DEBUG |
| 177 | verStr += QStringLiteral(" [DEBUG]"); |
| 178 | #endif |
| 179 | |
| 180 | return verStr; |
| 181 | } |
| 182 | |
| 183 | void ccApplicationBase::setupPaths() |
| 184 | { |
no outgoing calls
no test coverage detected