mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3149 Export plot data. Right justify columns
This commit is contained in:
@@ -1812,8 +1812,9 @@ void appendToExportDataForCase(QString& out, const std::vector<time_t>& timeStep
|
|||||||
if (j < curveData[k].values.size())
|
if (j < curveData[k].values.size())
|
||||||
{
|
{
|
||||||
valueText = QString::number(curveData[k].values[j], 'g', 6);
|
valueText = QString::number(curveData[k].values[j], 'g', 6);
|
||||||
|
|
||||||
}
|
}
|
||||||
out += "\t" + valueText;
|
out += "\t" + valueText.rightJustified(13);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1877,7 +1878,7 @@ void appendToExportData(QString& out, const std::vector<CurvesData>& curvesData)
|
|||||||
{
|
{
|
||||||
valueText = "NULL";
|
valueText = "NULL";
|
||||||
}
|
}
|
||||||
out += "\t" + valueText;
|
out += "\t" + valueText.rightJustified(13);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (timeStepExists && currIndex < data.timeSteps[i].size()) currIndex++;
|
if (timeStepExists && currIndex < data.timeSteps[i].size()) currIndex++;
|
||||||
|
|||||||
@@ -214,7 +214,7 @@ RiuShowTabbedPlotDataDialog::RiuShowTabbedPlotDataDialog(QWidget* parent /*= nul
|
|||||||
textEdit->setContextMenuPolicy(Qt::NoContextMenu);
|
textEdit->setContextMenuPolicy(Qt::NoContextMenu);
|
||||||
|
|
||||||
auto fontWidth = QFontMetrics(font).width("m");
|
auto fontWidth = QFontMetrics(font).width("m");
|
||||||
textEdit->setTabStopWidth(fontWidth * 9);
|
textEdit->setTabStopWidth(fontWidth * 4);
|
||||||
|
|
||||||
m_tabWidget->addTab(textEdit, tabTitle);
|
m_tabWidget->addTab(textEdit, tabTitle);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user