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:
parent
8c0d9ab377
commit
08f516bab4
@ -1812,8 +1812,9 @@ void appendToExportDataForCase(QString& out, const std::vector<time_t>& timeStep
|
||||
if (j < curveData[k].values.size())
|
||||
{
|
||||
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";
|
||||
}
|
||||
out += "\t" + valueText;
|
||||
out += "\t" + valueText.rightJustified(13);
|
||||
}
|
||||
|
||||
if (timeStepExists && currIndex < data.timeSteps[i].size()) currIndex++;
|
||||
|
@ -214,7 +214,7 @@ RiuShowTabbedPlotDataDialog::RiuShowTabbedPlotDataDialog(QWidget* parent /*= nul
|
||||
textEdit->setContextMenuPolicy(Qt::NoContextMenu);
|
||||
|
||||
auto fontWidth = QFontMetrics(font).width("m");
|
||||
textEdit->setTabStopWidth(fontWidth * 9);
|
||||
textEdit->setTabStopWidth(fontWidth * 4);
|
||||
|
||||
m_tabWidget->addTab(textEdit, tabTitle);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user