mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3849 Shorten column space for WSEGAICD table to 1
This commit is contained in:
parent
3dafd06859
commit
41dc8feca3
@ -681,6 +681,8 @@ void RicWellPathExportMswCompletionsImpl::generateWsegvalvTable(RifEclipseDataTa
|
|||||||
void RicWellPathExportMswCompletionsImpl::generateWsegAicdTable(RifEclipseDataTableFormatter& formatter,
|
void RicWellPathExportMswCompletionsImpl::generateWsegAicdTable(RifEclipseDataTableFormatter& formatter,
|
||||||
const RicMswExportInfo& exportInfo)
|
const RicMswExportInfo& exportInfo)
|
||||||
{
|
{
|
||||||
|
int existingColSpacing = formatter.columnSpacing();
|
||||||
|
formatter.setColumnSpacing(1);
|
||||||
bool foundValve = false;
|
bool foundValve = false;
|
||||||
|
|
||||||
for (std::shared_ptr<RicMswSegment> location : exportInfo.wellSegmentLocations())
|
for (std::shared_ptr<RicMswSegment> location : exportInfo.wellSegmentLocations())
|
||||||
@ -758,6 +760,7 @@ void RicWellPathExportMswCompletionsImpl::generateWsegAicdTable(RifEclipseDataTa
|
|||||||
{
|
{
|
||||||
formatter.tableCompleted();
|
formatter.tableCompleted();
|
||||||
}
|
}
|
||||||
|
formatter.setColumnSpacing(existingColSpacing);
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
@ -41,6 +41,14 @@ RifEclipseDataTableFormatter::~RifEclipseDataTableFormatter()
|
|||||||
CVF_ASSERT(m_columns.empty());
|
CVF_ASSERT(m_columns.empty());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
///
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
int RifEclipseDataTableFormatter::columnSpacing() const
|
||||||
|
{
|
||||||
|
return m_colSpacing;
|
||||||
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
@ -108,6 +108,7 @@ public:
|
|||||||
RifEclipseDataTableFormatter(QTextStream& out);
|
RifEclipseDataTableFormatter(QTextStream& out);
|
||||||
virtual ~RifEclipseDataTableFormatter();
|
virtual ~RifEclipseDataTableFormatter();
|
||||||
|
|
||||||
|
int columnSpacing() const;
|
||||||
void setColumnSpacing(int spacing);
|
void setColumnSpacing(int spacing);
|
||||||
void setTableRowPrependText(const QString& text);
|
void setTableRowPrependText(const QString& text);
|
||||||
void setTableRowLineAppendText(const QString& text);
|
void setTableRowLineAppendText(const QString& text);
|
||||||
|
Loading…
Reference in New Issue
Block a user