MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / selectionChanged

Method selectionChanged

launcher/ui/dialogs/IconPickerDialog.cpp:126–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126void IconPickerDialog::selectionChanged(QItemSelection selected, QItemSelection deselected)
127{
128 if (selected.empty())
129 return;
130
131 QString key = selected.first().indexes().first().data(Qt::UserRole).toString();
132 if (!key.isEmpty()) {
133 selectedIconKey = key;
134 }
135 buttonRemove->setEnabled(APPLICATION->icons()->iconFileExists(selectedIconKey));
136}
137
138int IconPickerDialog::execWithSelection(QString selection)
139{

Callers

nothing calls this directly

Calls 7

setEnabledMethod · 0.80
iconFileExistsMethod · 0.80
iconsMethod · 0.80
emptyMethod · 0.45
toStringMethod · 0.45
dataMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected