11#include <QAbstractScrollArea>
13#include <QTableWidget>
23 setSizeAdjustPolicy(QAbstractScrollArea::AdjustToContents);
24 setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Maximum);
25 horizontalHeader()->hide();
26 verticalHeader()->hide();
36 const QMap<QString, QString> &extraValues) {
48 const auto itemCount(info.
size());
49 setColumnCount(itemCount);
50 for (
int i = 0; i < itemCount; ++i) {
51 auto header =
new QTableWidgetItem(info.
name(i));
52 header->setFlags(header->flags() & ~Qt::ItemIsEditable);
53 setItem(0, i, header);
54 auto value =
new QTableWidgetItem(info.
value(i));
55 value->setFlags(header->flags() & ~Qt::ItemIsEditable);
58 horizontalHeader()->setMinimumSectionSize(50);
59 resizeColumnsToContents();
double value
The value of the point.
std::shared_ptr< Workspace > Workspace_sptr
shared pointer to Mantid::API::Workspace