mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3034 Perforation Interval: Set default start/end to start/end of simulation
This commit is contained in:
@@ -72,11 +72,18 @@ void RimPerforationInterval::setStartAndEndMD(double startMD, double endMD)
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimPerforationInterval::setStartDate(const QDate& date)
|
||||
void RimPerforationInterval::enableCustomStartDate(bool enable)
|
||||
{
|
||||
m_useCustomStartDate = enable;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimPerforationInterval::setCustomStartDate(const QDate& date)
|
||||
{
|
||||
if (date.isValid())
|
||||
{
|
||||
m_useCustomStartDate = true;
|
||||
m_startDate = QDateTime(date);
|
||||
}
|
||||
}
|
||||
@@ -84,11 +91,18 @@ void RimPerforationInterval::setStartDate(const QDate& date)
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimPerforationInterval::setEndDate(const QDate& date)
|
||||
void RimPerforationInterval::enableCustomEndDate(bool enable)
|
||||
{
|
||||
m_useCustomEndDate = enable;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimPerforationInterval::setCustomEndDate(const QDate& date)
|
||||
{
|
||||
if (date.isValid())
|
||||
{
|
||||
m_useCustomEndDate = true;
|
||||
m_endDate = QDateTime(date);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user