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

Method on_iconButton_clicked

launcher/ui/dialogs/CopyInstanceDialog.cpp:120–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120void CopyInstanceDialog::on_iconButton_clicked()
121{
122 IconPickerDialog dlg(this);
123 dlg.execWithSelection(InstIconKey);
124
125 if (dlg.result() == QDialog::Accepted)
126 {
127 InstIconKey = dlg.selectedIconKey;
128 ui->iconButton->setIcon(APPLICATION->icons()->getIcon(InstIconKey));
129 }
130}
131
132void CopyInstanceDialog::on_instNameTextBox_textChanged(const QString &arg1)
133{

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