| 119 | } |
| 120 | |
| 121 | void Collapsible::setCollapsed(bool collapsed) |
| 122 | { |
| 123 | if (collapsed) |
| 124 | { |
| 125 | toggleButton->setChecked(false); |
| 126 | content->setMinimumHeight(0); |
| 127 | content->setMaximumHeight(0); |
| 128 | toggleButton->setArrowType(Qt::ArrowType::RightArrow); |
| 129 | animgroup->setDirection(QAbstractAnimation::Backward); |
| 130 | } |
| 131 | else |
| 132 | { |
| 133 | toggleButton->setChecked(true); |
| 134 | content->setMinimumHeight(0); |
| 135 | content->setMaximumHeight(16777215); |
| 136 | toggleButton->setArrowType(Qt::ArrowType::DownArrow); |
| 137 | animgroup->setDirection(QAbstractAnimation::Forward); |
| 138 | } |
| 139 | animgroup->stop(); |
| 140 | } |
| 141 | |
| 142 | void Collapsible::setInfo(const QString& title, const QString& text) |
| 143 | { |
nothing calls this directly
no outgoing calls
no test coverage detected