MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / setName

Method setName

launcher/ui/widgets/InfoFrame.cpp:194–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192}
193
194void InfoFrame::setName(QString text)
195{
196 if(text.isEmpty())
197 {
198 ui->nameLabel->setHidden(true);
199 }
200 else
201 {
202 ui->nameLabel->setText(text);
203 ui->nameLabel->setHidden(false);
204 }
205 updateHiddenState();
206}
207
208void InfoFrame::setDescription(QString text)
209{

Callers 2

extractTaskMethod · 0.45

Calls 2

isEmptyMethod · 0.80
setTextMethod · 0.45

Tested by

no test coverage detected