| 74 | } |
| 75 | |
| 76 | QString GitIgnoreList::readFile(const QString& fileName) const |
| 77 | { |
| 78 | QFile file(fileName); |
| 79 | if(!file.open(QIODevice::ReadOnly)) |
| 80 | { |
| 81 | return QString(); |
| 82 | } |
| 83 | QTextStream stream(&file); |
| 84 | return stream.readAll(); |
| 85 | } |
| 86 | |
| 87 | void GitIgnoreList::addEntries(const QString& dir, const QString& lines) |
| 88 | { |