comparison widgets/CSVFormatDialog.cpp @ 680:ced5f158eda7 tonioni

Merge from default branch
author Chris Cannam
date Fri, 22 Nov 2013 10:40:51 +0000
parents d8bd193ad17d
children 1a0dfcbffaf1
comparison
equal deleted inserted replaced
670:47735c9518e7 680:ced5f158eda7
15 15
16 #include "CSVFormatDialog.h" 16 #include "CSVFormatDialog.h"
17 17
18 #include "layer/LayerFactory.h" 18 #include "layer/LayerFactory.h"
19 19
20 #include "TextAbbrev.h"
21
20 #include <QFrame> 22 #include <QFrame>
21 #include <QGridLayout> 23 #include <QGridLayout>
22 #include <QPushButton> 24 #include <QPushButton>
23 #include <QHBoxLayout> 25 #include <QHBoxLayout>
24 #include <QVBoxLayout> 26 #include <QVBoxLayout>
94 cpc->setCurrentIndex(int(m_format.getColumnPurpose(i))); 96 cpc->setCurrentIndex(int(m_format.getColumnPurpose(i)));
95 97
96 for (int j = 0; j < example.size() && j < 6; ++j) { 98 for (int j = 0; j < example.size() && j < 6; ++j) {
97 QLabel *label = new QLabel; 99 QLabel *label = new QLabel;
98 label->setTextFormat(Qt::PlainText); 100 label->setTextFormat(Qt::PlainText);
99 label->setText(example[j][i]); 101 QString text = TextAbbrev::abbreviate(example[j][i], 35);
102 label->setText(text);
100 label->setFont(fp); 103 label->setFont(fp);
101 label->setPalette(palette); 104 label->setPalette(palette);
102 label->setIndent(8); 105 label->setIndent(8);
103 exampleLayout->addWidget(label, j+1, i); 106 exampleLayout->addWidget(label, j+1, i);
104 } 107 }