MCPcopy Create free account
hub / github.com/IJHack/QtPass / initTrayIcon

Method initTrayIcon

src/mainwindow.cpp:1079–1092  ·  view source on GitHub ↗

* @brief MainWindow::initTrayIcon show a nice tray icon on systems that * support * it */

Source from the content-addressed store, hash-verified

1077 * it
1078 */
1079void 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

Callers

nothing calls this directly

Calls 1

getIsAllocatedMethod · 0.80

Tested by

no test coverage detected