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

Method selectionChanged

launcher/ui/dialogs/IconPickerDialog.cpp:123–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121}
122
123void IconPickerDialog::selectionChanged(QItemSelection selected, QItemSelection deselected)
124{
125 if (selected.empty())
126 return;
127
128 QString key = selected.first().indexes().first().data(Qt::UserRole).toString();
129 if (!key.isEmpty()) {
130 selectedIconKey = key;
131 }
132}
133
134int IconPickerDialog::execWithSelection(QString selection)
135{

Callers

nothing calls this directly

Calls 5

firstMethod · 0.80
isEmptyMethod · 0.80
emptyMethod · 0.45
toStringMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected