Mercurial > hg > svgui
diff 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 |
line wrap: on
line diff
--- a/widgets/CSVFormatDialog.cpp Tue Jul 16 17:59:01 2013 +0100 +++ b/widgets/CSVFormatDialog.cpp Fri Nov 22 10:40:51 2013 +0000 @@ -17,6 +17,8 @@ #include "layer/LayerFactory.h" +#include "TextAbbrev.h" + #include <QFrame> #include <QGridLayout> #include <QPushButton> @@ -96,7 +98,8 @@ for (int j = 0; j < example.size() && j < 6; ++j) { QLabel *label = new QLabel; label->setTextFormat(Qt::PlainText); - label->setText(example[j][i]); + QString text = TextAbbrev::abbreviate(example[j][i], 35); + label->setText(text); label->setFont(fp); label->setPalette(palette); label->setIndent(8);