* @brief MainWindow::initTrayIcon show a nice tray icon on systems that * support * it */
| 1077 | * it |
| 1078 | */ |
| 1079 | void MainWindow::initTrayIcon() { |
| 1080 | this->tray = new TrayIcon(this); |
| 1081 | // Setup tray icon |
| 1082 | |
| 1083 | if (tray == nullptr) { |
| 1084 | #ifdef QT_DEBUG |
| 1085 | dbg() << "Allocating tray icon failed."; |
| 1086 | #endif |
| 1087 | } |
| 1088 | |
| 1089 | if (!tray->getIsAllocated()) { |
| 1090 | destroyTrayIcon(); |
| 1091 | } |
| 1092 | } |
| 1093 | |
| 1094 | /** |
| 1095 | * @brief MainWindow::destroyTrayIcon remove that pesky tray icon |
nothing calls this directly
no test coverage detected