mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Use caf property dialog and removed obsolete riuPreferencesDialog
This commit is contained in:
@@ -43,7 +43,6 @@
|
||||
#include "RiuMultiCaseImportDialog.h"
|
||||
|
||||
#include "RiaPreferences.h"
|
||||
#include "RiuPreferencesDialog.h"
|
||||
|
||||
#include "RigCaseCellResultsData.h"
|
||||
|
||||
@@ -63,6 +62,7 @@
|
||||
#include "RimCalcScript.h"
|
||||
#include "RimTools.h"
|
||||
#include "RiaRegressionTest.h"
|
||||
#include "cafPdmUiPropertyDialog.h"
|
||||
|
||||
|
||||
|
||||
@@ -1223,8 +1223,8 @@ void RiuMainWindow::slotShowPerformanceInfo(bool enable)
|
||||
void RiuMainWindow::slotEditPreferences()
|
||||
{
|
||||
RiaApplication* app = RiaApplication::instance();
|
||||
RiuPreferencesDialog preferencesDialog(this, app->preferences(), "Preferences");
|
||||
if (preferencesDialog.exec() == QDialog::Accepted)
|
||||
caf::PdmUiPropertyDialog propertyDialog(this, app->preferences(), "Preferences");
|
||||
if (propertyDialog.exec() == QDialog::Accepted)
|
||||
{
|
||||
// Write preferences using QSettings and apply them to the application
|
||||
app->writeFieldsToApplicationStore(app->preferences());
|
||||
@@ -1772,7 +1772,7 @@ void RiuMainWindow::slotShowRegressionTestDialog()
|
||||
RiaApplication* app = RiaApplication::instance();
|
||||
app->readFieldsFromApplicationStore(®TestConfig);
|
||||
|
||||
RiuPreferencesDialog regressionTestDialog(this, ®TestConfig, "Regression Test");
|
||||
caf::PdmUiPropertyDialog regressionTestDialog(this, ®TestConfig, "Regression Test");
|
||||
if (regressionTestDialog.exec() == QDialog::Accepted)
|
||||
{
|
||||
// Write preferences using QSettings and apply them to the application
|
||||
|
||||
Reference in New Issue
Block a user