| 87 | } |
| 88 | |
| 89 | void TranslatorsModel::sourceDataChanged() |
| 90 | { |
| 91 | const int row = m_translators.indexOf(qobject_cast<TranslationsModel *>(sender())->translator()); |
| 92 | if (row == -1) |
| 93 | return; |
| 94 | const QModelIndex index = this->index(row, 2, QModelIndex()); |
| 95 | if (!index.isValid()) |
| 96 | return; |
| 97 | // needed to make sure these things also update |
| 98 | emit dataChanged(index, index, |
| 99 | QVector<int>() << Qt::DisplayRole << Qt::EditRole); |
| 100 | } |
| 101 | |
| 102 | void TranslatorsModel::registerTranslator(TranslatorWrapper *translator) |
| 103 | { |
nothing calls this directly
no test coverage detected