| 1772 | } |
| 1773 | |
| 1774 | void 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 | |
| 1792 | void SettingsWindow::pluginSwitch(int index) |
| 1793 | { |
nothing calls this directly
no test coverage detected