MCPcopy Create free account
hub / github.com/codestation/qcma / receiveMessage

Method receiveMessage

gui/mainwidget.cpp:262–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260}
261
262void MainWidget::receiveMessage(QString message)
263{
264 // a timeout is added before the popups are displayed to prevent them from
265 // appearing in the wrong location
266 if(!sleptOnce) {
267 Sleeper::sleep(1);
268 sleptOnce = true;
269 }
270
271 if(trayIcon->isVisible())
272 trayIcon->showMessage(tr("Information"), message);
273}
274
275MainWidget::~MainWidget()
276{

Callers

nothing calls this directly

Calls 2

isVisibleMethod · 0.80
showMessageMethod · 0.80

Tested by

no test coverage detected