MCPcopy Create free account
hub / github.com/KDE/kdevelop / fillCombo

Method fillCombo

plugins/ghprovider/ghproviderwidget.cpp:103–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103void 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
117bool ProviderWidget::isCorrect() const
118{

Callers

nothing calls this directly

Calls 6

validAccountMethod · 0.80
setCurrentIndexMethod · 0.80
orgsMethod · 0.80
clearMethod · 0.45
addItemMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected