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 int | calculateStepSize (int maxRange, int numberOfSteps) |
| | Calculate an appropriate step size given a maximum range and a suggested number of desired steps.
|
| static double | calculateStepSize (double maxRange, int numberOfSteps, int decimals) |
| | Calculate an appropriate step size given a maximum range and a suggested number of desired steps.
|
Provides static utility functions for Qt.
| static int makVrv::DtQtUtil::calculateStepSize |
( |
int |
maxRange, |
|
|
int |
numberOfSteps |
|
) |
| |
|
static |
Calculate an appropriate step size given a maximum range and a suggested number of desired steps.
Steps are rounded (down) to a factor of 10. (includes 10**0, or 1). For the form that returns a double, the step size is clamped to the decimals size (so if decimals is set to 1, the return value will be no less that .1).
| static double makVrv::DtQtUtil::calculateStepSize |
( |
double |
maxRange, |
|
|
int |
numberOfSteps, |
|
|
int |
decimals |
|
) |
| |
|
static |
Calculate an appropriate step size given a maximum range and a suggested number of desired steps.
Steps are rounded (down) to a factor of 10. (includes 10**0, or 1). For the form that returns a double, the step size is clamped to the decimals size (so if decimals is set to 1, the return value will be no less that .1).