MCPcopy Create free account
hub / github.com/KDE/falkon / removeItem

Method removeItem

src/plugins/GreaseMonkey/settings/gm_settings.cpp:87–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87void GM_Settings::removeItem(QListWidgetItem* item)
88{
89 GM_Script* script = getScript(item);
90 if (!script) {
91 return;
92 }
93
94 QMessageBox::StandardButton button = QMessageBox::question(this, tr("Remove script"),
95 tr("Are you sure you want to remove '%1'?").arg(script->name()),
96 QMessageBox::Yes | QMessageBox::No);
97
98 if (button == QMessageBox::Yes) {
99 m_manager->removeScript(script);
100 }
101}
102
103void GM_Settings::itemChanged(QListWidgetItem* item)
104{

Callers 3

GM_deleteValueFunction · 0.45
GM_deleteValueFunction · 0.45
removeProxyMethod · 0.45

Calls 2

removeScriptMethod · 0.80
nameMethod · 0.45

Tested by

no test coverage detected