| 21 | namespace KDevelop { |
| 22 | |
| 23 | EnvironmentSelectionModel::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 | |
| 32 | QVariant EnvironmentSelectionModel::headerData(int section, Qt::Orientation orientation, int role) const |
| 33 | { |
nothing calls this directly
no test coverage detected