From f636a3899f324326cc5d460c52fb4331147344ad Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Tue, 3 Oct 2017 10:40:08 +0300 Subject: [PATCH] Export description as part of final measurements. ref #761. --HG-- branch : develop --- src/app/valentina/mainwindowsnogui.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/valentina/mainwindowsnogui.cpp b/src/app/valentina/mainwindowsnogui.cpp index 53e92b835..4abc526e9 100644 --- a/src/app/valentina/mainwindowsnogui.cpp +++ b/src/app/valentina/mainwindowsnogui.cpp @@ -1579,11 +1579,13 @@ bool MainWindowsNoGUI::ExportFMeasurementsToCSVData(const QString &fileName, boo csv.insertColumn(0); csv.insertColumn(1); + csv.insertColumn(2); if (withHeader) { csv.setHeaderText(0, tr("Name")); csv.setHeaderText(1, tr("Value")); + csv.setHeaderText(2, tr("Description")); } const QVector measurements = doc->GetFinalMeasurements(); @@ -1631,6 +1633,8 @@ bool MainWindowsNoGUI::ExportFMeasurementsToCSVData(const QString &fileName, boo return false; } } + + csv.setText(i, 2, m.description); // description } QString error;