| 45 | |
| 46 | |
| 47 | void DebugManager::manageDebugOutput() |
| 48 | { |
| 49 | // Just to be safe, restore the original message handler |
| 50 | qInstallMessageHandler(0); |
| 51 | |
| 52 | // Clear the list if it was ever used previously |
| 53 | handlers->clear(); |
| 54 | |
| 55 | // Install our own custom handler |
| 56 | original = qInstallMessageHandler(debug_manager_handler); |
| 57 | } |
| 58 | |
| 59 | void DebugManager::pauseDebugOutput() |
| 60 | { |