Gui: implementation classes don't inherit from UI classes any more
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
#endif
|
||||
|
||||
#include "DlgReportViewImp.h"
|
||||
#include "ui_DlgReportView.h"
|
||||
#include "PrefWidgets.h"
|
||||
|
||||
|
||||
@@ -43,8 +44,9 @@ using namespace Gui::Dialog;
|
||||
*/
|
||||
DlgReportViewImp::DlgReportViewImp( QWidget* parent )
|
||||
: PreferencePage(parent)
|
||||
, ui(new Ui_DlgReportView)
|
||||
{
|
||||
this->setupUi(this);
|
||||
ui->setupUi(this);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -56,34 +58,34 @@ DlgReportViewImp::~DlgReportViewImp()
|
||||
|
||||
void DlgReportViewImp::saveSettings()
|
||||
{
|
||||
checkLogging->onSave();
|
||||
checkWarning->onSave();
|
||||
checkError->onSave();
|
||||
checkShowReportViewOnWarningOrError->onSave();
|
||||
colorText->onSave();
|
||||
colorLogging->onSave();
|
||||
colorWarning->onSave();
|
||||
colorError->onSave();
|
||||
pythonOutput->onSave();
|
||||
pythonError->onSave();
|
||||
ui->checkLogging->onSave();
|
||||
ui->checkWarning->onSave();
|
||||
ui->checkError->onSave();
|
||||
ui->checkShowReportViewOnWarningOrError->onSave();
|
||||
ui->colorText->onSave();
|
||||
ui->colorLogging->onSave();
|
||||
ui->colorWarning->onSave();
|
||||
ui->colorError->onSave();
|
||||
ui->pythonOutput->onSave();
|
||||
ui->pythonError->onSave();
|
||||
}
|
||||
|
||||
void DlgReportViewImp::loadSettings()
|
||||
{
|
||||
checkLogging->onRestore();
|
||||
checkWarning->onRestore();
|
||||
checkError->onRestore();
|
||||
checkShowReportViewOnWarningOrError->onRestore();
|
||||
colorText->onRestore();
|
||||
colorLogging->onRestore();
|
||||
colorWarning->onRestore();
|
||||
colorError->onRestore();
|
||||
pythonOutput->blockSignals(true);
|
||||
pythonOutput->onRestore();
|
||||
pythonOutput->blockSignals(false);
|
||||
pythonError->blockSignals(true);
|
||||
pythonError->onRestore();
|
||||
pythonError->blockSignals(false);
|
||||
ui->checkLogging->onRestore();
|
||||
ui->checkWarning->onRestore();
|
||||
ui->checkError->onRestore();
|
||||
ui->checkShowReportViewOnWarningOrError->onRestore();
|
||||
ui->colorText->onRestore();
|
||||
ui->colorLogging->onRestore();
|
||||
ui->colorWarning->onRestore();
|
||||
ui->colorError->onRestore();
|
||||
ui->pythonOutput->blockSignals(true);
|
||||
ui->pythonOutput->onRestore();
|
||||
ui->pythonOutput->blockSignals(false);
|
||||
ui->pythonError->blockSignals(true);
|
||||
ui->pythonError->onRestore();
|
||||
ui->pythonError->blockSignals(false);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -92,7 +94,7 @@ void DlgReportViewImp::loadSettings()
|
||||
void DlgReportViewImp::changeEvent(QEvent *e)
|
||||
{
|
||||
if (e->type() == QEvent::LanguageChange) {
|
||||
retranslateUi(this);
|
||||
ui->retranslateUi(this);
|
||||
}
|
||||
else {
|
||||
QWidget::changeEvent(e);
|
||||
|
||||
Reference in New Issue
Block a user