# HG changeset patch # User sheepluva # Date 1364488900 -3600 # Node ID 509d812ca21972af2ede591b6b2ef31e0a79eeaf # Parent c0ea47957bdc7d53ced981cbb0ea5e2e0c4c9131 fix build diff -r c0ea47957bdc -r 509d812ca219 QTfrontend/util/MessageDialog.h --- a/QTfrontend/util/MessageDialog.h Wed Mar 27 14:20:34 2013 +0100 +++ b/QTfrontend/util/MessageDialog.h Thu Mar 28 17:41:40 2013 +0100 @@ -29,7 +29,15 @@ static int ShowFatalMessage(const QString & msg, QWidget * parent = 0); static int ShowErrorMessage(const QString & msg, QWidget * parent = 0); static int ShowInfoMessage(const QString & msg, QWidget * parent = 0); - static int ShowMessage(const QString & title = 0, const QString & msg, QMessageBox::Icon icon = QMessageBox::NoIcon, QWidget * parent = 0); + /** + * @brief Displays a message. + * @param title message title or NULL if no/default title + * @param msg message to display + * @param icon (optional) icon to be displayed next to the message + * @param parent parent Widget + * @return a QMessageBox::StandardButton value indicating which button was clicked + */ + static int ShowMessage(const QString & title, const QString & msg, QMessageBox::Icon icon = QMessageBox::NoIcon, QWidget * parent = 0); }; #endif