#include <xmessagebox.h>
Static Public Member Functions | |
static int | message (QWidget *parent, QMessageBox::Icon severity, const QString &caption, const QString &text, const QString &button0Text=QString::null, const QString &button1Text=QString::null, bool snooze=true, int defaultButtonNumber=0, int escapeButtonNumber=-1) |
XMessageBox should be used for cases where the user might be in a loop that has a lot of dialogs and the application needs to get the user's attention. |
int XMessageBox::message | ( | QWidget * | parent, |
QMessageBox::Icon | severity, | ||
const QString & | caption, | ||
const QString & | text, | ||
const QString & | button0Text = QString::null , |
||
const QString & | button1Text = QString::null , |
||
bool | snooze = true , |
||
int | defaultButtonNumber = 0 , |
||
int | escapeButtonNumber = -1 |
||
) | [static] |
XMessageBox should be used for cases where the user might be in a loop that has a lot of dialogs and the application needs to get the user's attention.
For example, if there is a loop where the user needs to enter a series of values into individual dialogs and an error occurs, the XMessageBox might make sense to display the error. That's because the default button causes the XMessageBox to repeat the error dialog.
Other good uses are places where the user is scanning a series of barcodes.
Generated on Mon Jan 23 2012 12:22:41 | xTuple ERP Programmer Reference, Version 3.8.0 | 1.7.6.1 |