comparison data/model/DenseThreeDimensionalModel.h @ 1548:51d6551d5244

Show default name for unlabelled bin
author Chris Cannam
date Wed, 03 Oct 2018 15:45:57 +0100
parents fd40a5335968
children c01cbe41aeb5
comparison
equal deleted inserted replaced
1546:9c14dee72329 1548:51d6551d5244
135 virtual QString getHeading(int column) const 135 virtual QString getHeading(int column) const
136 { 136 {
137 switch (column) { 137 switch (column) {
138 case 0: return tr("Time"); 138 case 0: return tr("Time");
139 case 1: return tr("Frame"); 139 case 1: return tr("Frame");
140 default: return getBinName(column - 2); 140 default:
141 QString name = getBinName(column - 2);
142 if (name == "") {
143 name = tr("(bin %1)").arg(column - 2);
144 }
145 return name;
141 } 146 }
142 } 147 }
143 148
144 virtual QVariant getData(int row, int column, int) const 149 virtual QVariant getData(int row, int column, int) const
145 { 150 {