! * shows the name and the description of the first selected aspect, * disables the fields "Name" and "Comment" if there are more than one aspects selected. */
| 300 | * disables the fields "Name" and "Comment" if there are more than one aspects selected. |
| 301 | */ |
| 302 | void BaseDock::updateNameDescriptionWidgets() { |
| 303 | if (m_aspects.size() == 1) { |
| 304 | m_leName->setEnabled(true); |
| 305 | m_teComment->setEnabled(true); |
| 306 | m_leName->setText(m_aspect->name()); |
| 307 | m_teComment->setText(m_aspect->comment()); |
| 308 | } else { |
| 309 | m_leName->setEnabled(false); |
| 310 | m_teComment->setEnabled(false); |
| 311 | m_leName->setText(QString()); |
| 312 | m_teComment->setText(QString()); |
| 313 | } |
| 314 | m_leName->setStyleSheet(QString()); |
| 315 | m_leName->setToolTip(QString()); |
| 316 | } |
| 317 | |
| 318 | void BaseDock::spinBoxCalculateMinMax(QDoubleSpinBox* spinbox, Range<double> range, double newValue) { |
| 319 | double min, max; |
nothing calls this directly
no test coverage detected