206 *ylabel = new QLabel ("Y"), |
206 *ylabel = new QLabel ("Y"), |
207 *zlabel = new QLabel ("Z"), |
207 *zlabel = new QLabel ("Z"), |
208 *anglabel = new QLabel ("Angle"); |
208 *anglabel = new QLabel ("Angle"); |
209 int i = 1; |
209 int i = 1; |
210 |
210 |
211 for (QLabel* label : initlist<QLabel*> ({xlabel, ylabel, zlabel, anglabel})) |
211 for (QLabel* label : QList<QLabel*> ({xlabel, ylabel, zlabel, anglabel})) |
212 { |
212 { |
213 label->setAlignment (Qt::AlignCenter); |
213 label->setAlignment (Qt::AlignCenter); |
214 gridlayout->addWidget (label, 0, i++); |
214 gridlayout->addWidget (label, 0, i++); |
215 } |
215 } |
216 |
216 |