mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1977 Curve Calculator : Add button box to dialogs
This commit is contained in:
@@ -18,10 +18,11 @@
|
||||
|
||||
#include "RicSummaryCurveCalculatorDialog.h"
|
||||
|
||||
|
||||
#include <QVBoxLayout>
|
||||
#include "RicSummaryCurveCalculatorWidget.h"
|
||||
|
||||
#include <QDialogButtonBox>
|
||||
#include <QVBoxLayout>
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -46,11 +47,17 @@ RicSummaryCurveCalculatorDialog::~RicSummaryCurveCalculatorDialog()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RicSummaryCurveCalculatorDialog::setUp()
|
||||
{
|
||||
QVBoxLayout* dummy = new QVBoxLayout(this);
|
||||
dummy->setContentsMargins(0, 0, 0, 0);
|
||||
QVBoxLayout* mainLayout = new QVBoxLayout(this);
|
||||
mainLayout->setContentsMargins(0, 0, 0, 0);
|
||||
|
||||
RicSummaryCurveCalculatorWidget* w = new RicSummaryCurveCalculatorWidget(this);
|
||||
dummy->addWidget(w->getOrCreateWidget(this));
|
||||
mainLayout->addWidget(w->getOrCreateWidget(this));
|
||||
|
||||
QDialogButtonBox* buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
|
||||
connect(buttonBox, SIGNAL(accepted()), this, SLOT(accept()));
|
||||
connect(buttonBox, SIGNAL(rejected()), this, SLOT(reject()));
|
||||
|
||||
mainLayout->addWidget(buttonBox);
|
||||
|
||||
w->updateUi();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user