VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Static Public Member Functions | Static Private Member Functions
makVrv::DtQtUtil Class Reference

Provides static utility functions for Qt. More...

Static Public Member Functions

static QString eventTypeName (QEvent::Type eventType)
 Get a string-name of the event type.
static QString eventTypeName (QEvent const *event)
 Get a string-name of the event type.
static QMessageBox::StandardButton critical (QWidget *parent, const QString &title, const QString &text, QMessageBox::StandardButtons buttons=QMessageBox::Ok, QMessageBox::StandardButton defaultButton=QMessageBox::NoButton, Qt::WindowFlags f=Qt::Tool|Qt::MSWindowsFixedSizeDialogHint)
 Display a critical message box.
static QMessageBox::StandardButton information (QWidget *parent, const QString &title, const QString &text, QMessageBox::StandardButtons buttons=QMessageBox::Ok, QMessageBox::StandardButton defaultButton=QMessageBox::NoButton, Qt::WindowFlags f=Qt::Tool|Qt::MSWindowsFixedSizeDialogHint)
 Display an information message box.
static QMessageBox::StandardButton question (QWidget *parent, const QString &title, const QString &text, QMessageBox::StandardButtons buttons=QMessageBox::Yes|QMessageBox::No, QMessageBox::StandardButton defaultButton=QMessageBox::NoButton, Qt::WindowFlags f=Qt::MSWindowsFixedSizeDialogHint|Qt::Tool)
 Display an inquiry message box.
static QMessageBox::StandardButton warning (QWidget *parent, const QString &title, const QString &text, QMessageBox::StandardButtons buttons=QMessageBox::Ok, QMessageBox::StandardButton defaultButton=QMessageBox::NoButton, Qt::WindowFlags f=Qt::MSWindowsFixedSizeDialogHint|Qt::Tool)
 Display a warning message box.

Static Private Member Functions

static QMessageBox::StandardButton showMessageBox (QMessageBox &mbox, QMessageBox::StandardButton defaultButton)
 Display a message box with the given default button.

Detailed Description

Provides static utility functions for Qt.

Member Function Documentation

static QString makVrv::DtQtUtil::eventTypeName ( QEvent::Type  eventType)
static

Get a string-name of the event type.

Returns
The event type converted into a string, or the type-id as a string if unknown.
static QString makVrv::DtQtUtil::eventTypeName ( QEvent const *  event)
static

Get a string-name of the event type.

Returns
The event type converted into a string, or the type-id as a string if unknown.
static QMessageBox::StandardButton makVrv::DtQtUtil::critical ( QWidget parent,
const QString &  title,
const QString &  text,
QMessageBox::StandardButtons  buttons = QMessageBox::Ok,
QMessageBox::StandardButton  defaultButton = QMessageBox::NoButton,
Qt::WindowFlags  f = Qt::Tool|Qt::MSWindowsFixedSizeDialogHint 
)
static

Display a critical message box.

Returns
The button clicked to dismiss the message box.
static QMessageBox::StandardButton makVrv::DtQtUtil::information ( QWidget parent,
const QString &  title,
const QString &  text,
QMessageBox::StandardButtons  buttons = QMessageBox::Ok,
QMessageBox::StandardButton  defaultButton = QMessageBox::NoButton,
Qt::WindowFlags  f = Qt::Tool|Qt::MSWindowsFixedSizeDialogHint 
)
static

Display an information message box.

Returns
The button clicked to dismiss the message box.
static QMessageBox::StandardButton makVrv::DtQtUtil::question ( QWidget parent,
const QString &  title,
const QString &  text,
QMessageBox::StandardButtons  buttons = QMessageBox::Yes|QMessageBox::No,
QMessageBox::StandardButton  defaultButton = QMessageBox::NoButton,
Qt::WindowFlags  f = Qt::MSWindowsFixedSizeDialogHint|Qt::Tool 
)
static

Display an inquiry message box.

Returns
The button clicked to dismiss the message box.
static QMessageBox::StandardButton makVrv::DtQtUtil::warning ( QWidget parent,
const QString &  title,
const QString &  text,
QMessageBox::StandardButtons  buttons = QMessageBox::Ok,
QMessageBox::StandardButton  defaultButton = QMessageBox::NoButton,
Qt::WindowFlags  f = Qt::MSWindowsFixedSizeDialogHint|Qt::Tool 
)
static

Display a warning message box.

Returns
The button clicked to dismiss the message box.
static QMessageBox::StandardButton makVrv::DtQtUtil::showMessageBox ( QMessageBox mbox,
QMessageBox::StandardButton  defaultButton 
)
staticprivate

Display a message box with the given default button.

Returns
The button clicked to dismiss the message box.

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

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)