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

Method EnvironmentSelectionModel

kdevplatform/util/environmentselectionmodel.cpp:23–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21namespace KDevelop {
22
23EnvironmentSelectionModel::EnvironmentSelectionModel(QObject* parent) :
24 QStringListModel(parent)
25 , m_env(KSharedConfig::openConfig())
26{
27 const QStringList entries = entriesFromEnv(m_env);
28 setStringList(entries);
29 m_profilesLookupTable = QSet<QString>(entries.begin(), entries.end());
30}
31
32QVariant EnvironmentSelectionModel::headerData(int section, Qt::Orientation orientation, int role) const
33{

Callers

nothing calls this directly

Calls 3

entriesFromEnvFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected