ADTF  3.18.2
adtf::ui::mega Namespace Reference

Namespace for all functionality of the ADTF UI SDK provided since v3.12. More...

Functions

std::pair< QString, QString > split_result (tResult oResult)
 Splits the result into the main error message and a detailed error description. More...
 
QMessageBox::StandardButton result_message_box (QWidget *pParent, const QString &strTitle, tResult oResult, const QString &strInformativeText={}, QMessageBox::StandardButtons eButtons=QMessageBox::Ok, QMessageBox::StandardButton eDefaultButton=QMessageBox::NoButton)
 Display a message box showing the given tResult. More...
 

Detailed Description

Namespace for all functionality of the ADTF UI SDK provided since v3.12.

Function Documentation

◆ result_message_box()

QMessageBox::StandardButton adtf::ui::mega::result_message_box ( QWidget *  pParent,
const QString &  strTitle,
tResult  oResult,
const QString &  strInformativeText = {},
QMessageBox::StandardButtons  eButtons = QMessageBox::Ok,
QMessageBox::StandardButton  eDefaultButton = QMessageBox::NoButton 
)

Display a message box showing the given tResult.

Parameters
[in]pParentThe parent of the messagebox.
[in]strTitleThe title of the messagebox.
[in]oResultThe result to show.
[in]strInformativeTextAn optional informative text, i.e. a question on how to continue.
[in]eButtonsThe buttons that should be shown.
[in]eDefaultButtonThe default button.
Returns
The button that was clicked.

◆ split_result()

std::pair<QString, QString> adtf::ui::mega::split_result ( tResult  oResult)

Splits the result into the main error message and a detailed error description.

Parameters
[in]oResultThe Result that should be split up.
Returns
A pair containing the main error message and the details.