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

Method on_iconButton_clicked

launcher/ui/dialogs/NewInstanceDialog.cpp:279–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277}
278
279void NewInstanceDialog::on_iconButton_clicked()
280{
281 importIconNow(); //so the user can switch back
282 IconPickerDialog dlg(this);
283 dlg.execWithSelection(InstIconKey);
284
285 if (dlg.result() == QDialog::Accepted)
286 {
287 InstIconKey = dlg.selectedIconKey;
288 ui->iconButton->setIcon(APPLICATION->icons()->getIcon(InstIconKey));
289 importIcon = false;
290 }
291}
292
293void NewInstanceDialog::on_instNameTextBox_textChanged(const QString &arg1)
294{

Callers

nothing calls this directly

Calls 5

execWithSelectionMethod · 0.80
getIconMethod · 0.80
iconsMethod · 0.80
resultMethod · 0.45
setIconMethod · 0.45

Tested by

no test coverage detected