Mantid
|
#include <DiagResults.h>
Signals | |
void | died () |
is emitted just before the window dies to let the window that created this know the pointer it has is invalid More... | |
Signals inherited from MantidQt::API::MantidDialog | |
void | runAsPythonScript (const QString &code, bool) |
Public Member Functions | |
DiagResults (QWidget *parent) | |
Constructor. More... | |
void | updateResults (const QString &testSummary) |
Update the results on the dialog. More... | |
Public Member Functions inherited from MantidQt::API::MantidDialog | |
MantidDialog (QWidget *parent=nullptr, const Qt::WindowFlags &flags=Qt::WindowCloseButtonHint|Qt::WindowType::WindowTitleHint) | |
DefaultConstructor. More... | |
~MantidDialog () override | |
Destructor. More... | |
Private Member Functions | |
int | addRow (const QString &firstColumn, const QString &secondColumn) |
insert a row at the bottom of the grid More... | |
void | closeEvent (QCloseEvent *event) override |
enables the run button on the parent window so the user can do more analysis More... | |
void | updateRow (int row, const QString &text) |
Displays a summary of the results of tests in to text labels. More... | |
Private Attributes | |
QGridLayout * | m_Grid |
the layout that widgets are added to More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from MantidQt::API::MantidDialog | |
static bool | handle (QObject *receiver, const std::exception &e) |
Handles the exception caught in an event handler. More... | |
Protected Member Functions inherited from MantidQt::API::MantidDialog | |
virtual void | handleException (const std::exception &e) |
Override this method to handle an exception in a derived class. More... | |
QString | runPythonCode (const QString &code, bool no_output=false) |
Run python code that is passed to it and, optionally, return anything it wrote to standard output as a string. More... | |
Definition at line 18 of file DiagResults.h.
DiagResults::DiagResults | ( | QWidget * | parent | ) |
|
private |
insert a row at the bottom of the grid
Definition at line 111 of file DiagResults.cpp.
References m_Grid.
Referenced by DiagResults().
|
overrideprivate |
enables the run button on the parent window so the user can do more analysis
Definition at line 131 of file DiagResults.cpp.
References died().
|
signal |
is emitted just before the window dies to let the window that created this know the pointer it has is invalid
Referenced by closeEvent().
void DiagResults::updateResults | ( | const QString & | testSummary | ) |
Update the results on the dialog.
testSummary | :: A string containing the test results |
Definition at line 72 of file DiagResults.cpp.
References updateRow().
|
private |
Displays a summary of the results of tests in to text labels.
row | :: the row where the data will be displayed |
text | :: the text that should be displayed in the first column |
Definition at line 123 of file DiagResults.cpp.
References m_Grid.
Referenced by updateResults().
|
private |
the layout that widgets are added to
Definition at line 37 of file DiagResults.h.
Referenced by addRow(), DiagResults(), and updateRow().