Mercurial > hg > svgui
comparison widgets/CSVFormatDialog.cpp @ 866:d854c72dcaa1
Handle variable columns by importing all of them (not just the minimum number)
author | Chris Cannam |
---|---|
date | Fri, 03 Oct 2014 15:27:02 +0100 |
parents | de9472751d31 |
children | 4a578a360011 |
comparison
equal
deleted
inserted
replaced
865:de9472751d31 | 866:d854c72dcaa1 |
---|---|
97 cpc->addItem(tr("Pitch")); // ColumnPitch | 97 cpc->addItem(tr("Pitch")); // ColumnPitch |
98 cpc->addItem(tr("Label")); // ColumnLabel | 98 cpc->addItem(tr("Label")); // ColumnLabel |
99 cpc->setCurrentIndex(int(m_format.getColumnPurpose(i))); | 99 cpc->setCurrentIndex(int(m_format.getColumnPurpose(i))); |
100 | 100 |
101 for (int j = 0; j < example.size() && j < 6; ++j) { | 101 for (int j = 0; j < example.size() && j < 6; ++j) { |
102 if (i >= example[j].size()) { | |
103 continue; | |
104 } | |
102 QLabel *label = new QLabel; | 105 QLabel *label = new QLabel; |
103 label->setTextFormat(Qt::PlainText); | 106 label->setTextFormat(Qt::PlainText); |
104 QString text = TextAbbrev::abbreviate(example[j][i], 35); | 107 QString text = TextAbbrev::abbreviate(example[j][i], 35); |
105 label->setText(text); | 108 label->setText(text); |
106 label->setFont(fp); | 109 label->setFont(fp); |