mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-14 17:32:13 -05:00
Show Plot Data missing for some plots
* Add plotContentAsText() to bar chart builder * Add show plot data to analysis plot * Refactor analysis plot * Enable context menu in Analysis Plot * Add show plot data for general RimPlots * Show plot data for correlation report in three separate text dialogs
This commit is contained in:
1 parent
51fe80b897
commit
cdda7480f3
19 files changed
+401
-233
No files matched your search
@@ -24,9 +24,18 @@
|
||||
RifCsvDataTableFormatter::RifCsvDataTableFormatter( QTextStream& out, const QString fieldSeparator )
|
||||
: m_out( out )
|
||||
, m_fieldSeparator( fieldSeparator )
|
||||
, m_useQuotes( true )
|
||||
{
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RifCsvDataTableFormatter::setUseQuotes( bool useQuotes )
|
||||
{
|
||||
m_useQuotes = useQuotes;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -43,8 +52,15 @@ RifCsvDataTableFormatter& RifCsvDataTableFormatter::header( const std::vector<Ri
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RifCsvDataTableFormatter& RifCsvDataTableFormatter::add( const QString& str )
|
||||
{
|
||||
QString quotedString = "\"" + str + "\"";
|
||||
m_lineBuffer.push_back( quotedString );
|
||||
if ( m_useQuotes )
|
||||
{
|
||||
QString quotedString = "\"" + str + "\"";
|
||||
m_lineBuffer.push_back( quotedString );
|
||||
}
|
||||
else
|
||||
{
|
||||
m_lineBuffer.push_back( str );
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user