# HG changeset patch # User František Kučera # Date 1539000501 -7200 # Node ID 0f0344e1ba619bd8c4832a6620def86afe76443f # Parent a05fa65d47de7f749b249108a45dd72cdd309779 Qt Charts: includes and namespace diff -r a05fa65d47de -r 0f0344e1ba61 src/RelpipeChartMainWindow.cpp --- a/src/RelpipeChartMainWindow.cpp Sun Sep 30 21:49:02 2018 +0200 +++ b/src/RelpipeChartMainWindow.cpp Mon Oct 08 14:08:21 2018 +0200 @@ -6,10 +6,17 @@ #include #include +#include +#include +#include +#include +#include + #include "RelpipeChartMainWindow.h" using namespace relpipe::reader; using namespace relpipe::reader::handlers; +QT_CHARTS_USE_NAMESPACE RelpipeChartMainWindow::RelpipeChartMainWindow() { widget.setupUi(this); @@ -48,7 +55,8 @@ integer_t column = attributeCounter % currentTable->columnCount(); integer_t row = attributeCounter / currentTable->columnCount(); if (row >= currentTable->rowCount()) currentTable->insertRow(currentTable->rowCount()); - currentTable->setItem(row, column, new QTableWidgetItem(QString::fromWCharArray(value.c_str()))); + QString name = QString::fromWCharArray(value.c_str()); + currentTable->setItem(row, column, new QTableWidgetItem(name)); attributeCounter++; }