Engauge Digitizer 2
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
DlgErrorReportAbstractBase Class Reference

Base class for dialogs that handle the error report. More...

#include <DlgErrorReportAbstractBase.h>

Inheritance diagram for DlgErrorReportAbstractBase:
Inheritance graph
Collaboration diagram for DlgErrorReportAbstractBase:
Collaboration graph

Public Member Functions

 DlgErrorReportAbstractBase (QWidget *parent=0)
 Single constructor.
 
 ~DlgErrorReportAbstractBase ()
 

Protected Member Functions

QString errorFile () const
 File name for output file containing error report.
 
void saveFile (const QString &xml) const
 Save xml into output file named by errorFile.
 

Detailed Description

Base class for dialogs that handle the error report.

Definition at line 13 of file DlgErrorReportAbstractBase.h.

Constructor & Destructor Documentation

◆ DlgErrorReportAbstractBase()

DlgErrorReportAbstractBase::DlgErrorReportAbstractBase ( QWidget * parent = 0)

Single constructor.

Definition at line 14 of file DlgErrorReportAbstractBase.cpp.

14 :
15 QDialog (parent)
16{
17}
const int INNER_RADIUS_MIN

◆ ~DlgErrorReportAbstractBase()

DlgErrorReportAbstractBase::~DlgErrorReportAbstractBase ( )

Definition at line 19 of file DlgErrorReportAbstractBase.cpp.

20{
21}

Member Function Documentation

◆ errorFile()

QString DlgErrorReportAbstractBase::errorFile ( ) const
protected

File name for output file containing error report.

Definition at line 23 of file DlgErrorReportAbstractBase.cpp.

24{
25 return QCoreApplication::applicationDirPath() + "/" + ERROR_REPORT_FILE;
26}
const QString ERROR_REPORT_FILE("engauge_error_report.xml")

◆ saveFile()

void DlgErrorReportAbstractBase::saveFile ( const QString & xml) const
protected

Save xml into output file named by errorFile.

Definition at line 28 of file DlgErrorReportAbstractBase.cpp.

29{
31 if (file.open (QIODevice::WriteOnly | QIODevice::Text | QIODevice::Truncate)) {
32
34 out << xml;
35
36 file.close();
37 }
38}
QString errorFile() const
File name for output file containing error report.

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