Mercurial > hg > svgui
comparison widgets/PropertyBox.cpp @ 87:4b98bda7e94d
* Add property labels to property containers (so i18n() won't affect file format)
author | Chris Cannam |
---|---|
date | Wed, 03 May 2006 16:48:03 +0000 |
parents | 72fa239a4880 |
children | 0db5e7492ce8 |
comparison
equal
deleted
inserted
replaced
86:93a7efc75fb7 | 87:4b98bda7e94d |
---|---|
222 | 222 |
223 bool have = (m_propertyControllers.find(name) != | 223 bool have = (m_propertyControllers.find(name) != |
224 m_propertyControllers.end()); | 224 m_propertyControllers.end()); |
225 | 225 |
226 QString groupName = m_container->getPropertyGroupName(name); | 226 QString groupName = m_container->getPropertyGroupName(name); |
227 QString propertyLabel = m_container->getPropertyLabel(name); | |
227 | 228 |
228 #ifdef DEBUG_PROPERTY_BOX | 229 #ifdef DEBUG_PROPERTY_BOX |
229 std::cerr << "PropertyBox[" << this | 230 std::cerr << "PropertyBox[" << this |
230 << "(\"" << m_container->getPropertyContainerName().toStdString() | 231 << "(\"" << m_container->getPropertyContainerName().toStdString() |
231 << "\")]"; | 232 << "\")]"; |
249 m_groupLayouts[groupName]->setMargin(0); | 250 m_groupLayouts[groupName]->setMargin(0); |
250 frame->setLayout(m_groupLayouts[groupName]); | 251 frame->setLayout(m_groupLayouts[groupName]); |
251 } | 252 } |
252 } else { | 253 } else { |
253 #ifdef DEBUG_PROPERTY_BOX | 254 #ifdef DEBUG_PROPERTY_BOX |
254 std::cerr << "PropertyBox: adding label \"" << name.toStdString() << "\"" << std::endl; | 255 std::cerr << "PropertyBox: adding label \"" << propertyLabel.toStdString() << "\"" << std::endl; |
255 #endif | 256 #endif |
256 m_layout->addWidget(new QLabel(name, m_mainWidget), row, 0); | 257 m_layout->addWidget(new QLabel(propertyLabel, m_mainWidget), row, 0); |
257 } | 258 } |
258 } | 259 } |
259 | 260 |
260 switch (type) { | 261 switch (type) { |
261 | 262 |