Alert using the platform desktop mechanism for messages

Message boxes and  accepted incomming UDP actions alert  the user even
if the  application is hidden.  This does not  steal focus as  that is
considered bad practice and is annoying.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6826 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Bill Somerville 2016-06-29 23:11:54 +00:00
parent 100c3d3121
commit b19e329ce2
1 changed files with 2 additions and 0 deletions

View File

@ -1653,6 +1653,7 @@ void MainWindow::on_stopButton_clicked() //stopButton
void MainWindow::msgBox(QString t) //msgBox
{
msgBox0.setText(t);
QApplication::alert (this);
msgBox0.exec();
}
@ -5074,6 +5075,7 @@ void MainWindow::replyToCQ (QTime time, qint32 snr, float delta_time, quint32 de
// find the linefeed at the end of the line
position = ui->decodedTextBrowser->toPlainText().indexOf("\n",position);
processMessage (messages, position, false);
QApplication::alert (this);
}
else
{