| 101 | } |
| 102 | |
| 103 | void ProviderWidget::fillCombo() |
| 104 | { |
| 105 | m_combo->clear(); |
| 106 | m_combo->addItem(i18nc("@item:inlistbox", "User"), 1); |
| 107 | m_combo->addItem(i18nc("@item:inlistbox", "Organization"), 3); |
| 108 | if (m_account->validAccount()) { |
| 109 | m_combo->addItem(m_account->name(), 0); |
| 110 | m_combo->setCurrentIndex(2); |
| 111 | } |
| 112 | const QStringList &orgs = m_account->orgs(); |
| 113 | for (const QString& org : orgs) |
| 114 | m_combo->addItem(org, 2); |
| 115 | } |
| 116 | |
| 117 | bool ProviderWidget::isCorrect() const |
| 118 | { |
nothing calls this directly
no test coverage detected