| 101 | } |
| 102 | |
| 103 | void ProfileBox::LoadProfilesFromDir(std::vector<Profile>* profiles, const QString& path, bool can_delete) { |
| 104 | QDir dir(path); |
| 105 | dir.setFilter(QDir::Files | QDir::NoDotAndDotDot); |
| 106 | dir.setNameFilters(QStringList("*.conf")); |
| 107 | for(QFileInfo file : dir.entryInfoList()) { |
| 108 | Profile profile; |
| 109 | profile.m_name = file.completeBaseName(); |
| 110 | profile.m_can_delete = can_delete; |
| 111 | profiles->push_back(profile); |
| 112 | } |
| 113 | } |
| 114 | |
| 115 | void ProfileBox::UpdateProfileFields() { |
| 116 | unsigned int profile = GetProfile(); |
nothing calls this directly
no outgoing calls
no test coverage detected