| 310 | static bool loadPySideModule(const std::string& moduleName, Shiboken::Module::TypeInitStruct*& types) |
| 311 | #else |
| 312 | static bool loadPySideModule(const std::string& moduleName, PyTypeObject**& types) |
| 313 | #endif |
| 314 | { |
| 315 | #if defined(HAVE_SHIBOKEN) && defined(HAVE_PYSIDE) |
| 316 | if (!types) { |
| 317 | Shiboken::AutoDecRef requiredModule( |
| 318 | Shiboken::Module::import(getPySideModuleName(moduleName).c_str()) |
| 319 | ); |
| 320 | if (requiredModule.isNull()) { |
| 321 | return false; |
| 322 | } |
| 323 | types = Shiboken::Module::getTypes(requiredModule); |
| 324 | } |
| 325 | #else |
| 326 | Q_UNUSED(moduleName) |
| 327 | Q_UNUSED(types) |
| 328 | #endif |
| 329 | return true; |
| 330 | } |
| 331 | |
| 332 | #if defined(HAVE_SHIBOKEN) && defined(HAVE_PYSIDE) |
| 333 | # if defined(HAVE_SHIBOKEN2) |
no test coverage detected