Beispiel #1
0
void KFontProperties::enumerateDirectory(const KFile &sPath, int depth, int ptSize) {
  if(sPath.isDirectory()) {
    auto dContents = sPath.listFiles();
    for(auto file : dContents) {
      if(file->isFile()) {
        KFontProperties::enumerateFont(file.get(), ptSize);
      }
      if(file->isDirectory() && depth > 0) {
        enumerateDirectory(file->getName(), depth - 1, ptSize);
      }
    }
  }
}