Mercurial > hg > svgui
comparison widgets/PropertyBox.cpp @ 108:4772fc75ac7c
* Some work on switching property box layout between one-box-per-pane
and one-box-overall layouts. Not enabled in GUI yet.
author | Chris Cannam |
---|---|
date | Mon, 26 Jun 2006 16:08:57 +0000 |
parents | bf196d6e8998 |
children | 33929e0c3c6b |
comparison
equal
deleted
inserted
replaced
107:bf196d6e8998 | 108:4772fc75ac7c |
---|---|
282 cb = new QCheckBox(); | 282 cb = new QCheckBox(); |
283 cb->setObjectName(name); | 283 cb->setObjectName(name); |
284 connect(cb, SIGNAL(stateChanged(int)), | 284 connect(cb, SIGNAL(stateChanged(int)), |
285 this, SLOT(propertyControllerChanged(int))); | 285 this, SLOT(propertyControllerChanged(int))); |
286 if (inGroup) { | 286 if (inGroup) { |
287 cb->setToolTip(name); | 287 cb->setToolTip(propertyLabel); |
288 m_groupLayouts[groupName]->addWidget(cb); | 288 m_groupLayouts[groupName]->addWidget(cb); |
289 } else { | 289 } else { |
290 m_layout->addWidget(cb, row, 1, 1, 2); | 290 m_layout->addWidget(cb, row, 1, 1, 2); |
291 } | 291 } |
292 m_propertyControllers[name] = cb; | 292 m_propertyControllers[name] = cb; |
322 this, SLOT(propertyControllerChanged(int))); | 322 this, SLOT(propertyControllerChanged(int))); |
323 | 323 |
324 if (inGroup) { | 324 if (inGroup) { |
325 dial->setFixedWidth(24); | 325 dial->setFixedWidth(24); |
326 dial->setFixedHeight(24); | 326 dial->setFixedHeight(24); |
327 dial->setToolTip(name); | 327 dial->setToolTip(propertyLabel); |
328 m_groupLayouts[groupName]->addWidget(dial); | 328 m_groupLayouts[groupName]->addWidget(dial); |
329 } else { | 329 } else { |
330 dial->setFixedWidth(32); | 330 dial->setFixedWidth(32); |
331 dial->setFixedHeight(32); | 331 dial->setFixedHeight(32); |
332 m_layout->addWidget(dial, row, 1); | 332 m_layout->addWidget(dial, row, 1); |
380 | 380 |
381 connect(cb, SIGNAL(activated(int)), | 381 connect(cb, SIGNAL(activated(int)), |
382 this, SLOT(propertyControllerChanged(int))); | 382 this, SLOT(propertyControllerChanged(int))); |
383 | 383 |
384 if (inGroup) { | 384 if (inGroup) { |
385 cb->setToolTip(name); | 385 cb->setToolTip(propertyLabel); |
386 m_groupLayouts[groupName]->addWidget(cb); | 386 m_groupLayouts[groupName]->addWidget(cb); |
387 } else { | 387 } else { |
388 m_layout->addWidget(cb, row, 1, 1, 2); | 388 m_layout->addWidget(cb, row, 1, 1, 2); |
389 } | 389 } |
390 m_propertyControllers[name] = cb; | 390 m_propertyControllers[name] = cb; |