MCPcopy Create free account
hub / github.com/Cubitect/cubiomes-viewer / setCollapsed

Method setCollapsed

src/widgets.cpp:121–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121void 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
142void Collapsible::setInfo(const QString& title, const QString& text)
143{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected