List of all members | Static Public Member Functions
XMessageBox Class Reference

#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. More...
 

Member Function Documentation

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.


The documentation for this class was generated from the following files:

Generated on Fri Jul 10 2015 xTuple ERP Programmer Reference, Version 4.9.0 doxygen 1.8.10