MCPcopy Create free account
hub / github.com/MaartenBaert/ssr / LoadProfilesFromDir

Method LoadProfilesFromDir

src/GUI/ProfileBox.cpp:103–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103void 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
115void ProfileBox::UpdateProfileFields() {
116 unsigned int profile = GetProfile();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected