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

Method instName

launcher/ui/dialogs/NewInstanceDialog.cpp:255–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253}
254
255QString NewInstanceDialog::instName() const
256{
257 auto result = ui->instNameTextBox->text().trimmed();
258 if(result.size())
259 {
260 return result;
261 }
262 result = ui->instNameTextBox->placeholderText().trimmed();
263 if(result.size())
264 {
265 return result;
266 }
267 return QString();
268}
269
270QString NewInstanceDialog::instGroup() const
271{

Callers 1

Calls 3

QStringClass · 0.85
textMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected