MCPcopy Create free account
hub / github.com/Atarity/Lightpack / on_list_Plugins_itemClicked

Method on_list_Plugins_itemClicked

Software/src/SettingsWindow.cpp:1774–1790  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1772}
1773
1774void SettingsWindow::on_list_Plugins_itemClicked(QListWidgetItem* current)
1775{
1776 DEBUG_LOW_LEVEL << Q_FUNC_INFO;
1777
1778 bool isEnabled = true;
1779
1780 if (current->checkState() == Qt::Checked)
1781 isEnabled = true;
1782 else
1783 isEnabled = false;
1784
1785 int index =current->data(Qt::UserRole).toUInt();
1786 if (_plugins[index]->isEnabled() != isEnabled)
1787 _plugins[index]->setEnabled(isEnabled);
1788
1789 pluginSwitch(index);
1790}
1791
1792void SettingsWindow::pluginSwitch(int index)
1793{

Callers

nothing calls this directly

Calls 2

isEnabledMethod · 0.80
setEnabledMethod · 0.80

Tested by

no test coverage detected